2 # /etc/ntp/ntp.conf: ntp configuration
5 ###############################################################################
8 logfile /var/log/ntp.log
9 pidfile /var/run/ntp/ntpd.pid
10 driftfile /var/lib/ntp/ntp.drift
11 #statsdir /var/lib/ntp/stats/
13 ###############################################################################
14 # Authentication stuff
16 # keys /etc/ntp/ntp.keys # path for keys file
17 # trustedkey 1 2 3 4 5 6 14 15 # define trusted keys
18 # requestkey 15 # key (7) for accessing server variables
19 # controlkey 15 # key (6) for accessing server variables
21 ###############################################################################
22 # Undisciplined Local Clock. This is a fake driver intended for backup
23 # and when no outside source of synchronized time is available.
25 server 127.127.1.0 # local clock (LCL)
26 fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
29 ## Generic DCF77 clock on serial port (Conrad DCF77)
30 ## Address: 127.127.8.u
31 ## Serial Port: /dev/refclock-u
32 ## Sample project: http://www.obbl-net.de/dcf77.html by Martin Opel
34 ## u = Number of your serial port
36 ## (create soft link /dev/refclock-0 to the particular ttyS?)
38 # server 127.127.8.0 mode 5 prefer
41 ###############################################################################
42 # Specify the servers you are interested in
44 server ntps1-0.cs.tu-berlin.de prefer
45 server ntps1-1.cs.tu-berlin.de
49 ###############################################################################
50 # Then we restrict the type of access you allow these servers.
51 # Were not allowing them to modify or query our Linux NTP server
53 restrict default ignore notrust nomodify notrap
55 #restrict <YOUR_IP_HERE>
56 restrict ntps1-0.cs.tu-berlin.de mask 255.255.255.255 nomodify notrap noquery
57 restrict ntps1-1.cs.tu-berlin.de mask 255.255.255.255 nomodify notrap noquery
58 restrict ntp1.ptb.de mask 255.255.255.255 nomodify notrap noquery
59 restrict ntp1.fau.de mask 255.255.255.255 nomodify notrap noquery
61 # Now list the NTP clients on our home network which should be able to query
62 # our server for the time (notice that the noquery has been removed)
64 #restrict 192.168.0.0 mask 255.255.255.0