HomeFreeBSD

pf: fix 'natpass'

Description

pf: fix 'natpass'

If an rdr (or nat) rule specifies 'pass' we don't run the filter rules, we just
pass the traffic. Or at least, we did until that got unintentionally broken.
Restore that behaviour and add a test case.

While here also fix nat:dummynet_mask, which relied on the broken behaviour.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D52838

Details

Provenance
kpAuthored on Tue, Sep 30, 5:40 PM
Differential Revision
D52838: pf: fix 'natpass'
Parents
rGad38f6a0b466: tcp: close two minor races with debug messages
Branches
Unknown
Tags
Unknown