Date: Mon, 31 Mar 2003 11:52:25 +0200 From: "Simon L. Nielsen" <simon@nitro.dk> To: "Ilia E. Chipitsine" <ilia@cgu.chel.su> Cc: questions@FreeBSD.ORG Subject: Re: how to aggregate rules using ipfw2 ? Message-ID: <20030331095224.GB87902@nitro.dk> In-Reply-To: <20030330201632.R65324-100000@mail.cgu.chel.su> References: <20030330201632.R65324-100000@mail.cgu.chel.su>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE+iA/X8kocFXgPTRwRAp3cAJ0Yu5dFjz2Ci7OC5/28rib1m/SRhACfT3c5
2qvzfHGoMNPt3GpN1SuVoPI=
=N9R1
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030331095224.GB87902>
