summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-28 19:35:03 +0000
committerErmal <eri@pfsense.org>2011-07-28 19:35:13 +0000
commite151744e908bda123e300fc7bd6e41552b347597 (patch)
treecd545693b7a16d1fbdfa1567df108010124cb08f /usr
parent778772383bc643d80f27d3e90691e467bab9e681 (diff)
downloadpfsense-e151744e908bda123e300fc7bd6e41552b347597.zip
pfsense-e151744e908bda123e300fc7bd6e41552b347597.tar.gz
Just break states based on the remote host ip and not with localip. The later might be the same as address used by other services and might interrupt them
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/vpn-linkdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/sbin/vpn-linkdown b/usr/local/sbin/vpn-linkdown
index ac9ea2a..4b6cff7 100755
--- a/usr/local/sbin/vpn-linkdown
+++ b/usr/local/sbin/vpn-linkdown
@@ -2,4 +2,8 @@
# record logout
/usr/bin/logger -p local3.info "logout,$1,$4,$5"
-/sbin/pfctl -b $3/32 -b $4/32
+/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
OpenPOWER on IntegriCloud