summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-linkdown
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-06 20:50:03 +0000
committerErmal <eri@pfsense.org>2011-07-06 20:50:03 +0000
commit8ed478973f20678568f03f00309a5165aa48a1b3 (patch)
treeb36275ddafcdfb00d83b18ed067e4e44ff82dce8 /usr/local/sbin/ppp-linkdown
parent5ffa33896f3e6173a6c7d2025487b0f85d9b73af (diff)
downloadpfsense-8ed478973f20678568f03f00309a5165aa48a1b3.zip
pfsense-8ed478973f20678568f03f00309a5165aa48a1b3.tar.gz
Kill states from the previous ip the link had on all mpd consumers. Resolves #1629
Diffstat (limited to 'usr/local/sbin/ppp-linkdown')
-rwxr-xr-xusr/local/sbin/ppp-linkdown5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown
index 1170d2f..a20d966 100755
--- a/usr/local/sbin/ppp-linkdown
+++ b/usr/local/sbin/ppp-linkdown
@@ -6,7 +6,10 @@ fi
if [ -f "/tmp/${interface}_defaultgw" ]; then
route delete default $4
fi
-# /sbin/pfctl -b $3 -b $4
+/sbin/pfctl -k 0.0.0.0/0 -k $3
+/sbin/pfctl -k $3
+pfctl -K $3
+/sbin/pfctl -b 0.0.0.0/32 -b $4
# delete the node just in case mpd cannot do that
/usr/sbin/ngctl shutdown $1:
if [ -f "/var/etc/nameserver_$1" ]; then
OpenPOWER on IntegriCloud