Date: 13 Aug 2002 09:17:20 +0000 From: Josh Paetzel <friar_josh@webwarrior.net> To: Leigh V <leighv@roq.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ipfw nat Message-ID: <1029230241.250.10.camel@heater.vladsempire.net> In-Reply-To: <011501c242cc$139e53a0$2d01a8c0@michael> References: <011501c242cc$139e53a0$2d01a8c0@michael>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2002-08-13 at 13:19, Leigh V wrote: > Hi Guys, > > Just after a hand on how to set up portforwading to internal LAN clients > using NATD. I have done some research into it however i can not seem to get > it working. > > Correct me if I am wrong in my syntax here guys but here is my situation: > I am running a BSD internet gateway using NATD to allow my internal LAN > Clients access the internet. I have a client on an Internal LAN with an IP > addy of 192.168.x.x and am running a telnet server on this Internal machine. > Therefore I need to set up port forwarding to this machine on port 23 right? > Sounds easy huh: > A visit to the freebsd.org website reveals that the following should be the > syntax to use in order to make this happen: > -redirect_port proto targetIP:targetPORT[-targetPORT] > [aliasIP:]aliasPORT[-aliasPORT] > [remoteIP[:remotePORT[-remotePORT]]] > So the way I see it my syntax should be the following from a shell: > natd -redirect_port tcp 192.168.x.x:23 23 > All looks to easy! > The problem is when i execute this command i get the following error > appearing: > natd: aliasing address not given > Does anyone know if i am making any mistake with my syntax? > > Other variants i have tried are: > natd -redirect_port tcp 192.168.1.2: 23 23 > Gives response: > natd: unknown service /tcp > > And: > natd -redirect_port 192.168.1.2: 23 23 > Gives Response: > natd: unknown protocol 192.168.1.2:. Expected tcp or udp > Etc > Any help would be appreciated. > Thanks Guys! natd -interface fxp0 -redirect_port tcp 192.68.xx.xx:23 23 -dynamic Substitute your external interface for fxp0 Josh 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?1029230241.250.10.camel>