tftp 限制ip 限制ip段 或者多个ip段访问
2016-09-19 11:34 方斌 阅读(548) 评论(0) 编辑 收藏 举报1 限制单个ip访问 tftp
配置tftp信息
vi /etc/xinetd.d/tftp
在 service tftp配置信息中添加 only_form =ip
重启 service xinetd restart
则只有 单个ip 的机器能访问此ftp服务
2 限制一个ip段访问 tftp
配置tftp信息
vi /etc/xinetd.d/tftp
在 service tftp配置信息中添加 only_form = ip段(例如 100.2.29.0/24)
重启 service xinetd restart
则只有 29段的机器能访问此ftp服务
3 限制多个ip段访问 tftp
配置tftp信息
vi /etc/xinetd.d/tftp
在 service tftp配置信息中添加 only_form = 100.2.29.0/24 100.2.27.0/24
多个ip段之间用空格分隔开
重启 service xinetd restart
则只有 29段和 27段的机器能访问此ftp服务