Date: Tue, 23 Jul 2002 13:21:29 +0200 From: Dean Strik <dean@stack.nl> To: Dmitry Demyanchuk <dd@skynet.lt> Cc: Bill Fumerola <billf@mu.org>, ipfw@FreeBSD.ORG Subject: Re: ipfw2 bug? Message-ID: <20020723112129.GA38669@dragon.stack.nl> In-Reply-To: <DLEHKBDBCBAOBMIAHCBEMEADCAAA.dd@skynet.lt> References: <20020723104850.GG55389@elvis.mu.org> <DLEHKBDBCBAOBMIAHCBEMEADCAAA.dd@skynet.lt>
next in thread | previous in thread | raw e-mail | index | archive | help
Dmitry Demyanchuk wrote:
> On Tue, Jul 23, 2002 at 12:46:06PM +0200, Dmitry Demyanchuk wrote:
>
> >> 2) im getting the following message:
> >> root@hydra:/usr/src/sys:> ipfw add 25 allow ip from 10.1.1.0/24{1,2} to
> any
> >> ipfw: bad width ``241''
> >> root@hydra:/usr/src/sys:>
>
> >what would you expect ipfw to do when asked to use 10.1.1.0/241 as a range?
>
> i would expect the same action of ipfw add 25 allow ip from { 10.1.1.1 or
> 10.1.1.2 } to any
1. The /24 means 10.1.1.xxx, where 0<=x<=255
2. Your shell probably expands the {1,2} block to
10.1.1.0/241 10.1.10.0/242
--
Dean C. Strik Eindhoven University of Technology
dean@stack.nl | dean@ipnet6.org | http://www.ipnet6.org/
"This isn't right. This isn't even wrong." -- Wolfgang Pauli
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020723112129.GA38669>
