From 6441fa9a5f8fa303469822aa3e79b863de1ab9c5 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 3 Aug 2010 17:35:50 +0000 Subject: Resolves #787. Present an option to enable a scrub rule for target to limit the mss to specified value. --- usr/local/www/system_advanced_misc.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'usr/local') diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index 1bdefe9..3019780 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -51,6 +51,8 @@ require_once("shaper.inc"); $pconfig['harddiskstandby'] = $config['system']['harddiskstandby']; $pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']); $pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']); +$pconfig['maxmss_enable'] = isset($config['system']['maxmss_enable']); +$pconfig['maxmss'] = $config['system']['maxmss']; $pconfig['powerd_enable'] = isset($config['system']['powerd_enable']); $pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']); $pconfig['schedule_states'] = isset($config['system']['schedule_states']); @@ -81,6 +83,14 @@ if ($_POST) { else unset($config['system']['preferoldsa']); + if($_POST['maxmss_enable'] == "yes") { + $config['system']['maxmss_enable'] = true; + $config['system']['maxmss'] = $_POST['maxmss']; + } else { + unset($config['system']['maxmss_enable']); + unset($config['system']['maxmss']); + } + if($_POST['powerd_enable'] == "yes") $config['system']['powerd_enable'] = true; else @@ -123,6 +133,14 @@ include("head.inc"); if ($savemsg) print_info_box($savemsg); ?> +
@@ -232,6 +250,18 @@ include("head.inc"); "option to always prefer old SAs over new ones."); ?> + + + + -- cgit v1.1
+ onClick="maxmss_checked(this)" /> + +
+ " class="formfld unknown" > +
+ +