SSLH crashes randomly

Started by His.Dudeness, February 01, 2025, 11:39:18 AM

Previous topic - Next topic
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

Nothing in the log?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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

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.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

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?

Have you looked at the upstream project (github?) for any open issues?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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?

Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hm, SSLH itself seems to get updates from time to time.

Should I open an issue in the opnsense/plugins github?

Cannot hurt 😉
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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 :-| 

sslh is so much quicker I would not bother with OpenVPN port sharing.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)