[sslh] IPv4 and IPv6 (was: Re: sslh not working together with curl)

Borkenkaefer borkenkaefer at abelo.ch
Sun Feb 8 11:52:08 CET 2015


> >> I checked the log files and sslh forwarded this request to ssh and
> >> not apache httpd.
> > 
> > Maybe curl is taking too long to send its first packet and
> > sslh times out to ssh? Try increasing sslh's timeout to 5s
> > or so?
> 
> I tried this but this does not solve it.
> But if I force curl to use the IPv4 address it is working.
> 
> How can I configure sslh to bind to IPv4 and IPv6 address?
> 
I managed it by using openbsd-inetd. I added two lines two lines to
/etc/inetd.conf, one for IPv4 and one for IPv6.

https stream tcp4 nowait sslh /usr/sbin/tcpd /usr/sbin/sslh -i --user
sslh --transparent --numeric --listen [IPv4]:443 --ssl [IPv4]:4443 --ssh
[IPv4]:2222 --openvpn [IPv4]:1194
https stream tcp6 nowait sslh /usr/sbin/tcpd /usr/sbin/sslh -i --user
sslh --transparent --numeric --listen [IPv6]:443 --ssl [IPv6]:4443 --ssh
[IPv6]:2222 --openvpn [IPv6]:1194

SSH is listening on Port 22 and Port 2222, openvpn is listening on port
1194 and the ssl enabled webserver is listening on port 4443.

b.




More information about the sslh mailing list