Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2007 18:22:33 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: ntpd on a NAT gateway seems to do nothing
Message-ID:  <20070725082233.GJ1241@turion.vk2pj.dyndns.org>
In-Reply-To: <20070725003025.GA63332@duncan.reilly.home>
References:  <200707241451.l6OEpq2O014634@lurza.secnetix.de> <E1IDLrs-0001U0-Di@dilbert.ticketswitch.com> <20070724192425.GV1162@turion.vk2pj.dyndns.org> <20070725003025.GA63332@duncan.reilly.home>

next in thread | previous in thread | raw e-mail | index | archive | help

--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2007-Jul-25 10:30:25 +1000, Andrew Reilly <andrew-freebsd@areilly.bpc-us=
ers.org> wrote:
>On Wed, Jul 25, 2007 at 05:24:25AM +1000, Peter Jeremy wrote:
>> On 2007-Jul-24 16:00:08 +0100, Pete French <petefrench@ticketswitch.com>=
 wrote:
>> Yes it does.  The major difference is that ntpd will use a source
>> port of 123 whilst ntpdate will use a dynamic source port.
>
>Is that behaviour that can be defeated?

I don't believe so.

>  If it uses a fixed
>source port, then multiple ntpd clients behind a nat firewall
>will be competing for the same ip quadtuple at the NAT box.

You might be better off running ntpd on the firewall and having
the inside hosts sync to it.

>  (Or
>does ipnat or pf have the ability to fake different source
>addresses?)

All NAT tools I've seen have the ability to either use multiple
external addresses or re-write the source port to avoid clashes.
Note that, by default, ntpd doesn't care about the source port
of incoming packets (this can be controlled with the 'ntpport'
option to 'restrict').

>(I've had what I think is this problem with a VPN setup, where
>only one client behind the NAT firewall could run the VPN client
>at a time, because the VPN protocol used a fixed port and UDP.
>Maybe my NAT rules need more sophistication?  I don't pay all
>that much attention to it...)

I suspect that either your NAT rules need to allow source port
re-writing or the VPN protocol is fussier about having the source
port.

--=20
Peter Jeremy

--XsQoSWH+UP9D9v3l
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGpwhI/opHv/APuIcRAvPfAJ91dq+lSQoYE1Ka9X6e43gVThRHfQCePtrk
m/pdECGCpvv3RLgxgmmJn/k=
=6H2n
-----END PGP SIGNATURE-----

--XsQoSWH+UP9D9v3l--



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