Date: Tue, 5 Dec 2006 19:00:28 GMT From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/106382: parentesis bug in IPFW command Message-ID: <200612051900.kB5J0Sgu075617@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/106382; it has been noted by GNATS.
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To: Joao Rocha Braga Filho <goffredo@gmail.com>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612051900.kB5J0Sgu075617>
