How do I do this with IPFW2?

Joe Holden joe at joeholden.co.uk
Sat Oct 28 14:07:36 UTC 2006


Odhiambo WASHINGTON wrote:
> Here is my network definition, with two IP blocks.
> 
>         my_ip_blocks = "62.8.64.0/19 196.200.32.0/20"
> 
> I'd like to do something like below:
> 
>         ipfw pipe 1 config bw 1024Kbit/s
>         ipfw add pipe 1 tcp from me to not $my_ip_blocks 25
> 
> 
> What I can't find is how to _correctly_ define my_ip_blocks
> in the rule in a way ipfw2 will accept.
> 

What release? I know the following will work in -CURRENT (Courtesy of
the manual pages for IPFW):

my_ip_blocks="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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ipfw/attachments/20061028/f2fd2c10/signature.pgp


More information about the freebsd-ipfw mailing list