Copyright (C) 2008-2021 Oliver Bohlen.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free Documentation License".
This documentation comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
Here a litte configuration for a timeserver in the LAN.
For this you need to get the specific certificates from the Server Admin.
If you want to use this solution you need the following howto(s) finished:
emerge net-misc/ntp
File permissions:
Owner: root
Group: root
Permissions: -rwx------
Click here for a download of the complete file: /etc/cron.hourly/ntpdate.sh
Changed on 11.09.08Set the system and BIOS time/date daily from the internet.
#!/bin/bash ntpdate -us 0.de.pool.ntp.org || ntpdate -us 1.de.pool.ntp.org hwclock --systohc
File permissions:
Owner: root
Group: root
Permissions: -rw-r--r--
Click here for a download of the complete file: /etc/ntp.conf
Changed on 08.09.08Allow the LAN to connect to the timeserver. Set this to your network ip and subnet mask.
restrict default nomodify nopeer noquery limited kod restrict 127.0.0.1After change
restrict default nomodify restrict my.lan.network.ip mask XXX.XXX.XXX.XXX restrict my.dmz.network.ip mask XXX.XXX.XXX.XXX restrict 127.0.0.1
For starting the new service after system reboot you should add it to a runlevel with the following command(s):
rc-update add ntpd default
Please send a feedback to: doc<at>gabosh.net
Howto listingHere you can find the official Gentoo Linux Forums where you can find a lot of answers.
Here a link to the official Gentoo Linux Homepage.