From owner-freebsd-questions Thu May 31 6:11: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from leviathan.inethouston.net (216-118-21-146.pdq.net [216.118.21.146]) by hub.freebsd.org (Postfix) with ESMTP id A6F8337B422 for ; Thu, 31 May 2001 06:10:54 -0700 (PDT) (envelope-from mike@inethouston.net) Received: from something (24-240-236-3.hsacorp.net [24.240.236.3]) by leviathan.inethouston.net (Postfix) with ESMTP id EA82C10F40F for ; Thu, 31 May 2001 08:10:51 -0500 (CDT) Message-ID: <003001c0e9d3$17414a60$6404a8c0@daimon> From: "Michael J. Turner" To: Subject: Natd mapping Date: Thu, 31 May 2001 08:10:38 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002D_01C0E9A9.2DA1D7E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 This is a multi-part message in MIME format. ------=_NextPart_000_002D_01C0E9A9.2DA1D7E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I have been trying to figure this out forever. Some people have got = it working but a friend and I cant get it at all. I have been trying to = figure out how to map certain ports from one nic to the other via. if i want to VNC to my windows machine it has to go through my server then to my windows machine. A easy way to solve that would be to have static ip. = unfortunitly I dont have one. Im trying to figure out how to map the ports from my = internet nic to my lan on my bsd machine. So i could do things like host a game = or VNC to my windows machine. I got this off some examples... but i could put " natd sucks" in the natd.conf and it would'nt make a = diffrence. if anyone could help me out i would greatly apperciate it. Thank you natd.conf redirect_port tcp 192.168.4.2:5800 5800 redirect_port udp 192.168.4.2:5800 5800 redirect_address 192.168.4.1 24.240.235.35 log no deny_incoming no verbose no unregistered_only no interface ed1 use_sockets yes same_ports yes dynamic yes redirect_port tcp 192.168.4.2:5802 5802 redircet_port udp 192.168.4.2:5802 5802 redirect_port tcp 192.168.4.2:5902 5902 redirect_port udp 192.168.4.2:5902 5902 my rc.conf natd_enable=3D"YES" natd_interface=3D"ed1" natd_flags=3D"-f /etc/natd.conf" ------=_NextPart_000_002D_01C0E9A9.2DA1D7E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Hi I have been trying to figure this = out forever.=20 Some people have got it
working but a friend and I cant get it = at all. I=20 have been trying to figure out
how to map certain ports from one nic = to the other=20 via. if i want to VNC
to my windows machine it has to go = through my=20 server then to my windows
machine. A easy way to solve that would = be to have=20 static ip. unfortunitly
I dont have one. Im trying to figure = out how to map=20 the ports from my internet
nic to my lan on my bsd machine. So i = could do=20 things like host a game or
VNC to my windows machine. I got this = off some=20 examples...
but i could put " natd sucks" in the = natd.conf and=20 it would'nt make a diffrence.
if anyone could help me out i would = greatly=20 apperciate it. Thank you
 
natd.conf
 
redirect_port tcp 192.168.4.2:5800=20 5800
redirect_port udp 192.168.4.2:5800 5800
redirect_address = 192.168.4.1=20 24.240.235.35
log    no
deny_incoming =20 no
verbose          =      =20 no
unregistered_only no
interface ed1
use_sockets = yes
same_ports=20 yes
dynamic yes
redirect_port tcp   =20 192.168.4.2:5802  5802
redircet_port udp   =20 192.168.4.2:5802  5802
redirect_port tcp   =20 192.168.4.2:5902  5902
redirect_port udp   =20 192.168.4.2:5902  5902
my rc.conf
 
natd_enable=3D"YES"
natd_interface=3D"ed1"
natd_flags=3D"-= f=20 /etc/natd.conf"
------=_NextPart_000_002D_01C0E9A9.2DA1D7E0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message