Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2000 13:33:10 -0800
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        "Scott C. Dodson" <sdodson@beoclu-01.phy.gasou.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: natd & port_redirect
Message-ID:  <20001202133310.T99903@149.211.6.64.reflexcom.com>
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
References:  <20001202022620.B513@beoclu-01.phy.gasou.edu> <20001202004858.O99903@149.211.6.64.reflexcom.com> <20001202154407.A4176@beoclu-01.phy.gasou.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <if> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001202133310.T99903>