host.allow 和 host.deny
来源:互联网 发布:手机能自助开通淘宝 编辑:程序博客网 时间:2024/05/10 08:52
对于能过xinetd程序启动的网络服务,比如ftp telnet,我们就可以修改/etc/hosts.allow和/etc/hosts.deny的配制,来许可或者拒绝哪些IP、主机、用户可以访问。
比如我们在 /etc/hosts.allow中加入
all:218.24.129.
这样就会允许来自218.24.129.*域的所有的客户来访问。这只是举个例子,实际上,系统默认状态 下,都是能用这些网络服的
如果我们在 /etc/hosts.deny中加入,就限制了来自218.24.129.*域的所有的所有的IP。
all:218.24.129.
如果我们在 /etc/hosts.deny中加入
all:218.24.129.134,这样就限制了所有在218.24.129.134中的所有的用户的访问。
当hosts.allow和 host.deny相冲突时,以hosts.allow设置优化。
设置好后,要重新启动
# /etc/rc.d/init.d/xinetd restart
# /etc/rc.d/init.d/network restart
不是任何服务程序都能使用TCP_wrappers的,例如使用命令ldd /usr/sbin/sshd,如果输出中有libwrap,则说明可以使用TCP_wrappers, 即该服务可以使用/etc/hosts.allow和/etc/hosts.deny,如果输出没有libwrap则不可使用
- host.allow 和 host.deny
- apache allow 和deny 详解
- hosts.allow和hosts.deny
- hosts.allow和hosts.deny
- /etc/hosts.allow和/etc/hosts.deny
- /etc/hosts.allow和/etc/hosts.deny
- ngx_http_access_module语句中allow和deny语句
- linux hosts的allow和deny
- Host
- HOST
- Host
- host
- host
- host
- host
- MYSQL - ERROR 1130:Host is not allow
- MYSQL - ERROR 1130:Host is not allow
- MYSQL - ERROR 1130:Host is not allow
- 入手七彩虹低价平板 E708 Q1
- 小项目经验记录---需求调研
- uva 10154 Weights and Measures(01背包)
- 九度OnLine Judge-1553
- 【转载】最大子序列、最长递增子序列、最长公共子串、最长公共子序列、字符串编辑距离
- host.allow 和 host.deny
- SafeSEH基本概念+ 从堆区绕过SafeSEH学习
- 键盘游戏之div--用OO方式写
- 5年后,你会是怎样的
- C++虚函数的原理
- CODE平台支持开源项目自动同步啦
- 2013网赛热身赛几道水题
- linux小记7 管道和重定向
- ExcelUtil