summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_firewall.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-08 10:09:50 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-08 10:09:50 +0000
commitbd448e7ff9e17e7f2cb6572fbaa58f7d9e5c9407 (patch)
tree66cf70a60425ab824d44629ed6cf8dbc6787851d /usr/local/www/system_advanced_firewall.php
parent3e2bd5deb8ad20d74047bef7482b110b5d472fb5 (diff)
downloadpfsense-bd448e7ff9e17e7f2cb6572fbaa58f7d9e5c9407.zip
pfsense-bd448e7ff9e17e7f2cb6572fbaa58f7d9e5c9407.tar.gz
From yesterday moving of ipfw loading to only captive portal a regression was noticed on ipfw states sizeing.
Fix this regression by changing this states when they are changed on the system advanced settings page. Reported by: cmb@
Diffstat (limited to 'usr/local/www/system_advanced_firewall.php')
-rw-r--r--usr/local/www/system_advanced_firewall.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php
index 370b92e..57d5af4 100644
--- a/usr/local/www/system_advanced_firewall.php
+++ b/usr/local/www/system_advanced_firewall.php
@@ -118,6 +118,13 @@ if ($_POST) {
write_config();
+ /*
+ * XXX: This is a kludge here but its the better place than on every filter reload.
+ * NOTE: This is only for setting the ipfw state limits.
+ */
+ if ($_POST['maximumstates'] && is_numeric($_POST['maximumstates']) && is_module_loaded("ipfw.ko"))
+ filter_load_ipfw();
+
$retval = 0;
config_lock();
$retval = filter_configure();
OpenPOWER on IntegriCloud