diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-20 17:00:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-20 17:00:34 +0000 |
commit | 7a7abeba12d491d393def637f2e0329b64a7e257 (patch) | |
tree | 92fe7d14f855a5fec1f9d512e903fd11493ad3f7 /etc/inc | |
parent | 2131ed2f9d392b3d56f218563007027b9eb6db11 (diff) | |
download | pfsense-7a7abeba12d491d393def637f2e0329b64a7e257.zip pfsense-7a7abeba12d491d393def637f2e0329b64a7e257.tar.gz |
Remove pf states for client ip when disconnecting from captive portal.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 9892fc6..ae5386d 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -568,6 +568,10 @@ function captiveportal_disconnect($dbent, $radiusservers,$term_cause = 1,$stop_t mwexec("/sbin/ipfw delete " . ($dbent[1]+40500)); mwexec("/sbin/ipfw delete " . ($dbent[1]+45500)); } + + /* ensure all pf states are killed (pfSense) */ + mwexec("pfctl -k {$dbent[2]}"); + } /* remove a single client by ipfw rule number */ |