On Wed, Aug 30, 2006 at 02:21:01PM +0400, AstraSerg wrote:
> 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
The 'on sk0' bit is optional, though it is useful.
You'll probably be better off just rewriting everything, though -
porting scripts from any firewall language to another tends to lead to
distinctly suboptimal solutions.
Joachim