From df81417f554e786f9610d55228d1ed8b7c1394d7 Mon Sep 17 00:00:00 2001 From: Matthew Grooms Date: Thu, 4 Sep 2008 15:40:54 +0000 Subject: Break out the advanced system options page into tabs group by categories. Fold the sysctl tunables page into a tab under the advanced options page. This reduces the top level menu options by one. There should be no functional changes. --- usr/local/www/system_advanced_misc.php | 237 +++++++++++++++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 usr/local/www/system_advanced_misc.php (limited to 'usr/local/www/system_advanced_misc.php') diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php new file mode 100644 index 0000000..4ce4d41 --- /dev/null +++ b/usr/local/www/system_advanced_misc.php @@ -0,0 +1,237 @@ +. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +##|+PRIV +##|*IDENT=page-system-advanced-misc +##|*NAME=System: Advanced: Miscellaneous page +##|*DESCR=Allow access to the 'System: Advanced: Miscellaneous' page. +##|*MATCH=system_advanced.php* +##|-PRIV + + +require("guiconfig.inc"); + +$pconfig['harddiskstandby'] = $config['system']['harddiskstandby']; +$pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']); +$pconfig['shapertype'] = $config['system']['shapertype']; +$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']); + +if ($_POST) { + + unset($input_errors); + $pconfig = $_POST; + + ob_flush(); + flush(); + + if (!$input_errors) { + + if($_POST['harddiskstandby'] <> "") { + $config['system']['harddiskstandby'] = $_POST['harddiskstandby']; + system_set_harddisk_standby(); + } else + unset($config['system']['harddiskstandby']); + + if($_POST['lb_use_sticky'] == "yes") + $config['system']['lb_use_sticky'] = true; + else + unset($config['system']['lb_use_sticky']); + + $config['system']['shapertype'] = $_POST['shapertype']; + + $config['ipsec']['preferoldsa'] = $_POST['preferoldsa_enable'] ? true : false; + + write_config(); + + $retval = 0; + config_lock(); + $retval = filter_configure(); + if(stristr($retval, "error") <> true) + $savemsg = get_std_save_message($retval); + else + $savemsg = $retval; + config_unlock(); + } +} + +$pgtitle = array("System","Advanced: Miscellaneous"); +include("head.inc"); + +?> + + + + + + + + + + + + + +
+ + + Note: + + the options on this page are intended for use by advanced users only. +
+
+
+
+
    + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + */ + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Load Balancing
Load Balancing + /> + Use sticky connections
+ Successive connections will be redirected to the servers + in a round-robin manner with connections from the same + source being sent to the same web server. This "sticky + connection" will exist as long as there are states that + refer to this connection. Once the states expire, so will + the sticky connection. Further connections from that host + will be redirected to the next web server in the round + robin. +
 
Traffic Shaper
Traffic shaper type + +
 
IP Security
IPsec SA preferral + /> + Prefer older IPsec SAs +
+ By default, if several SAs match, the newest one is + preferred if it's at least 30 seconds old. Select this + option to always prefer old SAs over new ones. +
 
Hardware Settings
Hard disk standby time + +
+ Puts the hard disk into standby mode when the selected amount of time after the last + access has elapsed. Do not set this for CF cards. +
 
  + +
+
+
+ + + + + -- cgit v1.1