From owner-freebsd-questions Thu Mar 29 20:23:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nameserver.austclear.com.au (nameserver.austclear.com.au [192.83.119.132]) by hub.freebsd.org (Postfix) with ESMTP id 340D037B71A for ; Thu, 29 Mar 2001 20:23:20 -0800 (PST) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.70.1]) by nameserver.austclear.com.au (8.9.3/8.9.3) with ESMTP id OAA74889; Fri, 30 Mar 2001 14:23:19 +1000 (EST) Received: from tungsten (tungsten [192.168.70.1]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id OAA06816; Fri, 30 Mar 2001 14:23:19 +1000 (EST) Message-Id: <200103300423.OAA06816@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: Chip Wiegand Cc: FreeBSD Questions Subject: Re: IPFW rules problem In-Reply-To: Message from Chip Wiegand of "Thu, 29 Mar 2001 20:01:30 PST." <20010329200130.1f844009.chip@wiegand.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 30 Mar 2001 14:23:19 +1000 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG chip@wiegand.org said: > Flushed all rules. > 00000 divert 8668 ip from any to any via xl1 > 00000 allow ip from any to any > [: missing ] > [: missing ] > [: missing ] > ----------------------------------------------------- > I cannot for the life of me find where to put the missing :'s. I have > included the rc.firewall file, maybe someone with sharper eyes than > mine can tell me where the missing :'s belong - Actually, you've totally misinterpreted the error message. The error is from '[', saying that you are missing ']', similar to "sh: missing argument", and is being generated for the following lines: > if [ "${firewall}" = "open"]; then > elif [ "${firewall}" = "client"]; then > elif [ "${firewall}" != "none" -a -r "${firewall}"]; then where you haven't left a space before the ']' to make it a separate token. Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message