summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc15
1 files changed, 1 insertions, 14 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 36dedd6..379835d 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -64,20 +64,7 @@ function captiveportal_configure() {
$cprules = captiveportal_rules_generate();
/* make sure ipfw is loaded */
- mwexec("/sbin/kldload ipfw");
-
- /*
- * make sure ipfw is the first hook to make CP work correctly on
- * Multi-WAN.
- * Disable the ipfw outer hook it has not value to us.
- */
- mwexec("/sbin/sysctl net.inet.ip.pfil.inbound=\"ipfw,pf\"");
-
- /*
- * TODO: Check if disabling ipfw hook
- * does not break accounting.
- */
- mwexec("/sbin/sysctl net.inet.ip.pfil.outbound=\"ipfw,pf\"");
+ filter_load_ipfw();
/* stop accounting on all clients */
captiveportal_radius_stop_all();
OpenPOWER on IntegriCloud