Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openvpn support #3

Open
DimShadoWWW opened this issue Jan 23, 2015 · 2 comments
Open

Openvpn support #3

DimShadoWWW opened this issue Jan 23, 2015 · 2 comments

Comments

@DimShadoWWW
Copy link

Will you include openvpn support?? I was trying to add it, but my knowledge about Go (and many search in google) doesn't helped in port the openvpn protocol detection from sslh:

static int is_openvpn_protocol (const char*p,int len, struct proto *proto)
{
int packet_len;
if (len < 2)
return PROBE_AGAIN;
packet_len = ntohs(*(uint16_t*)p);
return packet_len == len - 2;
}

I even tried including "C" and with this code:

packet_len := uint16(C.ntohs(C.uint16_t(header)))
return packet_len == len(header)-2

but cgo failed to compile it with this error:

could not determine kind of name for C.ntohs
could not determine kind of name for C.uint16_t
@qiukeren
Copy link

qiukeren commented Oct 9, 2016

have a try at ssl supported in my pull request.

in sslh, openvpn protocol relies on ssl, so ssl protocol support is enough to identity openvpn protocol if you don't have any other ssl protocols

@beatquantum
Copy link

I am not a programmer, but if you could add openvpn and other functionalities (based on sslh) that would be fantastic. I will be happy to test and give feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants