From 7a7abeba12d491d393def637f2e0329b64a7e257 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 20 Oct 2006 17:00:34 +0000 Subject: Remove pf states for client ip when disconnecting from captive portal. --- etc/inc/captiveportal.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/inc') 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 */ -- cgit v1.1