Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2002 07:57:27 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        devin-freebsdquestions@rintrah.org
Cc:        Marco Radzinschi <marco@radzinschi.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: NTP behind NAT box?
Message-ID:  <20020129075727.A2307@grimoire.chen.org.nz>
In-Reply-To: <20020128072745.A76592@tharmas.rintrah.org>; from devin-freebsdquestions@rintrah.org on Mon, Jan 28, 2002 at 07:27:45AM -0500
References:  <20020122085250.N7705-100000@mail.radzinschi.com> <20020128072745.A76592@tharmas.rintrah.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 28, 2002 at 07:27:45AM -0500, devin-freebsdquestions@rintrah.org wrote:
> On Tue, Jan 22, 2002 at 08:56:10AM -0500, Marco Radzinschi wrote:
> > Hello:
> > 
> > 	I am running ntpd on a machine behind a router which is taking
> > care of NAT.  I have the router forwarding UDP packets on port 123 to said
> > machine, and NTP is working.
> > 
> > Now, do I really need to be forwarding UDP/123 to that machine, or will
> > ntpd work without it?
> 
> ntpd will make outbound connections to sync the box it is running on with
> whatever ntp server you connect to in the outside world.
> 
> in this case you don't need to be forwarding port 123 to it (in fact, that might
> be a bad idea...)

Hmm. I've just played around with this recently, and it looks like one
*does* need to forward port 123. A quick check with "ntpq -p" shows that
if you don't forward the port, all of the servers you try to sync with
are marked as "rejected".

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
                                                 - Edmond Blackadder III

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?20020129075727.A2307>