Date: Tue, 31 Dec 2002 00:06:50 -0800 From: "Aaron Burke" <aburke@nullplusone.com> To: "FreeBSD-Questions" <freebsd-questions@freebsd.org>, "Ralph Freibeuter" <r.freibeuter@gmx.de> Subject: RE: mac os x 10.2.3 jaguar and port forwarding? Message-ID: <NGBBLCIHCLNJAIGIFFHJAEFEDAAA.aburke@nullplusone.com> In-Reply-To: <845D531A-1C56-11D7-9EF4-0005028311B7@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Ralph > Freibeuter > Sent: Monday, December 30, 2002 04:27 PM > To: freebsd-questions@FreeBSD.ORG > Subject: mac os x 10.2.3 jaguar and port forwarding? > > > Ho can I exactly define a rule (and where?) that forwards > incoming requests to port 445 (samba?) to an internal machine > with lan ip 192.168.2.50 ? > > The routing Macs IP is 192.168.2.1 and the external IP is > given by ISP via pppoe. > > Please help me. > > I've already tried: > > sudo natd -redirect_port tcp 192.168.2.50:445 445 I am assuming that there are several ways of doing this. I am blindly assuming that you are doing this on the FreeBSD box. I was using regular ppp to forward all incomming traffic on port 6112 to a specific box inside the 192.168.0.2 range using the following. This was required to play on battle.net with one specific Windows machine on my private network. I added the following three lines to /etc/rc.conf natd_enable="YES" natd_interface="tun0" natd_flags="-f /etc/natd.conf" Then within /etc/natd.conf I have: dynamic yes use_sockets yes same_ports yes unregistered_only redirect_port udp 192.168.0.2:6112 6112 And the result that I obtain looks like this alpha# ps auxw | grep natd root 160 0.0 0.1 436 32 ?? Is 21Dec02 0:19.62 /sbin/natd -f /etc/natd.conf -n tun0 > > But all I get are messages about errors and addresses > that already have been given. > > Please help!!!! Lemme know if this was any help. > > Regards, > Ralph > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NGBBLCIHCLNJAIGIFFHJAEFEDAAA.aburke>