Skip to content

Instantly share code, notes, and snippets.

@arielvalentin
Created July 15, 2015 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arielvalentin/d2c171cbd59e9132e2fa to your computer and use it in GitHub Desktop.
Save arielvalentin/d2c171cbd59e9132e2fa to your computer and use it in GitHub Desktop.
Route VPN traffic through static route
mataleon:~ ariel$ ifconfig
....
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
inet 192.168.80.8 --> 192.168.20.1 netmask 0xffffff00
mataleon:~ ariel$ sudo /sbin/route add -net 192.168.20.0/16 -interface ppp0
add net 192.168.20.0: gateway ppp0
mataleon:~ ariel$ ssh gust@192.168.20.35
Password:
Last login: Wed Jul 15 11:00:53 2015 from 192.168.80.7
uranium:~ 12:56:35 zd$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment