From owner-freebsd-ipfw Tue Jul 23 4:21:38 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1205137B400 for ; Tue, 23 Jul 2002 04:21:37 -0700 (PDT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7794143E4A for ; Tue, 23 Jul 2002 04:21:36 -0700 (PDT) (envelope-from dean@dragon.stack.nl) Received: from dragon.stack.nl (dragon.stack.nl [2001:610:1108:5011:202:b3ff:fe17:a4cb]) by mailhost.stack.nl (Postfix) with ESMTP id 69A2A3F92; Tue, 23 Jul 2002 13:21:35 +0200 (CEST) Received: by dragon.stack.nl (Postfix, from userid 1600) id F1B679890; Tue, 23 Jul 2002 13:21:29 +0200 (CEST) Date: Tue, 23 Jul 2002 13:21:29 +0200 From: Dean Strik To: Dmitry Demyanchuk Cc: Bill Fumerola , ipfw@FreeBSD.ORG Subject: Re: ipfw2 bug? Message-ID: <20020723112129.GA38669@dragon.stack.nl> References: <20020723104850.GG55389@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: VIM Rulez! http://www.vim.org/ X-MUD: Outerspace - telnet://mud.stack.nl:3333 X-Really: Yes User-Agent: Mutt/1.5.1i Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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