From owner-freebsd-questions Fri Mar 14 16:13:10 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 E953737B404 for ; Fri, 14 Mar 2003 16:13:08 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB33E43F3F for ; Fri, 14 Mar 2003 16:13:07 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003031500130700100h7i0te>; Sat, 15 Mar 2003 00:13:07 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.8/8.12.7) with ESMTP id h2F0D6HI038192 for ; Fri, 14 Mar 2003 19:13:06 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.8/8.12.6/Submit) id h2F0D6MI038189; Fri, 14 Mar 2003 19:13:06 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Subject: Re: Port Forwarding FreeBSD 4.7_Release References: <95C9542C-5676-11D7-8E90-0030654886A6@overdose.com> <3E726B33.2050807@potentialtech.com> From: Lowell Gilbert Date: 14 Mar 2003 19:13:06 -0500 In-Reply-To: <3E726B33.2050807@potentialtech.com> Message-ID: <44isulpjvx.fsf@be-well.ilk.org> Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Bill Moran writes: > 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. The reason they don't "route out" is that they are addressed to the router, so it doesn't bother to forward them outside. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message