Page MenuHomeFreeBSD

pf: fix 'natpass'
ClosedPublic

Authored by kp on Oct 1 2025, 8:18 PM.
Tags
None
Referenced Files
F160435753: D52838.id.diff
Wed, Jun 24, 9:58 AM
Unknown Object (File)
Fri, Jun 19, 11:52 PM
Unknown Object (File)
May 22 2026, 8:23 PM
Unknown Object (File)
May 17 2026, 10:50 PM
Unknown Object (File)
May 17 2026, 10:49 PM
Unknown Object (File)
May 17 2026, 10:49 PM
Unknown Object (File)
May 17 2026, 10:37 PM
Unknown Object (File)
May 14 2026, 6:11 PM

Details

Summary

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")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67463
Build 64346: arc lint + arc unit

Event Timeline

kp requested review of this revision.Oct 1 2025, 8:18 PM
This revision was not accepted when it landed; it landed in state Needs Review.Oct 2 2025, 8:48 PM
Closed by commit rGb93394a38bc4: pf: fix 'natpass' (authored by kp). · Explain Why
This revision was automatically updated to reflect the committed changes.