Date: Tue, 5 Dec 2006 18:52:15 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Joao Rocha Braga Filho <goffredo@gmail.com> Cc: freebsd-bugs@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/106382: parentesis bug in IPFW command Message-ID: <20061205185007.E91892@maildrop.int.zabbadoz.net> In-Reply-To: <200612051634.kB5GYOaS025825@www.freebsd.org> References: <200612051634.kB5GYOaS025825@www.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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?20061205185007.E91892>
