From owner-freebsd-ipfw Tue Mar 26 7:59:18 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by hub.freebsd.org (Postfix) with ESMTP id A353D37B419 for ; Tue, 26 Mar 2002 07:59:14 -0800 (PST) Received: from [198.60.22.22] (helo=mail.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.22 #1) id 16ptLu-0005rf-00 for freebsd-ipfw@freebsd.org; Tue, 26 Mar 2002 08:59:14 -0700 Received: from [166.70.26.252] (helo=roger) by mail.xmission.com with smtp (Exim 3.22 #1) id 16ptLu-000255-00 for freebsd-ipfw@freebsd.org; Tue, 26 Mar 2002 08:59:14 -0700 From: "Roger Helman" To: Subject: Re: FreeBSD 4.2 ipfw natd -- Port Forwarding? Date: Tue, 26 Mar 2002 09:03:37 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have searched google and freebsd and can find a solution to my problem. I am getting the following error when ever I attempt to get natd to forward port 1723 natd -n rl0 -redirect_port tcp 192.168.1.21:1723 1723 natd: Unable to bind divert socket.: Address already in use Here is my rc.conf gateway_enable="YES" firewall_enable="YES" firewall_type="open" sshd_enable="YES" inetd_enable="YES" ppp_enable="NO" ppp_nat="NO" natd_enable="YES" natd_interface="rl0" natd_flags="" network_interfaces="rl0 rl1 lo0" ifconfig_rl0="inet 10.0.0.2 netmask 255.255.255.0" ifconfig_rl1="inet 192.168.1.1 netmask 255.255.255.0" and my very simple routing rules ipfw ipfw -a list 00100 divert 8668 ip from any to any via rl0 00200 allow ip from any to any 00300 divert 1723 ip from any to any via rl0 65535 deny ip from any to any thanks Roger Roger Helman 801.492.7832 1438 N 20 E American Fork UT 84003 rhelman@xmission.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message