ntpd服务运行时需要开启双向(服务器端和客户端) udp/123端口。
# yum install iptables iptables-services
# iptables -A INPUT -p udp -m udp --dport 123 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
# iptables -A OUTPUT -p udp -m udp --dport 123 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
# systemctl restart iptablesservice
# yum -y install firewalld
# firewall-cmd --zone=public --add-port=123/udp --permanent
# firewall-cmd --reload
What are the iptables rules to permit ntp
>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)