From owner-freebsd-questions Tue Aug 13 6:19:42 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 0D92B37B400 for ; Tue, 13 Aug 2002 06:19:40 -0700 (PDT) Received: from mta04ps.bigpond.com (mta04ps.bigpond.com [144.135.25.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id D896543E4A for ; Tue, 13 Aug 2002 06:19:38 -0700 (PDT) (envelope-from leighv@roq.com) Received: from michael ([144.135.25.72]) by mta04ps.bigpond.com (Netscape Messaging Server 4.15 mta04ps May 23 2002 23:53:28) with SMTP id H0SACO00.3UD for ; Tue, 13 Aug 2002 23:19:36 +1000 Received: from CPE-203-45-56-16.vic.bigpond.net.au ([203.45.56.16]) by PSMAM02.mailsvc.email.bigpond.com(MailRouter V3.0n 80/5376572); 13 Aug 2002 23:19:36 Message-ID: <011501c242cc$139e53a0$2d01a8c0@michael> From: "Leigh V" To: Subject: ipfw nat Date: Tue, 13 Aug 2002 23:19:35 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message