pf or ipfw for NAT

Steve O'Hara-Smith steve at sohara.org
Fri Apr 2 20:04:14 UTC 2021


On Fri, 2 Apr 2021 20:17:58 +0100
Frank Leonhardt <freebsd-doc at fjl.co.uk> wrote:

> For longer than I care to remember (FreeBSD 2)  I've implemented a 
> physical asymmetric nat gateway using natd and ipfw. I just do what the 
> user guide says and it works.

	Yes it does and that's fine.

> Am I using ipfw/natd for historical reasons? Can I do the same with pf? 

	Yes you can the relevant line in my pf.conf is:

nat on $ext_if inet from !($ext_if) -> ($ext_if:0)

-- 
Steve O'Hara-Smith <steve at sohara.org>


More information about the freebsd-questions mailing list