From owner-freebsd-questions Tue Aug 13 7:19: 0 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 9A06B37B401 for ; Tue, 13 Aug 2002 07:18:55 -0700 (PDT) Received: from services.webwarrior.net (overlord-host99.dsl.visi.com [209.98.86.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 381D243E65 for ; Tue, 13 Aug 2002 07:18:55 -0700 (PDT) (envelope-from friar_josh@webwarrior.net) Received: from heater.vladsempire.net (12-218-27-215.client.mchsi.com [12.218.27.215]) by services.webwarrior.net (Postfix) with ESMTP id 5738F24FB2; Tue, 13 Aug 2002 09:18:53 +0000 (GMT) Subject: Re: ipfw nat From: Josh Paetzel Reply-To: friar_josh@webwarrior.net To: Leigh V Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <011501c242cc$139e53a0$2d01a8c0@michael> References: <011501c242cc$139e53a0$2d01a8c0@michael> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 13 Aug 2002 09:17:20 +0000 Message-Id: <1029230241.250.10.camel@heater.vladsempire.net> Mime-Version: 1.0 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 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