Date: Tue, 14 Aug 2001 23:18:36 -0700 From: "Ron Smith" <ronnetron@hotmail.com> To: peter@ideal.net.au, phinger@best.com Cc: freebsd-newbies@FreeBSD.ORG Subject: Re: port forwarding with natd Message-ID: <F1346nx8dyDd3OJXsNQ00007d9b@hotmail.com>
next in thread | raw e-mail | index | archive | help
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 <peter@ideal.net.au> >To: Adam LaBarge <phinger@best.com> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F1346nx8dyDd3OJXsNQ00007d9b>