Perl script run by cron on client behind firewall to maintain highly reliable auto restarting sshtunnel with server outside firewall. Tunnel status reported via email and webpage. Authenticates with RSA keys. Maintains and rotates logfiles.
RSTunnel (Reliable SSHTunnel) allows you to tunnel through data between two networks in a secure and encrypted tunnel. It uses SSH to connect the two machines. This will setup a tunnel for you, and make sure that it's constantly running.