From owner-freebsd-questions Sat Dec 2 13:33:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id E0EDD37B400 for ; Sat, 2 Dec 2000 13:33:23 -0800 (PST) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sat, 2 Dec 2000 13:31:46 -0800 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id eB2LXFD33218; Sat, 2 Dec 2000 13:33:15 -0800 (PST) (envelope-from cjc) Date: Sat, 2 Dec 2000 13:33:10 -0800 From: "Crist J . Clark" To: "Scott C. Dodson" Cc: freebsd-questions@freebsd.org Subject: Re: natd & port_redirect Message-ID: <20001202133310.T99903@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <20001202022620.B513@beoclu-01.phy.gasou.edu> <20001202004858.O99903@149.211.6.64.reflexcom.com> <20001202154407.A4176@beoclu-01.phy.gasou.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20001202154407.A4176@beoclu-01.phy.gasou.edu>; from sdodson@beoclu-01.phy.gasou.edu on Sat, Dec 02, 2000 at 03:44:07PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Dec 02, 2000 at 03:44:07PM -0500, Scott C. Dodson wrote: > On Sat, Dec 02, 2000 at 12:48:58AM -0800, Crist J . Clark wrote: > > On Sat, Dec 02, 2000 at 02:26:20AM -0500, Scott C. Dodson wrote: > > > > > > redirect_port tcp 123.456.789.012:80 80 > > > > > > allow ip from any to any via lo0 > > > allow ip from any to any > > > > > > > I really don't see a question here, but I assume this is not working? > > Does NAT work properly otherwise? Does your network seem to have good > > connectivity otherwise? Did you restart natd(8) after the > > configuration change? > > -- > > Yes, sorry, my redirect is not working. Everything is working otherwise. > I had this machine setup like this in the past and it worked fine. For > the time being I have worked around the problem using the program > socket and inetd. This works, but I need to fix this because other > services such as ssh need to be redirected as well. OK. Just to be sure, redirect_port tcp 123.456.789.012:80 80 ^^^^^^^^^^^^^^^ That is the internal address you want to redirect to. Could you post your /etc/natd.conf to the list. Fresh eyes catch silly typos and the like a surprising amount of the time. Can you run 'tcpdump -ni port 80' on both interfaces simulataneously while trying to reach the WWW port from the outside? See where packets are and aren't getting. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message