From owner-freebsd-questions@FreeBSD.ORG Tue Dec 23 05:52:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63E6C16A4CE for ; Tue, 23 Dec 2003 05:52:07 -0800 (PST) Received: from spock.dilkie.com (spock.dilkie.com [206.51.1.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id DECD843D1F for ; Tue, 23 Dec 2003 05:52:05 -0800 (PST) (envelope-from lee@dilkie.com) Received: from borg (borg.dilkie.com [206.51.1.193]) (authenticated bits=0) by spock.dilkie.com (8.12.10/8.12.10) with ESMTP id hBNDq0J1044414 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 23 Dec 2003 08:52:01 -0500 (EST) (envelope-from lee@dilkie.com) From: "Lee Dilkie" To: "'Lev Klimin'" , Date: Tue, 23 Dec 2003 08:51:57 -0500 Message-ID: <006a01c3c95b$f02884a0$c10133ce@dilkie.com> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <18400343353.20031223094425@mari-el.ru> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Score: () 0 X-Scanned-By: MIMEDefang 2.39 Subject: RE: ipfw2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2003 13:52:07 -0000 > >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