<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://research.iat.sfu.ca/research/index.php?action=history&amp;feed=atom&amp;title=HOWTO_Setup_NTPD</id>
	<title>HOWTO Setup NTPD - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://research.iat.sfu.ca/research/index.php?action=history&amp;feed=atom&amp;title=HOWTO_Setup_NTPD"/>
	<link rel="alternate" type="text/html" href="https://research.iat.sfu.ca/research/index.php?title=HOWTO_Setup_NTPD&amp;action=history"/>
	<updated>2026-04-12T14:47:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://research.iat.sfu.ca/research/index.php?title=HOWTO_Setup_NTPD&amp;diff=3105&amp;oldid=prev</id>
		<title>Mmmark at 23:27, 18 July 2006</title>
		<link rel="alternate" type="text/html" href="https://research.iat.sfu.ca/research/index.php?title=HOWTO_Setup_NTPD&amp;diff=3105&amp;oldid=prev"/>
		<updated>2006-07-18T23:27:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Setup the ntpd.conf File ==&lt;br /&gt;
Edit /etc/ntpd.conf (suse) or /etc/ntp.conf (gentoo) to look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
restrict default noquery notrust nomodify&lt;br /&gt;
restrict 127.0.0.1&lt;br /&gt;
restrict 209.87.56.0 mask 255.255.255.0&lt;br /&gt;
restrict 209.87.57.30&lt;br /&gt;
server 209.87.57.30&lt;br /&gt;
restrict 142.58.103.1&lt;br /&gt;
server 142.58.103.1&lt;br /&gt;
driftfile /etc/ntp.drift&lt;br /&gt;
logfile /var/log/ntp.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Gentoo&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 # emerge ntp -va&lt;br /&gt;
 # rc-update add ntpd default&lt;br /&gt;
 # /etc/init.d/ntpd start&lt;br /&gt;
&lt;br /&gt;
DO NOT&lt;br /&gt;
rc-update add ntp-client default&lt;br /&gt;
don&amp;#039;t do it!!!??&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Suse&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 # chkconfig xntpd on&lt;br /&gt;
 # /etc/init.d/xntpd start&lt;br /&gt;
&lt;br /&gt;
== For Firewall users ==&lt;br /&gt;
Add the following rule to iptables:&lt;br /&gt;
 -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
== Check everything is running properly ==&lt;br /&gt;
 # ntpdc&lt;br /&gt;
Then type in &amp;#039;peers&amp;#039; to see if the ntpd can contact the ntp server correctly, and then type &amp;#039;quit&amp;#039; to exit.&lt;br /&gt;
&lt;br /&gt;
== Locked Down ntpd.conf ==&lt;br /&gt;
If you are paranoid, use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
restrict default ignore&lt;br /&gt;
restrict 127.0.0.1&lt;br /&gt;
restrict 209.87.57.30&lt;br /&gt;
server 209.87.57.30&lt;br /&gt;
restrict 209.87.56.234&lt;br /&gt;
server 209.87.56.234&lt;br /&gt;
driftfile /etc/ntp.drift&lt;br /&gt;
logfile /var/log/ntp.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mmmark</name></author>
	</entry>
</feed>