HomeFreeBSD

pf: 'sticky-address' requires 'keep state'

Description

pf: 'sticky-address' requires 'keep state'

When route_to() processes a packet without state, pf_map_addr() is called for
each packet. Pf_map_addr() will search for a source node and will find none
since those are created only in pf_create_state(). Thus sticky address,
even though requested in rule definition, will never work.

Raise an error when a stateless filter rule uses sticky address to avoid
confusion and to keep ruleset limitations in sync with what the pf code
really does.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D46310

Details

Provenance
vegeta_tuxpowered.netAuthored on Aug 16 2024, 8:08 AM
kpCommitted on Aug 16 2024, 9:43 AM
Reviewer
kp
Differential Revision
D46310: pf: 'sticky-address' requires 'keep state'
Parents
rG41e03b46dab4: stress2: Fix warning about unused variable. Remove debug "date"
Branches
Unknown
Tags
Unknown