网站服务器需要开放udp端口吗,【ntp】为什么ntp服务需要开启双向(服务器端和客户端) udp/123端口?...

ntpd服务作为既可以作ntpServer,又可以作ntpClient ,只是配置上稍有不同。

ntpd服务运行时需要开启双向(服务器端和客户端) udp/123端口。

ce036f91a4b9

iptables:

# 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 iptables.service

firewalld:

# yum  -y install firewalld

# firewall-cmd --zone=public  --add-port=123/udp --permanent

# firewall-cmd --reload

ce036f91a4b9

https://superuser.com/questions/141772/what-are-the-iptables-rules-to-permit-ntp

Why does NTP require bi-directional firewall access to UDP port 123?

https://superuser.com/questions/762579/why-does-ntp-require-bi-directional-firewall-access-to-udp-port-123

Troubleshooting NTP

http://support.ntp.org/bin/view/Support/TroubleshootingNTP

【chrony】CentOS7.2 上chrony的安装与配置

https://www.jianshu.com/p/a8976ed21422

【ntp】CentOS7.x ntpd作为ntpServer ntpClient 的安装配置

https://www.jianshu.com/p/8513a4bbd257

【systemd+iptables】用systemd定义一个iptables防火墙系统服务

https://www.jianshu.com/p/96d179f4e444

【firewalld】CentOS 上的 firewalld 简明指南

https://www.jianshu.com/p/2cd238f6df71

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值