diff options
author | jim-p <jimp@pfsense.org> | 2012-05-29 13:24:40 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-29 13:25:22 -0400 |
commit | 0350b81419d141793a77a29ddc73b7b1ba3eb129 (patch) | |
tree | c7f98a69c60902245a284c237827ac25bd80a2d4 /etc | |
parent | 84aea6061722bb3a4de8a024144650e2a55df3d3 (diff) | |
download | pfsense-0350b81419d141793a77a29ddc73b7b1ba3eb129.zip pfsense-0350b81419d141793a77a29ddc73b7b1ba3eb129.tar.gz |
Up the default for tables to 3000
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index dc21e26..4ffc665 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -254,10 +254,9 @@ function filter_configure_sync($delete_states_if_needed = true) { copy("{$g['tmp_path']}/rules.debug", "{$g['tmp_path']}/rules.debug.old"); $rules = ""; - if($config['system']['maximumtables'] <> "" && is_numeric($config['system']['maximumtables'])) { - /* User defined maximum table entries in Advanced menu. */ - $rules .= "set limit tables {$config['system']['maximumtables']}\n"; - } + /* Define the maximum number of tables the system can handle (should be at least aliases*2+some spare) */ + $maxtables = is_numeric($config['system']['maximumtables']) ? $config['system']['maximumtables'] : "3000"; + $rules .= "set limit tables {$maxtables}\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"; |