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.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 0d4cbfe..b8f8887 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -65,6 +65,14 @@ function captiveportal_configure() {
/* 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\"");
+ mwexec("/sbin/sysctl net.inet.ip.pfil.outbound=\"pf\"");
/* stop accounting on all clients */
captiveportal_radius_stop_all();
@@ -1120,4 +1128,4 @@ function portal_mac_fixed($clientmac) {
return FALSE ;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud