Proxy dispatcher for https and ssh
http://tong.ijenko.net/2011/03/proxy-dispatcher-for-httpssl-and-ssh/
proxy dispatcher for https and ssh in few lines of perl
(
8 comments
| 22 points
| on HN
)
http://tong.ijenko.net/2011/03/proxy-dispatcher-for-httpssl-and-ssh/
proxy dispatcher for https and ssh in few lines of perl
I was once unable to connect to my sshd on port 443 when I was using the free wifi in a pub. The firewall appeared to be blocking the connection: presumably it was checking whether the connection was really ssl or not.
defaults timeout connect 5s timeout client 50s timeout server 20s
listen ssl :443 tcp-request inspect-delay 2s acl is_ssl req_ssl_ver 2:3.1 tcp-request content accept if is_ssl use_backend ssh if !is_ssl server www-ssl :444 timeout client 2h
backend ssh mode tcp server ssh :22 timeout server 2h
You can use this to get ssh from places that only let you use the regular 80/443 ports.
[1]: http://www.rutschle.net/tech/sslh.shtml