Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2002 11:09:27 -0500
From:      Sam Suh <sam@bigstudios.com>
To:        freebsd-ipfw@freebsd.org
Subject:   Re: FreeBSD 4.2 ipfw natd -- Port Forwarding?
Message-ID:  <3CA09D37.F396AB26@bigstudios.com>
References:  <GIEMIMPPILEBAGMKLLHNCEBPDLAA.rhelman@xmission.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CA09D37.F396AB26>