diff options
author | Ermal <eri@pfsense.org> | 2013-01-31 22:04:07 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-31 22:04:07 +0000 |
commit | 8f563bb423ab8a1c06a191b5fc772a260b042360 (patch) | |
tree | 86ca795cdc4d52a599eb3e588bf67168a6fa12b4 /usr/local/sbin/vpn-linkdown | |
parent | b686e5d0ceff87525319a900b078fd41faede9b4 (diff) | |
download | pfsense-8f563bb423ab8a1c06a191b5fc772a260b042360.zip pfsense-8f563bb423ab8a1c06a191b5fc772a260b042360.tar.gz |
Use the better -Fs modifies to pf to kill the states by interface. Also kill both sides on an interface when -k needs to be used
Diffstat (limited to 'usr/local/sbin/vpn-linkdown')
-rwxr-xr-x | usr/local/sbin/vpn-linkdown | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/local/sbin/vpn-linkdown b/usr/local/sbin/vpn-linkdown index 0549b1f..b6d033c 100755 --- a/usr/local/sbin/vpn-linkdown +++ b/usr/local/sbin/vpn-linkdown @@ -2,8 +2,5 @@ # record logout /usr/bin/logger -p local3.info "logout,$1,$4,$5" -/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 +/sbin/pfctl -i $1 -Fs +/sbin/pfctl -K $4/32 |