summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-20 17:00:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-20 17:00:34 +0000
commit7a7abeba12d491d393def637f2e0329b64a7e257 (patch)
tree92fe7d14f855a5fec1f9d512e903fd11493ad3f7
parent2131ed2f9d392b3d56f218563007027b9eb6db11 (diff)
downloadpfsense-7a7abeba12d491d393def637f2e0329b64a7e257.zip
pfsense-7a7abeba12d491d393def637f2e0329b64a7e257.tar.gz
Remove pf states for client ip when disconnecting from captive portal.
-rw-r--r--etc/inc/captiveportal.inc4
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 */
OpenPOWER on IntegriCloud