From e4b6b97aa244ff4c3f4a651f12827ffe57754cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Tue, 11 Nov 2008 22:43:01 +0000 Subject: Refactor ipfw loading. --- etc/inc/captiveportal.inc | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'etc/inc/captiveportal.inc') 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(); -- cgit v1.1