[KLUG Members] pptp routes
John Bridleman
john at bridleman.org
Thu Jan 13 23:09:14 EST 2005
* Adam Tauno Williams wrote:
> Use the ip-up.local script, which is invoked by the ip-up script and
> passed the 'param' configuration directive value from your ppp options
> file as an argument.
>
> For instance by options file specifies a param value of morrison VPN,
> and my ip-up.local script looks like -
>
> #!/bin/sh
>
> case "$6" in
> "morrison-vpn")
> echo "IP UP LOCAL: Morrison VPN, Interface $1"
> /sbin/route add -net 192.168.1.0 netmask 255.255.255.0 dev $1
> /sbin/route add -net 192.168.40.0 netmask 255.255.255.0 dev $1
> ;;
> esac
>
That also answered my next question which was 'depending on what connection script I use how does pptp know what route I need added?'
Thanks.
--
John Bridleman / www.bridleman.org
More information about the Members
mailing list