From owner-freebsd-questions@FreeBSD.ORG Thu Apr 5 13:43:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2AC0216A47C for ; Thu, 5 Apr 2007 13:43:12 +0000 (UTC) (envelope-from tlt@tltodd.com) Received: from tltodd.com (tltodd.com [64.80.250.209]) by mx1.freebsd.org (Postfix) with ESMTP id BE01813C44B for ; Thu, 5 Apr 2007 13:43:10 +0000 (UTC) (envelope-from tlt@tltodd.com) Received: (from tlt@localhost) by tltodd.com (8.9.3/8.9.3) id IAA04272 for freebsd-questions@freebsd.org; Thu, 5 Apr 2007 08:42:08 -0500 (CDT) (envelope-from tlt) Date: Thu, 5 Apr 2007 08:42:08 -0500 From: Terry Todd To: freebsd-questions@freebsd.org Message-ID: <20070405084208.A4130@badger.tltodd.com> References: <20070403105841.A98763@badger.tltodd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20070403105841.A98763@badger.tltodd.com>; from tlt@badger.tltodd.com on Tue, Apr 03, 2007 at 10:58:41AM -0500 Subject: Re: ipfw fwd not working in 6.2-release X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 13:43:12 -0000 I tried this on a second machine and it does the same thing. ipfw: getsockopt(IP_FW_ADD): Invalid argument Could someone try running this on a 6.2-RELEASE system and tell me what you get: # ipfw add forward 127.0.0.1,3128 tcp from not me to any 80 in via [interface device] Thanks, Terry Todd On Tue, Apr 03, 2007 at 10:58:41AM -0500, Terry Todd wrote: > > I have tried to get ipfw fwd to work in 6.2-release but it always barfs. > > I have recompiled and installed a custom kernel with > options IPFIREWALL_FORWARD > > and I have added to the /etc/sysctl.conf file: > net.inet.ip.forwarding=1 > > Here's the rule that I'm trying to get to work. > > $fwcmd add forward 127.0.0.1,3128 tcp from not me to any 80 in via ${iif} > > When I run it I get: > > ipfw: getsockopt(IP_FW_ADD): Invalid argument > > All the other rules I have work fine. > > Am I doing something wrong here? > > Anyone else see this behaviour? > > TIA, > Terry Todd > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"