HomeFreeBSD

pfctl: fix no nat / no rdr rules

Description

pfctl: fix no nat / no rdr rules

In aeddee83341 the nat rule parsing was significantly reworked, unintentionally
breaking no nat / no rdr rules. The option to not have a -> ... redirspec was
omitted.

Add trivial test cases to catch such issues in the future.

Reported by: Thomas Pasqualini <thomas.pasqualini@orange.com>
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D49665

Details

Provenance
kpAuthored on Apr 4 2025, 4:11 PM
Differential Revision
D49665: pfctl: fix no nat / no rdr rules
Parents
rG85967694b459: bridge: store a bridge_iflist pointer in ifnet
Branches
Unknown
Tags
Unknown