theitd icon

VPN Route Script

theitd | PRO | 08/24/13 07:12:25 AM UTC | 0 ⭐ | 496 👁️ | Never ⏰ | []
Bash |

350 B

|

None

|

0 👍

/

0 👎

#!/bin/sh
 
# VPN_GATEWAY is the remote address of the vpn tunnel
# when ppp executes this script it will pass several values to it
# $5 will hold the remote gateway
 
# /etc/ppp/ip-up
    #/sbin/route add -n -host 192.168.0.0/24 -netmask 255.255.255.0 -gateway 10.0.0.1 
    /sbin/route add -host 192.168.0.0 -netmask 255.255.255.0 -gateway 10.0.0.1

Comments