how to aggregate rules using ipfw2 ?

Simon L. Nielsen simon at nitro.dk
Mon Mar 31 01:52:32 PST 2003


On 2003.03.30 20:18:53 +0600, Ilia E. Chipitsine wrote:
> how can I aggregate rules ...
> 
> ipfw add allow ip from any to 192.168.0.0/16
> ipfw add allow ip from any to 10.0.0.0/8
> 
> ... into the single rule, probably using { .. or .. } syntax?
> I read man page, tried few combination, but them don't work for me.

ipfw add allow ip from any to { 192.168.0.0/16 or 10.0.0.0/8 }

should do the trick.

-- 
Simon L. Nielsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ipfw/attachments/20030331/43560ce1/attachment.bin


More information about the freebsd-ipfw mailing list