HomeFreeBSD

pf: pass pre-NAT addresses to dummynet

Description

pf: pass pre-NAT addresses to dummynet

When we're NAT-ing give dummynet (via its struct ip_fw_args) the pre-NAT source
and destination addresses.
That's what we used to do, but that got unintentionally changed during the nat64
work.

The pre-NAT addresses make somewhat more sense, in that it enables limiting
based on specific LAN clients.

See also: https://redmine.pfsense.org/issues/15770
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Sep 4 2025, 12:49 PM
Parents
rGdc0cf0648c8d: pf: check if a group has a kif before dereferencing it
Branches
Unknown
Tags
Unknown