diff options
author | Ermal <eri@pfsense.org> | 2011-09-20 20:11:01 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-09-20 20:11:13 +0000 |
commit | f0be3768633a1be4f39ee35bf67e49610f6e828f (patch) | |
tree | bad3e8d7309dce62dd53a9a98280c640e90f4ae4 /usr/local/sbin/vpn-linkdown | |
parent | f393a514f203db5e90d9ada43d82197fd68e1813 (diff) | |
download | pfsense-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-x | usr/local/sbin/vpn-linkdown | 10 |
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 |