summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_wizards.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/firewall_shaper_wizards.php')
-rwxr-xr-xusr/local/www/firewall_shaper_wizards.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_wizards.php b/usr/local/www/firewall_shaper_wizards.php
index 45b7171..ed10eef 100755
--- a/usr/local/www/firewall_shaper_wizards.php
+++ b/usr/local/www/firewall_shaper_wizards.php
@@ -35,6 +35,29 @@ if($_GET['reset'] <> "") {
exit;
}
+if ($_POST['apply']) {
+ write_config();
+
+ $retval = 0;
+ $savemsg = get_std_save_message($retval);
+ /* Setup pf rules since the user may have changed the optimization value */
+
+ config_lock();
+ $retval = filter_configure();
+ config_unlock();
+ if (stristr($retval, "error") <> true)
+ $savemsg = get_std_save_message($retval);
+ else
+ $savemsg = $retval;
+
+ /* reset rrd queues */
+ system("rm -f /var/db/rrd/*queuedrops.rrd");
+ system("rm -f /var/db/rrd/*queues.rrd");
+ enable_rrd_graphing();
+
+ unlink($d_shaperconfdirty_path);
+}
+
$pgtitle = array("Firewall", "Traffic Shaper", "Wizards");
$wizards = array("Single Lan multi Wan" => "traffic_shaper_wizard.xml",
OpenPOWER on IntegriCloud