Date: Thu, 21 Apr 2005 19:37:55 +0200 From: Andre Oppermann <andre@freebsd.org> To: Karim Fodil-Lemelin <kfl@xiphos.ca> Cc: freebsd-net@freebsd.org Subject: Re: ipfw fwd to localhost Message-ID: <4267E4F3.45CD30AF@freebsd.org> References: <4267E0FA.9060004@xiphos.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Karim Fodil-Lemelin wrote: > > 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. You need this option too: options IPFIREWALL_FORWARD -- Andre
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4267E4F3.45CD30AF>