HomeFreeBSD

pf: Let rdr rules modify the src port if doing so would avoid a conflict

Description

pf: Let rdr rules modify the src port if doing so would avoid a conflict

If NAT rules cause inbound connections to different external IPs to be
mapped to the same internal IP, and some application uses the same
source port for multiple such connections, rdr translation may result in
conflicts that cause some of the connections to be dropped.

Address this by letting rdr rules detect state conflicts and modulate
the source port to avoid them.

Reviewed by: kp, allanjude
MFC after: 3 months
Sponsored by: Klara, Inc.
Sponsored by: Modirum
Differential Revision: https://reviews.freebsd.org/D44488

Details

Provenance
markjAuthored on Aug 19 2024, 2:08 PM
Reviewer
kp
Differential Revision
D44488: pf: if a new RDR state connect be created, modulate src port
Parents
rGd7d5c9efef03: pkgbase: Let source packages be built in parallel
Branches
Unknown
Tags
Unknown