From owner-freebsd-questions  Mon Aug 20 14:26:47 2001
Delivered-To: freebsd-questions@freebsd.org
Received: from cody.jharris.com (cody.jharris.com [205.238.128.83])
	by hub.freebsd.org (Postfix) with ESMTP id 6668037B412
	for <freebsd-questions@FreeBSD.ORG>; Mon, 20 Aug 2001 14:26:41 -0700 (PDT)
	(envelope-from nick@rogness.net)
Received: from localhost (nick@localhost)
	by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f7KLQaG91095;
	Mon, 20 Aug 2001 16:26:36 -0500 (CDT)
	(envelope-from nick@rogness.net)
Date: Mon, 20 Aug 2001 16:26:36 -0500 (CDT)
From: Nick Rogness <nick@rogness.net>
X-Sender: nick@cody.jharris.com
To: Chris Hastie <lists@oak-wood.co.uk>
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: Port redirection with natd
In-Reply-To: <uABoE0ArGVg7EwB6@chris.oak-wood.co.uk>
Message-ID: <Pine.BSF.4.21.0108201603000.88303-100000@cody.jharris.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-questions.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
X-Loop: FreeBSD.ORG

On Mon, 20 Aug 2001, Chris Hastie wrote:

> Time to own up to my totally clueless credentials. I've been using
> FreeBSD, my first venture away from Mr Gates, since, oh, Saturday
> afternoon, and I haven't figured out this logging thing yet. Lots of
> things tell me how to log stuff, but I can't figure out where to find
> the logs they generate :(
> 
> Instructions on 1) how to tell natd to log activity and 2) where to
> find the logs would be very much appreciated

	1) include the "log" keyword in /etc/natd.conf

	2) /var/log/alias.log


> >> Additionally, I can get no response from any of those ports by
> >> telnetting to them with another machine.
> >>
> >

> > The redirect_port stuff will only work from the outside with your >
> setup.  Try going to an outside machine and telnetting.

> 
> Best I can manage at the moment is to log into a shell account on a 
> remote machine and then try and telnet back to myself from there. To 
> port 23 this is fine and I can then log into my FreeBSD no probs. But to 
> the supposedly redirected ports I get no response.

	What does `ipfw -a l` report?  Is celandine reachable from your
	natd machine and is the port listening on that machine?


Nick Rogness <nick@rogness.net>
 - Keep on Routing in a Free World...
  "FreeBSD: The Power to Serve!"



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message