siddou.tk

NTP client/server on Debian 7 Wheezy

Server

Install

sudo apt-get install ntp

Configure

sudo nano /etc/ntp.conf
#Insert your favorites ntp servers
server 0.fr.pool.ntp.org iburst
server 1.fr.pool.ntp.org iburst
server 2.fr.pool.ntp.org iburst
server 3.fr.pool.ntp.org iburst

#Restrict access
restrict 192.168.0.0 mask 255.255.255.0  nomodify notrap
#or let anyone access
#restrict 0.0.0.0 mask 0.0.0.0

Restart service

sudo service ntp restart

CLient

Install

sudo apt-get install ntp

Configure

sudo nano /etc/ntp.conf
server SERVER_IP_or_HOSTNAME            

Restart service

sudo service ntp restart

Test

ntpq -p

Tagged on: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *