Advertisement
theitd

VPN Route Script

Aug 24th, 2013
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # VPN_GATEWAY is the remote address of the vpn tunnel
  4. # when ppp executes this script it will pass several values to it
  5. # $5 will hold the remote gateway
  6.  
  7. # /etc/ppp/ip-up
  8.     #/sbin/route add -n -host 192.168.0.0/24 -netmask 255.255.255.0 -gateway 10.0.0.1
  9.     /sbin/route add -host 192.168.0.0 -netmask 255.255.255.0 -gateway 10.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement