ipfw fwd not working in 6.2-release

Terry Todd tlt at badger.tltodd.com
Thu Apr 5 13:43:12 UTC 2007



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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list