IPFW Rules and Games

Bob Hall rjhjr at cox.net
Fri Nov 2 13:43:58 PDT 2007

On Fri, Nov 02, 2007 at 04:59:27AM -0500, Jack Barnett wrote:
> I added this for a temporary fix:
>    ${fwcmd} add pass all from any to any
> I don't think that is the right answer; That allows to much in?

> I've tried these per the docs:
>    ${fwcmd} add allow all from any to any out via {$iip} setup
>    ${fwcmd} add allow all from any to any out via {$iip} established
>    ${fwcmd} add allow all from any to any in via {$iip} established
> and also a bunch of others; but none of them worked.

Try oip instead of iip. iip is your internal IP address, so anything
going out from iip is going to your lan, and anything coming in to iip
is coming from your lan. You want to control packets communicating with
the outside world, so you want to control them at oip.

More information about the freebsd-questions mailing list