#!/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