From owner-freebsd-ipfw Mon Jan 17 20:58:53 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id F01F0150E4 for ; Mon, 17 Jan 2000 20:58:50 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id AAA64398; Tue, 18 Jan 2000 00:03:01 -0500 (EST) (envelope-from cjc) Date: Tue, 18 Jan 2000 00:03:01 -0500 From: "Crist J. Clark" To: Richard Martin Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: loss of setup option in ipfw Message-ID: <20000118000301.C63571@cc942873-a.ewndsr1.nj.home.com> References: <3882608D.E77903EE@origen.com> <20000117205243.A63571@cc942873-a.ewndsr1.nj.home.com> <3883DFAC.9129CCBA@origen.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3883DFAC.9129CCBA@origen.com>; from dmartin@origen.com on Mon, Jan 17, 2000 at 09:36:12PM -0600 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 17, 2000 at 09:36:12PM -0600, Richard Martin wrote: > > > > I cannot now use the 'setup' option for TCP packets. > > > > And the error message is...? > > When this line is run > > /sbin/ipfw add pass tcp from any to {$oip} 25 setup > > I get: > > ipfw: error: extraneous filename arguments Wow... I can't believe this one. ipfw(8) thinks that you are trying to use the, ipfw [-q] [-p preproc [-D macro[=value]] [-U macro]] file Format for the command. You would not happen to have a file named 'setup' in the pwd you are trying to execute ipfw from? From the looks of the code (/usr/src/sbin/ipfw.c), if (ac > 1 && access(av[ac - 1], R_OK) == 0) { Where 'ac' is what we ususally call 'argc' and 'av' is 'argv,' if the last argument on the command line is a readable file, ipfw thinks it is supposed to use it as a ipfw config-file. That is _really_ not an ideal way to figure out how to handle the command line. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message