码迷,mamicode.com
首页 > 其他好文 > 详细

NTP服务器配置

时间:2014-08-14 13:51:08      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:服务器   on   table   sp   ubuntu   server   net   ip   

vi /etc/ntp.conf

server 120.119.28.1
server 220.135.58.124

server 129.6.15.28
server 129.6.15.29
# Use Ubuntu‘s ntp server as a fallback.
#server ntp.ubuntu.com
server 91.189.94.4
#server 91.189.89.199

 

vi /etc/network/iptables.up.rules

-A INPUT -s 129.6.15.0/24 -j ACCEPT -m comment --comment "time.nist.gov"
-A INPUT -s 91.189.94.4 -j ACCEPT -m comment --comment "NTP-ubuntu"
-A INPUT -s 91.189.89.199 -j ACCEPT -m comment --comment "NTP-ubuntu"
-A INPUT -s 202.112.0.0/16 -j ACCEPT -m comment --comment "cn.pool.ntp.org"
-A INPUT -s 120.119.28.1 -j ACCEPT -m comment --comment "tw.pool.ntp.org"
-A INPUT -s 220.135.58.124 -j ACCEPT -m comment --comment "tw.pool.ntp.org"

-A OUTPUT -d 91.189.94.4 -j ACCEPT -m comment --comment "NTP"
-A OUTPUT -d 91.189.89.199 -j ACCEPT -m comment --comment "NTP"
-A OUTPUT -s 202.112.0.0/16 -j ACCEPT -m comment --comment "cn.pool.ntp.org"
-A OUTPUT -s 120.119.28.1 -j ACCEPT -m comment --comment "tw.pool.ntp.org"
-A OUTPUT -s 220.135.58.124 -j ACCEPT -m comment --comment "tw.pool.ntp.org"

 

NTP服务器配置,布布扣,bubuko.com

NTP服务器配置

标签:服务器   on   table   sp   ubuntu   server   net   ip   

原文地址:http://www.cnblogs.com/firadio/p/3912113.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!