Bind Address

  • Follow


Hi.

I use debian (sarge) ntpd. I installed it and it work ok, but I have a small problem with configuration.

By default ntpd listen on all aviable interfaces.
Netstat show:
# netstat -at |grep time
tcp        0      0 *:time                  *:*                     LISTEN     

How I can change it ?
I have a few ethX card and I want to set up ntpd only to eth0 ip address and lo interface.

-- 
I greet
Wieslaw

0
Reply Wiesiek 9/13/2004 10:00:47 AM

On 2004-09-13, Wiesiek <roxik@op.pl> wrote:
>
>I use debian (sarge) ntpd.

This version?

||/ Name           Version        Description
+++-==============-==============-============================================
ii  ntp            4.2.0a-11      Network Time Protocol: network utilities

> By default ntpd listen on all aviable interfaces.

This can't be changed at this time.

> I have a few ethX card and I want to set up ntpd only to eth0 ip
> address and lo interface.

Use restrict lines in your /etc/ntp.conf to control access.

-- 
Steve Kostecke <kostecke@ntp.org>
0
Reply Steve 9/13/2004 2:04:20 PM


Wiesiek <roxik@op.pl> wrote in message news:<mailman.21.1095082389.26599.questions@ntp.org>...
> Hi.
> 
> I use debian (sarge) ntpd. I installed it and it work ok, but I have a small problem with configuration.
> 
> By default ntpd listen on all aviable interfaces.
> Netstat show:
> # netstat -at |grep time
> tcp        0      0 *:time                  *:*                     LISTEN     
> 
> How I can change it ?
> I have a few ethX card and I want to set up ntpd only to eth0 ip address and lo interface.

Well you could start by actually looking at the right port. You shouldn't
be looking at time (port 37) you should be looking at ntp (port 123).
ntpd does not use TCP, it only uses UDP.

Right now there is no way to limit the interfaces being used. That's
a feature on our list of things to be done.

Danny
0
Reply mayer 9/14/2004 4:41:46 AM

> This version?
[...]
> ii  ntp            4.2.0a-11      Network Time Protocol: network utilities
Yes. This version.

> > By default ntpd listen on all aviable interfaces.
> This can't be changed at this time.
Is a some chance to add this feature in next version ?

> Use restrict lines in your /etc/ntp.conf to control access.
Yes of course. I restrict right now be iptables rules.
But, this deamon is only one listen on all interfaces.

Thanks for answer.

-- 
I greet
Wieslaw

0
Reply Wiesiek 9/14/2004 6:58:32 AM

> Is a some chance to add this feature in next version ?

If it's more important for you than most other features of ntpd,
you can try OpenNTPd.  It's a minimalist ntp server, still very young and
with much less sophisticated time-tracking algorithms.
It only binds to the interfaces you tell it to bind to.


        Stefan

0
Reply Stefan 9/14/2004 1:39:03 PM

Stefan Monnier <monnier@iro.umontreal.ca> wrote in message news:<jwvpt4pq8e4.fsf-monnier+comp.protocols.time.ntp@gnu.org>...
> > Is a some chance to add this feature in next version ?
> 
> If it's more important for you than most other features of ntpd,
> you can try OpenNTPd.  It's a minimalist ntp server, still very young and
> with much less sophisticated time-tracking algorithms.
> It only binds to the interfaces you tell it to bind to.
> 

Just a warning here. It is not really an ntp server. You might call
it an sntp server at best, but it has none of the built in careful
checking that the ntp server does. All it does is serve up it's own
time to other systems. 

Danny

> 
>         Stefan
0
Reply mayer 9/15/2004 2:36:46 AM

5 Replies
315 Views

(page loaded in 0.055 seconds)

Similiar Articles:













7/24/2012 3:07:48 PM


Reply: