From owner-freebsd-questions Tue Dec 31 0: 8:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C89B37B401 for ; Tue, 31 Dec 2002 00:08:19 -0800 (PST) Received: from rly-ip04.mx.aol.com (rly-ip04.mx.aol.com [64.12.138.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 445A343EB2 for ; Tue, 31 Dec 2002 00:08:18 -0800 (PST) (envelope-from aburke@nullplusone.com) Received: from logs-mtc-th.proxy.aol.com (logs-mtc-th.proxy.aol.com [64.12.102.5]) by rly-ip04.mx.aol.com (v89.10) with ESMTP id RELAYIN4-1231030520; Tue, 31 Dec 2002 03:05:20 -0500 Received: from thebe (ACAE2D6E.ipt.aol.com [172.174.45.110]) by logs-mtc-th.proxy.aol.com (8.10.0/8.10.0) with ESMTP id gBV870B403602; Tue, 31 Dec 2002 03:07:00 -0500 (EST) From: "Aaron Burke" To: "FreeBSD-Questions" , "Ralph Freibeuter" Subject: RE: mac os x 10.2.3 jaguar and port forwarding? Date: Tue, 31 Dec 2002 00:06:50 -0800 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.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <845D531A-1C56-11D7-9EF4-0005028311B7@gmx.de> X-Apparently-From: ImOptimum@aol.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----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