summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
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 /etc/inc/filter.inc
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 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index cab17d1..0b1e663 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -240,6 +240,11 @@ function filter_configure_sync() {
$rules .= "set limit states {$max_states}\n";
}
+ if($config['system']['maximumtableentries'] <> "" && is_numeric($config['system']['maximumtableentries'])) {
+ /* User defined maximum table entries in Advanced menu. */
+ $rules .= "set limit table-entries {$config['system']['maximumtableentries']}\n";
+ }
+
//$rules .= discover_pkg_rules("pfearly");
// Configure flowtable support if enabled.
OpenPOWER on IntegriCloud