If you need to administrate your home network while on the move, you will soon realize that you need different type of accesses.
The standard accesses you may need are :
- Https to access your secured pages or webdav shares
- SSH to administrate your main server
- OpenVPN to get a full unrestricted access to your LAN
The only problem is that many Internet providers are blocking most of the ports used by these protocols. With some very restrictive providers (or with some corporate proxy) the only available ports may be 80 & 443.
So the solution to that problem is to allow Https, SSH & OpenVPN to share the same 443 port. With such setting, all your connexions needs can be handled from any type of network.
To help us to reach that goal, a fantastic little tool is available under Linux : sslh.
This tool listens on one specific port, analyse the stream & forward it to a specific local port according to thits type. To be able to handle any type of SSH client and OpenVPN connection, we need to install and configure the latest version of SSLH (1.9 minimum).
This guide will explain how to install the latest version of sslh, which is not available in the distribution repository, on a Debian Squeeze. It should also work on Debian Lenny and on some flavours of Ubuntu also.