Guest User!

You are not Sophos Staff.

Routes dropped when ppp0 goes down

#Repost as no response in Firewalling, Routing forum...

I have succesfully connected 2 LANs via PPTP by routing between the networks. Works great!

In order to route packets accross the vpn to the remote network I do this on the asl.

route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.100.100 dev ppp0

Where 192.168.1.0 is the remote LAN and 192.168.100.100 is the static IP assigned to the user for the remote PPTP client.

The problem is that this route seems to get dropped when the PPTP client disconnects (or if ASL reboots), so I need to be able to add this route in every time ppp0 comes up, or make it persistant somehow.

Is there a script/file somewhere that I can add this command to?

Thanks in advance!

Sam

[ 13 January 2002: Message edited by: Sam Oliver ]