Date: Sat, 28 Oct 2006 15:07:10 +0100 From: Joe Holden <joe@joeholden.co.uk> To: Odhiambo WASHINGTON <odhiambo.raburu@wananchi.com> Cc: freebsd-ipfw@freebsd.org Subject: Re: How do I do this with IPFW2? Message-ID: <4543640E.1060808@joeholden.co.uk> In-Reply-To: <20061028121914.GA79793@ns2.wananchi.com> References: <20061028121914.GA79793@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4EA24D498A97B47FEAB8CFFB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Odhiambo WASHINGTON wrote: > Here is my network definition, with two IP blocks. >=20 > my_ip_blocks =3D "62.8.64.0/19 196.200.32.0/20" >=20 > I'd like to do something like below: >=20 > ipfw pipe 1 config bw 1024Kbit/s > ipfw add pipe 1 tcp from me to not $my_ip_blocks 25 >=20 >=20 > What I can't find is how to _correctly_ define my_ip_blocks > in the rule in a way ipfw2 will accept. >=20 What release? I know the following will work in -CURRENT (Courtesy of the manual pages for IPFW): my_ip_blocks=3D"62.8.64.0/19, 196.200.32.0/20" ipfw pipe 1 config bw 1024Kbit/s ipfw add pipe 1 tcp from me to not $my_ip_blocks 25 HTH Joe --------------enig4EA24D498A97B47FEAB8CFFB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFQ2QRdQJXshOm0ecRAm/VAJ4lqov6C6vTM8mU+vIRoIpdybt+2gCfX+/u NkFxWPBhmwYiz6VgHcflxpk= =wgHi -----END PGP SIGNATURE----- --------------enig4EA24D498A97B47FEAB8CFFB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4543640E.1060808>