From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 5 18:52:32 2006 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 12A7316A407; Tue, 5 Dec 2006 18:52:32 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DEA543CA6; Tue, 5 Dec 2006 18:51:50 +0000 (GMT) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 622E820020B; Tue, 5 Dec 2006 19:52:29 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id CFB7B2001ED; Tue, 5 Dec 2006 19:52:22 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id D4321444889; Tue, 5 Dec 2006 18:52:15 +0000 (UTC) Date: Tue, 5 Dec 2006 18:52:15 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Joao Rocha Braga Filho In-Reply-To: <200612051634.kB5GYOaS025825@www.freebsd.org> Message-ID: <20061205185007.E91892@maildrop.int.zabbadoz.net> References: <200612051634.kB5GYOaS025825@www.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de Cc: freebsd-bugs@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/106382: parentesis bug in IPFW command X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 18:52:32 -0000 On Tue, 5 Dec 2006, Joao Rocha Braga Filho wrote: > but when I use > > root:goffredo[627] ipfw add 2 count tcp from any to '(' any 22 to any 23 ')' > ipfw: missing ")" > > root:goffredo[628] ipfw add 2 count tcp from any to \( any 22 to any 23 \) > ipfw: missing ")" > > root:goffredo[629] ipfw add 2 count tcp from any to '{' any 22 to any 23 '}' > ipfw: missing ")" > > root:goffredo[630] ipfw add 2 count tcp from any to \{ any 22 to any 23 \} > ipfw: missing ")" that's a bad output from the parser giving you a false impression of the error. The command is wrong. it says to any 22 to any 23 you mean s,to,or, inside the () so it would be to any 22 or to any 23 Could you try this: ipfw add 2 count tcp from any to any \( 22 or 23 \) ? -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT