From owner-freebsd-ipfw Tue Mar 26 8: 8: 5 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mail.bigstudios.com (H185.C214.tor.velocet.net [216.138.214.185]) by hub.freebsd.org (Postfix) with ESMTP id 222E437B420 for ; Tue, 26 Mar 2002 08:07:57 -0800 (PST) Received: from bigstudios.com([192.168.75.105]) (1843 bytes) by mail.bigstudios.com via sendmail with P:esmtp/R:bind_hosts/T:smtp (sender: ) id for ; Tue, 26 Mar 2002 11:07:55 -0500 (EST) (Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Jul-5) Message-ID: <3CA09D37.F396AB26@bigstudios.com> Date: Tue, 26 Mar 2002 11:09:27 -0500 From: Sam Suh X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-ipfw@freebsd.org Subject: Re: FreeBSD 4.2 ipfw natd -- Port Forwarding? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Hi, Roger. Take a look at the /etc/services file. The port 1723 is being used by ppp. nat has its own port 8668. Roger Helman wrote: > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message