修饰 | 解释说明 |
ignore | 拒绝连接到ntp server |
nomodify | 可以连接到ntp server,但是不能对ntp server进行时间上的修改 |
notrust | 对没有认证的客户端不提供服务 |
notrap | 不提供 trap 远程登录功能 |
noquery | 不提供对ntp server查询时间,也就是拒绝和ntp server进行时间同步 |
restrict default nomodify notrap noquery | 默认拒绝所有来源的任何访问 |
restrict 127.0.0.1 mask 255.0.0.0 | 开放本机的任何访问 |
restrict 192.168.0.0 mask 255.255.255.0 nomodify | 开放本网段的可查询访问 |
restrict 192.168.0.11 mask 255.255.255.255 nomodify | 限制单个IP可以执行除修改外的访 |
| 欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) | Powered by Discuz! X3.3 |