Welcome to Linux Support and Sun Help
Search LinuxSupport

Download the latest version of NTP from http://www.ntp.org/

wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.4p4.tar.gz
gunzip ntp-4.2.4p4.tar.gz
tar -xvf ntp-4.2.4p4.tar
cd ntp-4.2.4p4
Compiling
./configure
make
make check (optional)
make install

Use command /usr/local/bin/ntpdate ntp.demon.co.uk (or wherever) to set the current time, or create a new file in /etc/cron.daily/

You may wish to add this command to cron.daily so that the time is synchronised automatically every day.

Firewall considerations

If you have a firewall you will need to amend in order to allow UDB port 123.

For IPCHAINS, the relevant code is:-

ipchains -A input -i eth0 -p udp -d $IPADDRESS 123 -j ACCEPT
ipchains -A output -i eth0 -p udp -s $IPADDRESS 123 -j ACCEPT

where $IPADDRESS is defined as the IP address of your server.

For IPTABLES, the relevant code is:-

iptables -A INPUT -p udp -m udp --sport 123 -j ACCEPT
iptables -A OUTPUT -p udp -m udp --dport 123 -j ACCEPT

Also check any router or hardware firewall restrictions. You may need to open outgoing UDP port 123.

Valid HTML 4.01! Valid CSS!