-
Notifications
You must be signed in to change notification settings - Fork 647
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
security/tinc: 1.0.36 fails to setup meta connection #1500
Comments
|
Just tested with the latest version of the os-tinc plugin (1.4_5), but the problem persists. |
|
We see the same problem and cannot connect to a latest pfSense with 1.0.35. |
|
I'm not a developer, but I gave a look at tinc source code and I found that this log error is triggered by this code in src/protocol_auth.c: Maybe the cause is related to the RAND_bytes function of OpenSSL? If so, it would be interesting to know if someone running the LibreSSL flavor of OPNsense is experiencing the same issue. |
|
@andrewhotlab I run My tinc can connect without issues to the tinc on a Debian box and can be connected to from that Debian box and a Windows laptop. |
|
Thank you @xpac1985, I just switched from OpenSSL to LibreSSL and tinc 1.0.36 started working flawlessly! Thus, guessing that this issue is related to OpenSSL version, I switched back to the OpenSSL flavor, then I reverted it with this command: But tinc 1.0.36 still returned the same error! :( After that, I focused back to the tinc package, and I found that if I install tinc-1.0.6.txz from the "official" FreeBSD repository it works, while using the same release from the OPNsense pkg repository, the issues comes back again! |
|
We set official „ssl=openssl“ setting and that‘s it. FreeBSD doesn’t use this setting in their packages. It‘s still odd as LibreSSL uses „ssl=libressl“ and that works ok. |
|
Thank you Franco, it looks to me there is some other differences between the two packages, for example: the OPNsense's tinc port has a couple of options which FreeBSD port does not have (I guess it derives from HardenedBSD/hardenedbsd-ports). And shared libs requirements look different too. Here is the output of And here is the OPNsense's one: |
|
Doing a trail and error approach here is rather time consuming. PIE and RELRO might be problematic, but they very rarely are once the build went through ok. |
|
I also had this problem with |
|
I just tested the latest build (OPNsense 20.1) which runs OpenSSL 1.1.1d,1 (previous ones ran OpenSSL 1.0.x) and tinc seems working again! :) |
|
Ok, I can confirm that the issue with OpenSSL is gone with OPNsense 20.1! :)
P.S.: I guess that it would have been sufficient to rebuild the package tinc-1.0.36, but "All's well that ends well"! ;) Thanks to anyone who contributed to this thread! |
I've verified that after commit opnsense/ports@cc4c8af (contained in OPNsense 19.7.4) tincd is not able to connect to other nodes anymore (running either 1.0.35 and 1.0.36), with the following error:
Downgrading the package back to 1.0.35 solves the problem.
I also managed to get connected a couple of FreeBSD machines running a mix of 1.0.35 and 1.0.36 versions, thus it looks like the issue is not directly related to tinc version.
The text was updated successfully, but these errors were encountered: