From owner-freebsd-newbies Tue Aug 14 23:18:41 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from hotmail.com (f134.law11.hotmail.com [64.4.17.134]) by hub.freebsd.org (Postfix) with ESMTP id 15D0137B405 for ; Tue, 14 Aug 2001 23:18:38 -0700 (PDT) (envelope-from ronnetron@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 14 Aug 2001 23:18:37 -0700 Received: from 64.170.63.74 by lw11fd.law11.hotmail.msn.com with HTTP; Wed, 15 Aug 2001 06:18:36 GMT X-Originating-IP: [64.170.63.74] From: "Ron Smith" To: peter@ideal.net.au, phinger@best.com Cc: freebsd-newbies@FreeBSD.ORG Subject: Re: port forwarding with natd Date: Tue, 14 Aug 2001 23:18:36 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 15 Aug 2001 06:18:37.0498 (UTC) FILETIME=[1EA859A0:01C12552] Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am, by no means, a 'natd.conf' expert, but I had a similar configuration on a router where I was redirecting ports from 2 internal machines, through ipfw to the outside. The lines I had in my 'natd.conf' file were: ------------------------snip------------ iterface pn0 # outside interface port 8668 # divert Network Address Translation redirect_port tcp 192.168.0.121:25 25 redirect_port tcp 192.168.0.84:80 80 ------------------------snip------------ The last two lines may be of interest. This may work for you if you substitute your IP addr(s) and reverse the order around. Ron Smith >From: Peter MacGee >To: Adam LaBarge >CC: freebsd-newbies@FreeBSD.ORG >Subject: Re: port forwarding with natd >Date: Wed, 15 Aug 2001 15:39:59 +1000 > >Hi Adam, > >At 10:14 PM 14/08/2001 -0700, you wrote: >>Hi, I am trying to forward port 25 from a FreeBSD router, running natd >>with an open firewall to an internal machine running FreeBSD set up as a >>sendmail server. So, I have tried two ways to forward this port, but can >>not get it to work. Way 1) in /etc/natd.conf I added the line >>permanent_link tcp internalmachineaddress:25 0:0 25 >>way 2) was from the command line, and that just hung, this is what I could >>figure best. >>natd -redirect_port internalmachne:25 myIP:25 25 >>That would hang, not even a sintax error. I know that natd runs great, i >>have been using this router for about 8 month now, works great. The only >>open connection port to the router is 22. all other tcp is passed to the >>machines inside. I know that sendmail is working ok on the internal >>sendmail server, i telnet to port 25 and it give me the sendmail info. I >>just used the defualt sendmail set up. I also know that the domain >>information is set up coorectly. So, i figure it is just the forwarding >>of the port that is messing things up. If anyones has done this, or knows >>any way to get it working. please help, it is driving me mad. thanks _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message