OPNsense Forum

English Forums => General Discussion => Topic started by: His.Dudeness on February 01, 2025, 11:39:18 AM

Title: SSLH crashes randomly
Post by: His.Dudeness on February 01, 2025, 11:39:18 AM
Hi,
a while ago I switched from OpenVPN "port-share" to SSLH to run OpenVPN and HAProxy both on the same IP with TCP 443.
It works great but every other week or so SSLH crashes and I have to log in to OpenVPN GUI and start the service.

Does anyone know how to troubleshoot this?

cheers
Michael
Title: Re: SSLH crashes randomly
Post by: Patrick M. Hausen on February 01, 2025, 09:14:39 PM
Nothing in the log?
Title: Re: SSLH crashes randomly
Post by: His.Dudeness on February 02, 2025, 10:44:39 AM
Hi Patrick
thanks for your reply!

SSLH doesn't seem to have its own log file. In the "general" log I found only this:

Notice   kernel   <6>pid 50171 (sslh-select), jid 0, uid 65534: exited on signal 11 (no core dump - bad address)

cheers
Michael
Title: Re: SSLH crashes randomly
Post by: Seimus on February 03, 2025, 07:21:54 PM
You log is the answer

(no core dump - bad address) is pointing to a faulty address in memory, most likely your RAM is bad.

Regards,
S.
Title: Re: SSLH crashes randomly
Post by: His.Dudeness on February 04, 2025, 09:44:05 PM
Hm, SSLH is the ONLY process that constantly crashes, and it started to do so right after I added it to a setup that had been running for several years before.
 
I really can't imagine how bad RAM could only affect one particular process and always only the same?
Title: Re: SSLH crashes randomly
Post by: Patrick M. Hausen on February 04, 2025, 10:04:01 PM
Have you looked at the upstream project (github?) for any open issues?
Title: Re: SSLH crashes randomly
Post by: His.Dudeness on February 05, 2025, 03:06:35 PM
Quote from: Patrick M. Hausen on February 04, 2025, 10:04:01 PMHave you looked at the upstream project (github?) for any open issues?

Just had a quick look at the open issues at their github page but I don't think that there is one that fits my symptoms.

Does anyone know when the SSLH plugin on OPNsense received the last update?
Title: Re: SSLH crashes randomly
Post by: Patrick M. Hausen on February 05, 2025, 03:16:45 PM
2 years ago:

https://github.com/opnsense/plugins/tree/master/net/sslh
Title: Re: SSLH crashes randomly
Post by: His.Dudeness on February 05, 2025, 03:57:45 PM
Hm, SSLH itself seems to get updates from time to time.

Should I open an issue in the opnsense/plugins github?
Title: Re: SSLH crashes randomly
Post by: Patrick M. Hausen on February 05, 2025, 04:01:50 PM
Cannot hurt 😉
Title: Re: SSLH crashes randomly
Post by: His.Dudeness on February 05, 2025, 04:24:08 PM
OK, I'll try that.  :-)

The sad part is: I wouldn't even need SSLH if someone hadn't decided to remove the ability to add the OpenVPN "port-share" option after the switch to OpenVPN instances :-| 
Title: Re: SSLH crashes randomly
Post by: Patrick M. Hausen on February 05, 2025, 04:39:00 PM
sslh is so much quicker I would not bother with OpenVPN port sharing.