ipfw2

Lee Dilkie lee at dilkie.com
Tue Dec 23 05:52:07 PST 2003


> >From man ipfw
> ---
> src and dst: {addr | { addr or ... }} [[not] ports]
> addr: [not] {any | me | addr-list | addr-set}
> addr-set: addr[/masklen]{list}
> list: {num | num-num}[,list]
> ---
>
> I think that it's right:
> ipfw 1000 add permit all from 192.168.1.1/24{3,5,9} to any
> but I see follwing:
> ipfw: bad width ``243''
>
> If I do:
> ipfw 10005 add permit all from
> 192.168.1.3,192.168.1.5,192.168.1.9 to any

What are you trying to do/say?

 192.168.1.1/24{3,5,9} translates to  192.168.1.1/243,  192.168.1.1/245 or
192.168.1.1/249.
All of which are illegal, /xx cannot exceed 32 in value (32 bits to a IPv4
internet address). Hence
the "bad width" error message.

-lee




More information about the freebsd-questions mailing list