Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2006 12:18:24 +0400
From:      AstraSerg <astraserg@proc.ru>
To:        freebsd-pf@freebsd.org
Subject:   Migrating from ipfw to pf
Message-ID:  <200608301218.24674.astraserg@proc.ru>

next in thread | raw e-mail | index | archive | help

Good day

How can I configure pf in case with 2 external interfaces?
There is no binding to interface at all in ipfw. I just

divert 42345 ip from 192.168.0.0/16 to any
fwd 194.185.178.126 ip from 194.185.178.125 to any
divert 42345 ip from any to 194.185.178.125

In pf I have to set external interface, like this

nat on sk0 inet from 192.168.0.0/16 to any -> 194.185.178.125

But traffic by default go to another interface - em1



-- 
Wed Aug 30 11:40:23 MSD 2006



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608301218.24674.astraserg>