Trucs
Documentation
   • Autour de LDAP
   • Awstats
   • Backup HP COLORADO 5G
   • Compatibilit� Linux
   • Configuration NFS
   • Configuration ZSH
   • Configuration de FreeBSD
   • Connexion ADSL PPPOE
   • IPFILTER
   • Installation PXE
   • Installation d'un DNS
   • Installation d'un Squirrelmail
   • Installation de Apache SSL
   • Installation de FreeBSD
   • Installation de GRUB
   • Installation de MailScanner
   • Installation de PostgreSQL
   • Jail sous FreeBSD
   • Mise a jour de votre FreeBSD
   • Serveur CVS
   • Serveur DHCPd
   • Serveur IRCd
   • Serveur NTPd
   • Serveur ProFTPd
   • Serveur at home
   • Utilisation simple de CVS
   • X11: interface graphique
Download
Informations
About
Le

Et aussi ...
rockanjou.org




Lancement d'un serveur NTPd

NTPd est install� par d�faut dans FreeBSD, mais n'est pas actif apr�s l'installation.
IL faut ajouter certaine lignes dans le /etc/rc.conf :

vi /etc/rc.conf
--
# le lancement de NTPDATE n'est pas obligatoire
# il met a jour l'heure au d�marrage
ntpdate_enable="YES"
ntpdate_program="/usr/sbin/ntpdate"
ntpdate_flags="-b canon.inria.fr"

# lancement de Xntpd
xntpd_enable="YES"
xntpd_program="/usr/sbin/ntpd"
xntpd_flags="-p /var/run/ntpd.pid"


Il faut modifier la configuration de ntpd :

vi /etc/ntp.conf
--
# liste des serveurs fran�ais les plus fiables
server 192.93.2.20 prefer # canon.inria.fr
server 195.220.94.163 # chronos.cru.fr
server 134.214.100.6 # univ-lyon1.fr

driftfile /var/db/ntp.drift

# restriction d'acc�s au Localhost
restrict 127.0.0.1 mask 255.255.0.0 nomodify notrap nopeer notrust
# restriction d'acc�s au LAN de reseau IP : 192.168.1.0/24
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap

On peut d�s maintenant lancer Xntpd via :

ntpd -p /var/run/ntpd.pid

Romain GEORGES le 2003/01/20