From owner-freebsd-net@FreeBSD.ORG Thu Apr 21 17:21:04 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A54F416A4CE for ; Thu, 21 Apr 2005 17:21:04 +0000 (GMT) Received: from mail.net (custpop.ca.mci.com [142.77.1.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0CA043D2D for ; Thu, 21 Apr 2005 17:21:03 +0000 (GMT) (envelope-from kfl@xiphos.ca) Received: from [24.201.17.57] (account kfl@xiphos.ca HELO [10.0.0.249]) by mail.net (CommuniGate Pro SMTP 4.2.8) with ESMTP id 53954222 for freebsd-net@freebsd.org; Thu, 21 Apr 2005 13:21:02 -0400 Message-ID: <4267E0FA.9060004@xiphos.ca> Date: Thu, 21 Apr 2005 13:20:58 -0400 From: Karim Fodil-Lemelin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ipfw fwd to localhost X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2005 17:21:04 -0000 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.