Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2005 13:20:58 -0400
From:      Karim Fodil-Lemelin <kfl@xiphos.ca>
To:        freebsd-net@freebsd.org
Subject:   ipfw fwd to localhost
Message-ID:  <4267E0FA.9060004@xiphos.ca>

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

    I just did a cvsup of RELENG_5 and got some problem doing forwarding 
to localhost using a rule like this:

ipfw add fwd 127.0.0.1,1234 tcp from any to any in via re1

    I have those options in my kernel config:

options   IPFIREWALL
options   IPFIREWALL_FORWARD_EXTENDED
options   IPFIREWALL_DEFAULT_TO_ACCEPT

    I understand that 5.4 is using ipfw2 by default so I did not add 
IPFW2="YES" in /etc/make.conf and used the ipfw that I had installed 
with 5.3.

The error I get is somehting like setsockopt (IP_FW_ADD) invalid 
argument when issuing the ipfw call.

Anybody has encountered this problem?

Karim.



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