Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2002 09:03:37 -0700
From:      "Roger Helman" <rhelman@xmission.com>
To:        <freebsd-ipfw@freebsd.org>
Subject:   Re:  FreeBSD 4.2 ipfw natd -- Port Forwarding?
Message-ID:  <GIEMIMPPILEBAGMKLLHNCEBPDLAA.rhelman@xmission.com>

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




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