From owner-freebsd-questions Fri Mar 14 15:53:15 2003 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 6CD2237B401 for ; Fri, 14 Mar 2003 15:53:13 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F46843FAF for ; Fri, 14 Mar 2003 15:53:12 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.7/8.12.7) with ESMTP id h2ENrATb009120; Fri, 14 Mar 2003 18:53:11 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E726B33.2050807@potentialtech.com> Date: Fri, 14 Mar 2003 18:52:19 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Ryan Cc: dan@slightlystrange.org, freebsd-questions@FreeBSD.ORG Subject: Re: Port Forwarding FreeBSD 4.7_Release References: <95C9542C-5676-11D7-8E90-0030654886A6@overdose.com> In-Reply-To: <95C9542C-5676-11D7-8E90-0030654886A6@overdose.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Matthew Ryan wrote: > The /etc/rc.conf entry: > > natd_flags="-redirect_port tcp 192.168.1.241:xxxx xxxx" > > was fine since: > > natd_interface="ep0" > > specified the interface. > > All in all I just should have posted the whole of my /etc/rc.conf in the > first place. > > Sorry about that. > > The real irony is that it was working all along!! > > I just didn't know because i was trying to access the service on the > external IP address of my router from an internal IP address. > > When I tried to access it via. my other connection (in effect from > outside) everything worked fine. > > I'm sure that there is some reasonable explanation for this to do with > the way that NAT operates but I can't figure it out. Fact is, natd _only_ redirects from the interface is was told to bind to. I'm not exactly sure why the packets don't route out and back in when you try it from inside, but they don't ;( so you always need to test it from the external interface. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message