error when use table option with ipfw

Ruslan Ermilov ru at freebsd.org
Tue Aug 23 09:00:22 GMT 2005


On Tue, Aug 23, 2005 at 11:10:33AM +0300, vladone wrote:
> Hi!
> I try to use table option but not work.
> First, i use Freebsd 5.4 release.
> In short i have:
> cmd="ipfw -q"
> 
> $cmd table 1 add 192.168.0.0/24
> $cmd table 1 add 192.168.2.0/24
> $cmd table 1 add 192.168.3.0/24
> $cmd table 1 add 192.168.4.0/24
> 
> $cmd add 700 count ip from table(1) to any via $lif
> 
> When i run the script i receive an error about syntax error "ipfw.sh: 78: Syntax error: "(" unexpected".
> I dont understand where is error?
> Need some compiler options to work with this option?
> If i give:
> #ipfw table 1 list
> i have list of entries in this table without any error.
> 
Since this is a shell script, `(' has a special meaning to group
commands for executing them in a sub-shell.  To cancel a special
meaning, you can prefix it with the `\' character.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050823/087132f9/attachment.bin


More information about the freebsd-questions mailing list