Ntp: Difference between revisions

From wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 2: Line 2:
Network Time Protocol, synchronize local clock to remote.
Network Time Protocol, synchronize local clock to remote.


To user ntpq the [[iptables|firewall]] should be open for traffic to the localhost.
To use ntpq the [[iptables|firewall]] should be open for traffic to the localhost.
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT

Revision as of 15:42, 22 September 2018

Network Time Protocol, synchronize local clock to remote.

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

iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
ip6tables -A INPUT -i lo -j ACCEPT
ip6tables -A OUTPUT -o lo -j ACCEPT