linux ntpd[@more@]
a、第一种配置:允许任何IP的客户机都可以进行时间同步
将“restrict default nomodify notrap noquery”这行修改成:
restrict default nomodify
b、第二种配置:只允许192.168.1.***网段的客户机进行时间同步
在restrict default nomodify notrap noquery(表示默认拒绝所有IP的时间同步)之后增加一行:
restrict 192.168.1.0 mask 255.255.255.0 nomodify
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/309902/viewspace-1051724/
,如需转载,请注明出处,否则将追究法律责任。