summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/vpn-linkdown
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-09-20 20:11:01 +0000
committerErmal <eri@pfsense.org>2011-09-20 20:11:13 +0000
commitf0be3768633a1be4f39ee35bf67e49610f6e828f (patch)
treebad3e8d7309dce62dd53a9a98280c640e90f4ae4 /usr/local/sbin/vpn-linkdown
parentf393a514f203db5e90d9ada43d82197fd68e1813 (diff)
downloadpfsense-f0be3768633a1be4f39ee35bf67e49610f6e828f.zip
pfsense-f0be3768633a1be4f39ee35bf67e49610f6e828f.tar.gz
Bind the state killing to the interface they should kill the states so that it does not impact other services like in #1421
Diffstat (limited to 'usr/local/sbin/vpn-linkdown')
-rwxr-xr-xusr/local/sbin/vpn-linkdown10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/sbin/vpn-linkdown b/usr/local/sbin/vpn-linkdown
index 4b6cff7..0549b1f 100755
--- a/usr/local/sbin/vpn-linkdown
+++ b/usr/local/sbin/vpn-linkdown
@@ -2,8 +2,8 @@
# record logout
/usr/bin/logger -p local3.info "logout,$1,$4,$5"
-/sbin/pfctl -b 0.0.0.0/32 -b $4/32
-/sbin/pfctl -k $4/32
-/sbin/pfctl -k 0.0.0.0/32 $4/32
-/sbin/pfctl -K $4/32
-/sbin/pfctl -K 0.0.0.0/32 -K $4/32
+/sbin/pfctl -i $1 -b 0.0.0.0/32 -b $4/32
+/sbin/pfctl -i $1 -k $4/32
+/sbin/pfctl -i $1 -k 0.0.0.0/32 $4/32
+/sbin/pfctl -i $1 -K $4/32
+/sbin/pfctl -i $1 -K 0.0.0.0/32 -K $4/32
OpenPOWER on IntegriCloud