How I can route my whole traffic to another ubuntu server with ssh? I mean, everything, like a VPN, but I want a SSH tunnel.
Thanks in advance.
i configured openswan between two ubuntus and working fine, now my requirement is i need to route few of my public ip traffic via vpn tunnel, i mean lets say my servers are
ubuntu 1 >> VPN OPENSWAN >> ubuntu 2
now if i ping x.x.x.x (my public ip) from ubuntu 1 it shouldn't go via public interface, it shoud go lik
>>>>> ubuntu 1 >>> vpn tunnel >>
I rely on the following script tunnel.sh written by others to keep a ssh tunnel alive:
if [ ! -f /tmp/.tunnel ]
echo "Creat SSH tunnel"
ssh -f -D 9999 $SSH_HOST "if [ -f ~/.tunnel ]; then rm ~/.tunnel; fi; while [ !