Lenght of description of firewall rules
When adding or modifying a firewall rule, the description field accept more characters than are saved, so the description gets truncated.
#1 Updated by Phillip Davis 4 months ago
strncpy($filterent['descr'], $_POST['descr'], 52);
I wonder why it limits that to 52?
One char per week of the year :)
I will guess that the description is later passed somewhere into the pf ruleset maybe, so it can appear somewhere in logs...?
#2 Updated by Jim Pingle 4 months ago
- Category set to Rules/NAT
- Target version set to 2.4.0
- Affected version set to All
- Affected Architecture set to All
That's a pf limitation. We prefix user rules with "USER_RULE: " (11 chars) then the description and the total length of the description (including the prefix) has to be 63 or under. See https://github.com/pfsense/pfsense/blob/master/src/etc/inc/filter.inc#L122