Project

General

Profile

Actions

Bug #11762

closed

Invalid combinations of TCP flag matching options cause ``pfctl`` parser error

Added by Viktor Gurov about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
Rules / NAT
Target version:
Start date:
03/31/2021
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
21.05
Release Notes:
Default
Affected Version:
2.5.0
Affected Architecture:

Description

There were error(s) loading the rules: /tmp/rules.debug:170: flags always false - 
The line in question reads [170]: 
pass in quick on $SYNC inet proto tcp from 7.7.7.7 to any tracker 1617182080 flags SAUEW/P keep state label "USER_RULE: testflags"
@ 2021-03-31 15:02:16

input validation must check TCP flags for condition:
https://github.com/pfsense/FreeBSD-src/blob/da3fcfc9b768892ebf17aa92bd10761e2c76a72d/sbin/pfctl/parse.y#L891

Actions

Also available in: Atom PDF