diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-25 03:23:28 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-25 03:23:28 +0000 |
commit | 81a6f5ea31ce64153718c1a3e26491580544bbf3 (patch) | |
tree | 5099dc8a50a31becef6ad5d65f8abbccf01b2837 /usr/local/www/system_advanced.php | |
parent | 7e587bdbcbd61a7d2488b4f331853eb322916739 (diff) | |
download | pfsense-81a6f5ea31ce64153718c1a3e26491580544bbf3.zip pfsense-81a6f5ea31ce64153718c1a3e26491580544bbf3.tar.gz |
MFC m0n0wall traffic shaper option
Diffstat (limited to 'usr/local/www/system_advanced.php')
-rwxr-xr-x | usr/local/www/system_advanced.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index b0d971a..e0fffce 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -58,6 +58,7 @@ $pconfig['bypassstaticroutes'] = isset($config['filter']['bypassstaticroutes']); $pconfig['disablenatreflection'] = $config['system']['disablenatreflection']; $pconfig['disablechecksumoffloading'] = isset($config['system']['disablechecksumoffloading']); $pconfig['disablescrub'] = isset($config['system']['disablescrub']); +$pconfig['shapertype'] = $config['system']['shapertype']; if ($_POST) { @@ -216,6 +217,9 @@ if ($_POST) { unset($config['system']['disablenatreflection']); } + // Traffic shaper + $config['system']['shapertype'] = $_POST['shapertype']; + $config['ipsec']['preferoldsa'] = $_POST['preferoldsa_enable'] ? true : false; $config['bridge']['filteringbridge'] = $_POST['filteringbridge_enable'] ? true : false; $config['filter']['bypassstaticroutes'] = $_POST['bypassstaticroutes'] ? true : false; @@ -254,9 +258,7 @@ include("head.inc"); <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> - <p class="pgtitle"><?=$pgtitle?></p> - <form action="system_advanced.php" method="post" name="iform" id="iform"> <?php if ($input_errors) print_input_errors($input_errors); ?> <?php if ($savemsg) print_info_box($savemsg); ?> @@ -494,6 +496,15 @@ include("head.inc"); <td colspan="2" valign="top" class="listtopic">Traffic Shaper and Firewall Advanced</td> </tr> <tr> + <td width="22%" valign="top" class="vncell">Traffic shaper type</td> + <td width="78%" class="vtable"> + <select name="shapertype" class="formselect"> + <option value="pfSense"<?php if($pconfig['shapertype'] == 'pfSense') echo " selected"; ?>><?= $g['product_name'] ?> (ALTQ)</option> + <option value="m0n0"<?php if($pconfig['shapertype'] == 'm0n0') echo " selected"; ?>>M0n0wall (dummynet)</option> + </select> + </td> + </tr> + <tr> <td width="22%" valign="top" class="vncell">FTP RFC 959 data port violation workaround</td> <td width="78%" class="vtable"> <input name="rfc959workaround" type="checkbox" id="rfc959workaround" value="yes" <?php if (isset($config['system']['rfc959workaround'])) echo "checked"; ?> onclick="enable_change(false)" /> |