Page MenuHomeFreeBSD

pf: fix 'natpass'
ClosedPublic

Authored by kp on Wed, Oct 1, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 4:23 AM
Unknown Object (File)
Tue, Oct 7, 5:17 AM
Unknown Object (File)
Fri, Oct 3, 3:33 PM
Unknown Object (File)
Fri, Oct 3, 9:49 AM
Unknown Object (File)
Fri, Oct 3, 2:01 AM
Unknown Object (File)
Thu, Oct 2, 8:58 PM
Unknown Object (File)
Thu, Oct 2, 6:55 PM
Unknown Object (File)
Thu, Oct 2, 4:57 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.Wed, Oct 1, 8:18 PM
This revision was not accepted when it landed; it landed in state Needs Review.Thu, Oct 2, 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.