CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dropbear: moved from core collection
[attic/ports/opt-cross.git] / ntp / ntp.conf
CommitLineData
a9bbe5f2
VM
1#
2# /etc/ntp/ntp.conf: ntp configuration
3#
4
5###############################################################################
6# Default paths
7
8logfile /var/log/ntp.log
9pidfile /var/run/ntp/ntpd.pid
10driftfile /var/lib/ntp/ntp.drift
11#statsdir /var/lib/ntp/stats/
12
13###############################################################################
14# Authentication stuff
15#
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
20
21###############################################################################
22# Undisciplined Local Clock. This is a fake driver intended for backup
23# and when no outside source of synchronized time is available.
24
25server 127.127.1.0 # local clock (LCL)
26fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
27
28
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
33##
34## u = Number of your serial port
35##
36## (create soft link /dev/refclock-0 to the particular ttyS?)
37##
38# server 127.127.8.0 mode 5 prefer
39
40
41###############################################################################
42# Specify the servers you are interested in
43
44server ntps1-0.cs.tu-berlin.de prefer
45server ntps1-1.cs.tu-berlin.de
46server ntp1.ptb.de
47server ntp1.fau.de
48
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
52
53restrict default ignore notrust nomodify notrap
54restrict 127.0.0.1
55#restrict <YOUR_IP_HERE>
56restrict ntps1-0.cs.tu-berlin.de mask 255.255.255.255 nomodify notrap noquery
57restrict ntps1-1.cs.tu-berlin.de mask 255.255.255.255 nomodify notrap noquery
58restrict ntp1.ptb.de mask 255.255.255.255 nomodify notrap noquery
59restrict ntp1.fau.de mask 255.255.255.255 nomodify notrap noquery
60
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)
63
64#restrict 192.168.0.0 mask 255.255.255.0
65
66# End of file