[Bug 268717] [pf] rdr rules don't work for traffic originating at localhost

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 24 Jan 2023 08:50:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268717

--- Comment #13 from Kristof Provost <kp@freebsd.org> ---
Oh. Wait.

The setup in comment #1 tries to use 'rdr' to redirect an outbound packet. But
the pf.conf man page says: "Then either the rdr rules are evaluated on an
inbound
 packet or the nat rules on an outbound packet."

So I don't think that's expected to work. You should be able (and indeed, in my
test script I can) make this work using 'nat' rather than 'rdr'.

-- 
You are receiving this mail because:
You are the assignee for the bug.