Ntp

From wiki
Revision as of 16:05, 22 September 2018 by Hdridder (talk | contribs) (Created page with "Network Time Protocol, synchronize local clock to remote. To user ntpq the firewall should be open for traffic to the localhost. <syntaxhighlight lang=bash> iptables -A INPUT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Network Time Protocol, synchronize local clock to remote.

To user ntpq the firewall should be open for traffic to the localhost.

iptables -A INPUT -p all -j ACCEPT -s 127.0.0.1 -d 127.0.0.1
iptables -A OUTPUT -p all -j ACCEPT -s 127.0.0.1 -d 127.0.0.1
ip6tables -A INPUT -p all -j ACCEPT -s ::1 -d ::1
ip6tables -A OUTPUT -p all -j ACCEPT -s ::1 -d ::1