Skip to content

Instantly share code, notes, and snippets.

@alcir
Created March 26, 2014 14:44
Show Gist options
  • Save alcir/9784961 to your computer and use it in GitHub Desktop.
Save alcir/9784961 to your computer and use it in GitHub Desktop.
ntp.conf
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Ascolta solo qui e non su tutte le interfacce
interface listen 192.168.0.1
interface listen 192.168.1.1
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# --- TIMESERVERS -----
server time.ien.it
server ntp1.ien.it iburst
server ntp2.ien.it iburst
server ntps1-1.cs.tu-berlin.de
server ts1.univie.ac.at
server asynchronos.iiss.at
server ntp.univ-lyon1.fr
# Undisciplined Local Clock - Se non va internet
server 127.127.1.0
fudge 127.127.1.0 stratum 8
# Prohibit general access to this service.
restrict default ignore
restrict ntp.ien.it kod notrap nomodify nopeer noquery
restrict ntp1.ien.it kod notrap nomodify nopeer noquery
restrict ntp2.ien.it kod notrap nomodify nopeer noquery
restrict ntps1-1.cs.tu-berlin.de kod notrap nomodify nopeer noquery
restrict ts1.univie.ac.at kod notrap nomodify nopeer noquery
restrict asynchronos.iiss.at kod notrap nomodify nopeer noquery
restrict ntp.univ-lyon1.fr kod notrap nomodify nopeer noquery
# -- CLIENT NETWORK -------
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# Permit all access over the loopback interface.
restrict 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment