The Hardening Cisco Routers book provides a good reference for Network Time Protocol (NTP) important, and can be found at http://oreilly.com/catalog/hardcisco/chapter/ch10.html. NTP is a very popular way to synchornise system clocks with a central trusted server. Here's a rough guide to getting NTP running on a Linux server;
- sudo yum install ntp # Install the NTP client
- sudo vi /etc/ntp.conf # Edit the configuration file to use the nearest server pool. Refer to www.ntp.org to get the pools.
- sudo mv /etc/localtime /etc/localtime~ # Backup the locatime file
- sudo ln -s /usr/share/zoneinfo/
/ /etc/localtime # Ensure that the correct locatime file is set for your city - sudo ntpdate
# Set the date using NTP using the pool specified* - sudo /etc/rc.d/init.d/ntp start # Start the NTP client daemon
- ntpstat # Check that the system clock is synchronised
- date # Check that the system date is set correctly
- sudo hwclock -w # Set the hardware clock to the system date
No comments:
Post a Comment