Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2007 10:58:41 -0500
From:      Terry Todd <tlt@badger.tltodd.com>
To:        freebsd-questions@freebsd.org
Subject:   ipfw fwd not working in 6.2-release
Message-ID:  <20070403105841.A98763@badger.tltodd.com>

next in thread | raw e-mail | index | archive | help

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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070403105841.A98763>