-
Notifications
You must be signed in to change notification settings - Fork 11
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
OpenBSD tcpmd5 #5
base: dev
Are you sure you want to change the base?
Conversation
Hey Robert! So nice to see such a great PR, and I'm 100% for supporting OpenBSD, and the *BSD platforms in general. However, it's been a while since I last run and administered an OpenBSD box (oh man, the 5.0 release was so long ago) and I need some time to get up to speed in order to respond to your PR, OK? Some context for this work I can think of:
|
@robertkeizer A few comments as I'm back to this PR:
|
Hey @pforemski , thanks for the feedback.
I'm wondering what happens to the security assocation if bgpipe sets one up and is subsequently killed or exits abnormally, but I suppose that's an easy RTFM and test as part of the PR work really.
|
e6370a4
to
1753802
Compare
Great, let me know if/when I can be of any help here. Happy to test this when you're done on OpenBSD 7.6 :-) (take your time, no rush) |
Context / Background
I wanted to use
bgpipe
on OpenBSD with the TCP MD5 signatures option. I was able to fairly easily "make it work", but I'd like to see about supporting the platform more generally.On OpenBSD to facilitate TCP MD5 signatures, a security association must be setup on the system, in addition to setting a flag on the socket. I also found that
unix.TCP_MD5SIG_EXT
was not available.I was able to use
unix.SetsockoptString(int(fd), unix.IPPROTO_TCP, 0x04, string("..."))
in addition to previously loading a security association on the machine to make this work.To load the security association I used
ipsecctl -f /tmp/tcpmd5.conf
with the following defined ( roughly )/tmp/tcpmd5.conf
On OpenBSD I would expect most programs to not define and create the security associations, but rather error out if the security associations weren't defined and tcp md5 signatures were required.
Question
I would strongly suspect most people running OpenBSD would prefer the latter (simply error out), but this isn't my project, so I figure opening a draft PR and asking the question is the more appropriate path.