From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 5 19:00:34 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5004A16A492 for ; Tue, 5 Dec 2006 19:00:34 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3435F43CA2 for ; Tue, 5 Dec 2006 18:59:53 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kB5J0STb075618 for ; Tue, 5 Dec 2006 19:00:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kB5J0Sgu075617; Tue, 5 Dec 2006 19:00:28 GMT (envelope-from gnats) Date: Tue, 5 Dec 2006 19:00:28 GMT Message-Id: <200612051900.kB5J0Sgu075617@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Bjoern A. Zeeb" Cc: Subject: Re: bin/106382: parentesis bug in IPFW command X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Bjoern A. Zeeb" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 19:00:34 -0000 The following reply was made to PR bin/106382; it has been noted by GNATS. From: "Bjoern A. Zeeb" To: Joao Rocha Braga Filho Cc: freebsd-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/106382: parentesis bug in IPFW command Date: Tue, 5 Dec 2006 18:52:15 +0000 (UTC) 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