Cong wrote:
> Hello
> 
> Everything is working.  I just have a few questions about my ntp.conf
> from lines 6-10
> 
> restrict 127.0.0.1
> server 0.us.pool.ntp.org
> server 1.us.pool.ntp.org
> server 2.us.pool.ntp.org
> 
> 6. restrict default kod nomodify notrap noquery
> 7. restrict 0.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
> 8. restrict 1.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
> 9  restrict 2.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
> 10. restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
> 
> server        127.127.1.0     # local clock
> fudge 127.127.1.0 stratum 10
> driftfile /var/lib/ntp/drift
> logfile /var/log/ntp.log
> broadcastdelay        0.008
> keys          /etc/ntp/keys
> 
> Since I already have line 6 do I really need to add lines 7-10 because
> of the word  default in line 6?
> 
> shouldn't I have this line for my server instead like below
> restrict a.b.c.d (my server) mask 255.255.255.255 nomodify notrap no
> query
> 
> thank
> 

You don't need lines 6-10.  The restrict ... default statement applies 
to all server instances for which you do not explicitly change it.  I 
don't think you need the KOD option either.  If your server is visible 
to the world at large and you have people abusing your server you might 
need it, otherwise not.

_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to