From owner-freebsd-ipfw@FreeBSD.ORG Tue Aug 23 09:00:22 2005 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58F0216A41F; Tue, 23 Aug 2005 09:00:22 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FFBA43D48; Tue, 23 Aug 2005 09:00:20 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j7N90I2q026922; Tue, 23 Aug 2005 12:00:18 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 23551-01; Tue, 23 Aug 2005 12:00:16 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j7N8vkBx026519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2005 11:57:47 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.3/8.13.3) id j7N8vqaB015346; Tue, 23 Aug 2005 11:57:52 +0300 (EEST) (envelope-from ru) Date: Tue, 23 Aug 2005 11:57:52 +0300 From: Ruslan Ermilov To: vladone Message-ID: <20050823085752.GB15272@ip.net.ua> References: <163971811.20050823111033@spaingsm.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7ZAtKRhVyVSsbBD2" Content-Disposition: inline In-Reply-To: <163971811.20050823111033@spaingsm.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: freebsd-ipfw@freebsd.org, freebsd-questions@freebsd.org Subject: Re: error when use table option with ipfw X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 09:00:22 -0000 --7ZAtKRhVyVSsbBD2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D"ipfw -q" >=20 > $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 >=20 > $cmd add 700 count ip from table(1) to any via $lif >=20 > 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. >=20 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, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --7ZAtKRhVyVSsbBD2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDCuUQqRfpzJluFF4RAt6iAKCRsnyObepoH8h1n/hnHtH0KiI+ZgCgirBN sglnsbu3begX+BYcONr0VD4= =s+FK -----END PGP SIGNATURE----- --7ZAtKRhVyVSsbBD2--