From owner-freebsd-questions Fri Jun 1 14:43: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from jezebel.demon.co.uk (jezebel.demon.co.uk [158.152.38.143]) by hub.freebsd.org (Postfix) with ESMTP id 8D63737B423 for ; Fri, 1 Jun 2001 14:43:01 -0700 (PDT) (envelope-from rdls@jezebel.demon.co.uk) Received: (from rdls@localhost) by jezebel.demon.co.uk (8.11.1/8.11.1) id f51Ldlj00667; Fri, 1 Jun 2001 22:39:47 +0100 (BST) (envelope-from rdls) Date: Fri, 1 Jun 2001 22:39:47 +0100 From: Richard Smith To: "Michael J. Turner" Cc: freebsd-questions@freebsd.org Subject: Re: Natd mapping Message-ID: <20010601223946.A524@gaia.home.rdls.net> References: <003001c0e9d3$17414a60$6404a8c0@daimon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <003001c0e9d3$17414a60$6404a8c0@daimon>; from mike@inethouston.net on Thu, May 31, 2001 at 08:10:38AM -0500 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 On Thu, May 31, 2001 at 08:10:38AM -0500, Michael J. Turner wrote: > > 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" > You don't indicate whether NAT is actually functioning at all. So do you have the necessary custom kernel and the firewall enabled in rc.conf? Rich. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message