VPN or SSH Tunnel for routing traffic
Posted on 2005-05-05
I'm currently using an SSH tunnel to connect to a Squid HTTP proxy running on a remote machine. I've configured my browser to use the ssh tunnel/proxy except while connecting to addresses on the local network.
I'd like to make this more robust and tunnel all my traffic through some sort of ssh tunnel. Would it be possible to setup have connections to local addresses be routed to the local router as they would normally be handled, but have all other connections (to remote addresses) be routed through the ssh tunnel to my home linux box and then routed normally by that machine's routes? Can this be done so I don't need an HTTP proxy and don't need to tell each application to go through the tunnel... so my routing table will know what to do with the connections?
How would I go about setting this up? Can it be done with just ssh tunnels or do I need to setup something like openvpn? Thanks!