summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-23 02:37:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-23 02:37:48 +0000
commit351217eda013392bf257d465d53b737756bd32ae (patch)
treece3b8058ba1fa916f9b13f04154cb04fdf1ee57a /usr/local/www/system_advanced.php
parent15eead18de82f0cb791baf3b25624550c46bfca4 (diff)
downloadpfsense-351217eda013392bf257d465d53b737756bd32ae.zip
pfsense-351217eda013392bf257d465d53b737756bd32ae.tar.gz
Add maximum states for the firewall to advanced menu.
Diffstat (limited to 'usr/local/www/system_advanced.php')
-rwxr-xr-xusr/local/www/system_advanced.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 9b213cf..d9b04a2 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -49,6 +49,7 @@ $pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
$pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout'];
$pconfig['schedulertype'] = $config['system']['schedulertype'];
+$pconfig['maximumstates'] = $config['system']['maximumstates'];
if ($_POST) {
@@ -59,6 +60,9 @@ if ($_POST) {
if ($_POST['ipv6nat_enable'] && !is_ipaddr($_POST['ipv6nat_ipaddr'])) {
$input_errors[] = "You must specify an IP address to NAT IPv6 packets.";
}
+ if ($_POST['maximumstates'] && !is_numericint($_POST['maximumstates'])) {
+ $input_errors[] = "The Firewall Maximum States value must be an integer.";
+ }
if ($_POST['tcpidletimeout'] && !is_numericint($_POST['tcpidletimeout'])) {
$input_errors[] = "The TCP idle timeout must be an integer.";
}
@@ -100,9 +104,10 @@ if ($_POST) {
$config['system']['harddiskstandby'] = $_POST['harddiskstandby'];
}
$config['system']['webgui']['noantilockout'] = $_POST['noantilockout'] ? true : false;
- $config['filter']['tcpidletimeout'] = $_POST['tcpidletimeout'];
+ /* Firewall and ALTQ options */
$config['system']['schedulertype'] = $_POST['schedulertype'];
+ $config['system']['maximumstates'] = $_POST['maximumstates'];
write_config();
@@ -359,6 +364,14 @@ function enable_change(enable_over) {
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell">Firewall Maximum States</td>
+ <td width="78%" class="vtable">
+ <input name="maximumstates" type="input" id="maximumstates" value="<?php echo $pconfig['maximumstates']; ?>" onclick="enable_change(false)"><br>
+ <strong>Maximum number of connections to hold in the firewall state table.</strong><br>
+ <span class="vexpl">NOTE! Leave this blank for the default of 10000</span></td>
+ </tr>
+
+ <tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
<input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
OpenPOWER on IntegriCloud