Date: Thu, 31 May 2001 08:10:38 -0500 From: "Michael J. Turner" <mike@inethouston.net> To: <freebsd-questions@FreeBSD.ORG> Subject: Natd mapping Message-ID: <003001c0e9d3$17414a60$6404a8c0@daimon>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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="YES" natd_interface="ed1" natd_flags="-f /etc/natd.conf" [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 5.50.4611.1300" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Hi I have been trying to figure this out forever. Some people have got it</FONT></DIV> <DIV><FONT face=Arial size=2>working but a friend and I cant get it at all. I have been trying to figure out</FONT></DIV> <DIV><FONT face=Arial size=2>how to map certain ports from one nic to the other via. if i want to VNC</FONT></DIV> <DIV><FONT face=Arial size=2>to my windows machine it has to go through my server then to my windows</FONT></DIV> <DIV><FONT face=Arial size=2>machine. A easy way to solve that would be to have static ip. unfortunitly</FONT></DIV> <DIV><FONT face=Arial size=2>I dont have one. Im trying to figure out how to map the ports from my internet</FONT></DIV> <DIV><FONT face=Arial size=2>nic to my lan on my bsd machine. So i could do things like host a game or</FONT></DIV> <DIV><FONT face=Arial size=2>VNC to my windows machine. I got this off some examples...</FONT></DIV> <DIV><FONT face=Arial size=2>but i could put " natd sucks" in the natd.conf and it would'nt make a diffrence.</FONT></DIV> <DIV><FONT face=Arial size=2>if anyone could help me out i would greatly apperciate it. Thank you</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>natd.conf</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>redirect_port tcp 192.168.4.2:5800 5800<BR>redirect_port udp 192.168.4.2:5800 5800<BR>redirect_address 192.168.4.1 24.240.235.35<BR>log no<BR>deny_incoming no<BR>verbose no<BR>unregistered_only no<BR>interface ed1<BR>use_sockets yes<BR>same_ports yes<BR>dynamic yes<BR></FONT><FONT face=Arial size=2></FONT></DIV> <DIV><FONT face=Arial size=2>redirect_port tcp 192.168.4.2:5802 5802<BR>redircet_port udp 192.168.4.2:5802 5802<BR>redirect_port tcp 192.168.4.2:5902 5902<BR>redirect_port udp 192.168.4.2:5902 5902<BR></FONT></DIV> <DIV><FONT face=Arial size=2>my rc.conf</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>natd_enable="YES"<BR>natd_interface="ed1"<BR>natd_flags="-f /etc/natd.conf"<BR></DIV></FONT></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003001c0e9d3$17414a60$6404a8c0>
