[CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-11 Thread MontyRee
Hello, all. I would like to use ntpd for time sync not rdate or ntpdate. but after installation the ntpd, I found that listened at all interfaces like below. udp0 0 192.168.111.2:123 0.0.0.0:* 11528/ntpd udp0 0 xxx.xxx

Re: [CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-11 Thread Filipe Brandenburger
Hi, 2009/6/11 MontyRee : > Is there any way or option that only listen 127.0.0.1? I don't think so. NTP is an UDP protocol, and its packets have both source and destination port 123, so the machine that is using NTP to set its own clock (NTP "client") needs to listen on port 123 UDP to receive th

Re: [CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-11 Thread MontyRee
Thanks for your kind answer. > Look into the "restrict" commands in ntp.conf to implement security > policies on NTP. You can find information on how it works on "man > ntp_acc". The default restrict config likes below. restrict default nomodify notrap noquery If I setup ntpd servic

Re: [CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-11 Thread Filipe Brandenburger
Hi, 2009/6/12 MontyRee : > If I setup ntpd service as a client not server, above options are > sufficient? I don't know, I never bothered trying to understand how that works... I suggest you read "man ntp_acc" if you really want to implement that. After you do, please share with us how that works

Re: [CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-12 Thread luc...@lastdot.org
2009/6/12 MontyRee : > Hello, all. > > I would like to use ntpd for time sync not rdate or ntpdate. > > but after installation the ntpd, I found that listened at all interfaces > like below. > > udp0 0 192.168.111.2:123 > 0.0.0.0:* 11528/ntpd > udp

Re: [CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-12 Thread John Doe
From: MontyRee > I would like to use ntpd for time sync not rdate or ntpdate. > but after installation the ntpd, I found that listened at all interfaces like > below. > udp0 0 192.168.111.2:123 0.0.0.0:* > 11528/ntpd > udp0 0 xxx

Re: [CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-12 Thread Scott Silva
on 6-12-2009 12:17 AM luc...@lastdot.org spake the following: > 2009/6/12 MontyRee : >> Hello, all. >> >> I would like to use ntpd for time sync not rdate or ntpdate. >> >> but after installation the ntpd, I found that listened at all interfaces >> like below. >> >> udp0 0 192.168.111.