Page MenuHomeFreeBSD

pfctl: fix FOM_ICMP/POM_STICKYADDRESS clash
ClosedPublic

Authored by franco_opnsense.org on Aug 5 2022, 11:41 AM.
Tags
None
Referenced Files
F166910237: D36050.id108926.diff
Mon, Aug 17, 5:17 PM
Unknown Object (File)
Sun, Aug 16, 12:17 PM
Unknown Object (File)
Wed, Aug 12, 8:16 PM
Unknown Object (File)
Wed, Aug 12, 4:06 PM
Unknown Object (File)
Wed, Aug 12, 4:06 PM
Unknown Object (File)
Tue, Aug 11, 8:14 AM
Unknown Object (File)
Tue, Aug 11, 7:09 AM
Unknown Object (File)
Mon, Aug 10, 7:22 AM
Subscribers

Details

Summary
pass inet proto icmp icmp-type {unreach}
pass route-to (if0 127.0.0.1/8) sticky-address inet

The wrong struct was being tested. The parser tries to prevent
"sticky-address sticky-address" syntax but was actually cross-
rule enforcing that ICMP filter cannot be before the use of
"sticky-address" in next rule.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable