Bug #11566
closedFirewall Maximum Table Entries "default size" is whatever is entered
100%
Description
- Change 2000000 to 2000001 or any other number
- Click Save
- Note the "default" number does not change
- Click "Firewall & NAT" tab to reload the page
- Note the default is the number you entered in step 1
(tried to search for this here but couldn't find it)
Files
Updated by Steve Y about 1 year ago
Since it came up in forum, just noting this is still an issue on 23.05.1. (haven't updated any to 23.09 yet since it just came out)
Updated by Marcos M about 1 year ago
The code simply reports the current value rather than keeping track of the default value (which is accurate only when no value is provided). I'm not sure it's worth the extra complexity of keeping track of the default value separately.
Updated by Steve Y about 1 year ago
It may not be. :) And actually per https://docs.netgate.com/pfsense/en/latest/config/advanced-firewall-nat.html#firewall-maximum-table-entries the default is a fixed number of 400,000, thus not dependent "on this system" hardware at all. (unless that was trying to say, "on this pfSense version"?) Seems like options are to remove the whole sentence and let the doc page indicate the number, or change the text to list the actual default.
Updated by Marcos M about 1 year ago
- Status changed from New to Pull Request Review
- Assignee set to Marcos M
- Target version set to 2.8.0
- Plus Target Version set to 24.03
- Release Notes set to Default
- Affected Architecture All added
Updated by Marcos M about 1 year ago
Updated by Marcos M about 1 year ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset 50b5741beafdb34a3009b78279e203570f5e6d3f.
Updated by Jordan G about 1 year ago
applying this patch on 23.09 removes the "default" size listing below the entry field
clearing the field and saving populates it with the value from 'step 1' in op
Updated by Steve Y about 1 year ago
A quick look at the code, I see a few of:
-['placeholder' => pfsense_default_table_entries_size()]
+['placeholder' => pfsense_current_table_entries_size()]
In lieu of rehashing the discussion of using the default, seems like the "leave this blank for the default" text should be removed, and/or not allow it to be blank?
I don't easily have a new/empty install to play with but is pfsense_current_table_entries_size() = 400000 if no value is set?
Updated by Marcos M about 1 year ago
- Status changed from Feedback to Resolved
We don't set a defined value by default - it's whatever the OS reports (which has its own defaults).
Updated by Jim Pingle 12 months ago
- Target version changed from 2.8.0 to 2.7.2
- Plus Target Version changed from 24.03 to 23.09.1