bin/106382: parentesis bug in IPFW command

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Tue Dec 5 11:00:34 PST 2006


The following reply was made to PR bin/106382; it has been noted by GNATS.

From: "Bjoern A. Zeeb" <bzeeb-lists at lists.zabbadoz.net>
To: Joao Rocha Braga Filho <goffredo at gmail.com>
Cc: freebsd-gnats-submit at FreeBSD.org, freebsd-bugs at 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


More information about the freebsd-bugs mailing list