Date: Fri, 30 Mar 2001 14:23:19 +1000 From: Tony Landells <ahl@austclear.com.au> To: Chip Wiegand <chip@wiegand.org> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: IPFW rules problem Message-ID: <200103300423.OAA06816@tungsten.austclear.com.au> In-Reply-To: Message from Chip Wiegand <chip@wiegand.org> of "Thu, 29 Mar 2001 20:01:30 PST." <20010329200130.1f844009.chip@wiegand.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ahl@austclear.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103300423.OAA06816>