summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_firewall.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-05-13 15:43:05 -0400
committerjim-p <jimp@pfsense.org>2010-05-13 15:46:07 -0400
commitfb586a1633ba53584dab6208a64f96798be4869d (patch)
treebe50843edc051ac4617a45d476300b3439d37c9f /usr/local/www/system_advanced_firewall.php
parentef021ff780bfae0d0188a051a0d284a33c7340c7 (diff)
downloadpfsense-fb586a1633ba53584dab6208a64f96798be4869d.zip
pfsense-fb586a1633ba53584dab6208a64f96798be4869d.tar.gz
Add a GUI field to let the user configure the maxium table entries size. Resolves #588
NOTE: Actual tables, not states.
Diffstat (limited to 'usr/local/www/system_advanced_firewall.php')
-rw-r--r--usr/local/www/system_advanced_firewall.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php
index 742cc5d..74a315b 100644
--- a/usr/local/www/system_advanced_firewall.php
+++ b/usr/local/www/system_advanced_firewall.php
@@ -55,6 +55,7 @@ $pconfig['scrubrnid'] = $config['system']['scrubrnid'];
$pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout'];
$pconfig['optimization'] = $config['filter']['optimization'];
$pconfig['maximumstates'] = $config['system']['maximumstates'];
+$pconfig['maximumtableentries'] = $config['system']['maximumtableentries'];
$pconfig['disablenatreflection'] = $config['system']['disablenatreflection'];
if (!isset($config['system']['enablebinatreflection']))
$pconfig['disablebinatreflection'] = "yes";
@@ -74,6 +75,9 @@ if ($_POST) {
if ($_POST['maximumstates'] && !is_numericint($_POST['maximumstates'])) {
$input_errors[] = gettext("The Firewall Maximum States value must be an integer.");
}
+ if ($_POST['maximumtableentries'] && !is_numericint($_POST['maximumtableentries'])) {
+ $input_errors[] = gettext("The Firewall Maximum Table Entries value must be an integer.");
+ }
if ($_POST['tcpidletimeout'] && !is_numericint($_POST['tcpidletimeout'])) {
$input_errors[] = gettext("The TCP idle timeout must be an integer.");
}
@@ -108,6 +112,7 @@ if ($_POST) {
$config['system']['optimization'] = $_POST['optimization'];
$config['system']['maximumstates'] = $_POST['maximumstates'];
+ $config['system']['maximumtableentries'] = $_POST['maximumtableentries'];
if($_POST['disablenatreflection'] == "yes")
$config['system']['disablenatreflection'] = $_POST['disablenatreflection'];
@@ -288,6 +293,21 @@ function update_description(itemnum) {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Firewall Maximum Table Entries");?></td>
+ <td width="78%" class="vtable">
+ <input name="maximumtableentries" type="text" id="maximumtableentries" value="<?php echo $pconfig['maximumtableentries']; ?>" />
+ <br/>
+ <strong><?=gettext("Maximum number of table entries for systems such as aliases, sshlockout, snort, etc, combined.");?></strong>
+ <br/>
+ <span class="vexpl">
+ <?=gettext("Note: Leave this blank for the default.");?>
+ <?php if (empty($pconfig['maximumtableentries'])): ?>
+ <?= gettext("On your system the default size is");?>: <?= pfsense_default_table_entries_size(); ?>
+ <?php endif; ?>
+ </span>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Static route filtering");?></td>
<td width="78%" class="vtable">
<input name="bypassstaticroutes" type="checkbox" id="bypassstaticroutes" value="yes" <?php if ($pconfig['bypassstaticroutes']) echo "checked"; ?> />
OpenPOWER on IntegriCloud