Bug #1187
closedCreating NAT rule with valid (but long) label causes error loading pf rules
100%
Description
I created a Firewall: NAT: Port Forward: rule with a description of: "Redirect tftp requests to tftp-proxy running locally."
It seems to have created an associated rule that ends up with a label that's too long because when I apply my rule changes I get this error:
php: : There were error(s) loading the rules: /tmp/rules.debug:103: rule label too long (max 63 chars) pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [103]: pass in quick on $BACK proto udp from 192.168.121.0/24 to 127.0.0.1 port 6969 label "USER_RULE: NAT Redirect tftp requests to tftp-proxy running locally."
It seems that it takes my original description and prepends 'USER_RULE: NAT' to it. This causes the associated rule to end up with more than 63 characters!
Presumably the form validates the original description as it's less than 63 characters before the other part is prepended.