PPP over SSH

pppd updetach noauth silent nodeflate pty “/usr/bin/ssh root@remote-server /usr/sbin/pppd nodetach notty noauth” ipparam vpn 10.0.8.1:10.0.8.2

When the VPN is established, you can route traffic through it. To get access to an internal network:

ip route add 192.168.0.0/16 via 10.0.8.2

To route all Internet traffic through the tunnel, for example to protect your communication on an unencrypted network, first add a route to the SSH server through your regular gateway:

ip route add  remote-server via <current default gateway>

Next, replace the default route with the tunnel

ip route replace default via 10.0.8.2

Leave a Reply

Your email address will not be published. Required fields are marked *