Public domain
pppd updetach silent pty "ssh -t root@192.168.1.10 pppd" ipparam vpn 10.1.1.1:10.1.1.2
pppd updetach noauth silent nodeflate pty "ssh root@192.168.1.10 pppd nodetach notty noauth" ipparam vpn 10.1.1.1:10.1.1.2
kill -TERM $(cat /var/run/ppp0.pid)
BY: Pejman Moghadam
TAG: ppp, ssh
DATE: 2010-01-10 00:51:33