NTP: Time server

Configuration

by ross at 11:40:47 on September 10, 2012

ntpd is in the base system. All you have to do is to add the following to /etc/rc.conf:

ntpd_enable="YES"
ntpd_sync_on_start="YES"

Modify /etc/ntp.conf, add to the end of file:

restrict default nomodify nopeer noquery notrap   # everyone can go away...
restrict 127.0.0.1                                # except me 
restrict 192.168.10.0 mask 255.255.255.0 nomodify notrap nopeer # or my LAN

Start ntpd:

# service ntpd start

 

Comments