diff options
author | jim-p <jimp@pfsense.org> | 2012-05-29 10:50:46 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-29 10:51:14 -0400 |
commit | 84aea6061722bb3a4de8a024144650e2a55df3d3 (patch) | |
tree | 373a2a8f3c0f50a33ec852a33545872408fa88c5 /usr/local/www | |
parent | 454ea767609ea3e679e0de4ec795532e66c7ce47 (diff) | |
download | pfsense-84aea6061722bb3a4de8a024144650e2a55df3d3.zip pfsense-84aea6061722bb3a4de8a024144650e2a55df3d3.tar.gz |
Add a knob to tune the maximum number of tables that can be defined, the pf default of 1000 is too low for systems with >500 aliases.
Conflicts:
etc/inc/filter.inc
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/system_advanced_firewall.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php index 8430ac0..0796ce3 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['maximumtables'] = $config['system']['maximumtables']; $pconfig['maximumtableentries'] = $config['system']['maximumtableentries']; $pconfig['disablereplyto'] = isset($config['system']['disablereplyto']); $pconfig['disablenegate'] = isset($config['system']['disablenegate']); @@ -75,6 +76,9 @@ if ($_POST) { if ($_POST['maximumstates'] && !is_numericint($_POST['maximumstates'])) { $input_errors[] = gettext("The Firewall Maximum States value must be an integer."); } + if ($_POST['maximumtables'] && !is_numericint($_POST['maximumtables'])) { + $input_errors[] = gettext("The Firewall Maximum Tables 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."); } @@ -116,6 +120,7 @@ if ($_POST) { $config['system']['optimization'] = $_POST['optimization']; $config['system']['maximumstates'] = $_POST['maximumstates']; + $config['system']['maximumtables'] = $_POST['maximumtables']; $config['system']['maximumtableentries'] = $_POST['maximumtableentries']; if($_POST['natreflection'] == "proxy") { @@ -318,6 +323,22 @@ function update_description(itemnum) { </td> </tr> <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Firewall Maximum Tables");?></td> + <td width="78%" class="vtable"> + <input name="maximumtables" type="text" id="maximumtables" value="<?php echo $pconfig['maximumtables']; ?>" /> + <br/> + <strong><?=gettext("Maximum number of tables for systems such as aliases, sshlockout, snort, etc, combined.");?></strong> + <br/><?php echo gettext("This is the actual number of tables, not the number of entries inside the tables (see below)");?> + <br/> + <span class="vexpl"> + <?=gettext("Note: Leave this blank for the default.");?> + <?php if (empty($pconfig['maximumtables'])): ?> + <?= gettext("On your system the default size is:");?> <?= pfsense_default_tables_size(); ?> + <?php endif; ?> + </span> + </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']; ?>" /> |