diff options
Diffstat (limited to 'usr/local/sbin/ppp-linkup')
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index dba4412..3a62fbb 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -1,6 +1,13 @@ #!/bin/sh if [ "$2" == "inet" ]; then + + OLD_ROUTER=`/bin/cat /tmp/${1}_router` + if [ "${OLD_ROUTER}" != "" ]; then + echo "Removing states to old router ${OLD_ROUTER}" | logger -t ppp-linkup + /sbin/pfctl -b 0.0.0.0/32 -b ${OLD_ROUTER}/32 + fi + # let the configuration system know that the ipv4 has changed. /bin/echo $4 > /tmp/$1_router /bin/echo $3 > /tmp/$1_ip |