HomeFreeBSD

pf: partially import OpenBSD's NAT rewrite

Description

pf: partially import OpenBSD's NAT rewrite

We won't follow this fully, because it involves breaking syntax changes
(removing nat/rdr rules and moving this functionality into regular rules) as
well as behaviour changes because NAT is now done after the rules evaluation,
rather than before it.

We import some related changes anyway, because it paves the way for nat64
support.
This change introduces a new pf_kpool in struct pf_krule, for nat. It is not yet
used (but will be for nat64) and renames the existing 'rpool' to 'rdr'.

Obtained from: OpenBSD, henning <henning@openbsd.org>, 0ef3d4febe
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D47783

Details

Provenance
kpAuthored on Oct 11 2024, 12:15 PM
Differential Revision
D47783: pf: partially import OpenBSD's NAT rewrite
Parents
rG58c7db14cd71: linprocfs: Properly reset error variable for mtab generation
Branches
Unknown
Tags
Unknown