diff options
Diffstat (limited to 'abs/core/ntp/ntp.conf')
-rwxr-xr-x | abs/core/ntp/ntp.conf | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/abs/core/ntp/ntp.conf b/abs/core/ntp/ntp.conf index 93fc919..7f888e4 100755 --- a/abs/core/ntp/ntp.conf +++ b/abs/core/ntp/ntp.conf @@ -19,24 +19,24 @@ server pool.ntp.org # netselect -s 3 pool.ntp.org ## -# you should not need to modify the following paths -driftfile /var/lib/ntp/ntp.drift - #server ntplocal.example.com prefer #server timeserver.example.org # Warning: Using default NTP settings will leave your NTP # server accessible to all hosts on the Internet. -# If you want to deny all machines (including your own) -# from accessing the NTP server, uncomment: +# A default deny all (including localhost) policy +# To use this define restrictions for all servers and clients #restrict default ignore +#restrict -6 default ignore - -# To deny other machines from changing the -# configuration but allow localhost: +# A more open policy, allow access but deny changing the configuration restrict default nomodify nopeer +#restrict -6 default nomodify nopeer + +# Allow localhost restrict 127.0.0.1 +#restrict -6 ::1 # To allow machines within your network to synchronize @@ -45,3 +45,8 @@ restrict 127.0.0.1 # to synchronize against, uncomment this line. # #restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap + + +# you should not need to modify the following paths +driftfile /var/lib/ntp/ntp.drift + |