Regression #11857
closedMatch rules cause pf error parsing rules
100%
Description
Having a match rule, either manually or from ALTQ traffic shaping, leads to a pfctl error loading the rules:
pfctl: Invalid rule type 12
Happens on Plus 21.05 snapshots as well as 2.6.0 snapshots.
Simple to reproduce, add a rule on the Floating tab with the action set to match. The other parameters don't seem to matter, so set a random TCP port, save and apply. Then after applying, there will be an notification of the error.
Remove the match rule(s) and/or remove ATLQ traffic shaping and the rules load as expected.
Rule from /tmp/rules.debug:
match on { ix3 } inet proto tcp from any to any port 65164 tracker 1619532858 flags S/SA label "USER_RULE: match test"
Same rules load fine on 21.02.2/2.5.1.
Updated by Brad Hawkins over 3 years ago
I am seeing the exact same issue on my Negate 3100.
The first time I upgraded from 21.02 to 21.05 all outbound traffic was blocked until all traffic shaping rules were removed.
Since removing the rules I can re-add the traffic shaper and still see the pfctl: Invalid rule type 12 error but outbound traffic continues to flow.
Updated by Jim Pingle over 3 years ago
- Assignee set to Luiz Souza
- Target version changed from 21.05 to 2.6.0
- Plus Target Version set to 21.05
Updated by Kristof Provost over 3 years ago
Confirmed, and tracked down to a merge conflict. Fix pushed to the development branches, and merge request opened for the 21_05 branch.
Updated by Jim Pingle over 3 years ago
- Status changed from New to Feedback
Commit was merged, will test once it's in a build.
Updated by Jim Pingle over 3 years ago
- % Done changed from 0 to 100
match rules load OK on pfSense Plus snapshot 21.05.r.20210519.0300, there isn't a new CE snapshot yet that has the fix to test.
Updated by Jim Pingle over 3 years ago
- Status changed from Feedback to Closed
Match rules are also working on 2.6.0.a.20210520.0100 -- closing.
Updated by Jim Pingle over 3 years ago
- Release Notes changed from Default to Force Exclusion
Excluding from release notes since it was a problem introduced by changes after the last release.
Updated by Jim Pingle over 3 years ago
- Target version changed from 2.6.0 to 2.5.2