免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1163 | 回复: 4
打印 上一主题 下一主题

关于限制IP登陆的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-09-27 11:26 |只看该作者 |倒序浏览
主机环境为redhat as3,要限制IP的登陆,hosts.deny设置为:
/etc $ >; cat hosts.deny
#
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!

all:all

hosts.allow的设置为:
/etc $ >; cat hosts.allow
#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#

all:127.0.0.1 10.175. 192.168.31.163 134. 10.178.136.

但设置并没有起作用,请问是怎么回事呢?

论坛徽章:
0
2 [报告]
发表于 2005-09-27 11:31 |只看该作者

关于限制IP登陆的问题

要使hosts.deny和hosts.allow这两个文件生效需要启动服务吗?在网上找了一些文章,该两个文件需要portmap服务,但我这个服务已经启动了。可是一些不允许访问的IP还是可以访问。

论坛徽章:
0
3 [报告]
发表于 2005-09-27 15:52 |只看该作者

关于限制IP登陆的问题

请各位帮帮忙吧!

论坛徽章:
0
4 [报告]
发表于 2005-09-28 11:01 |只看该作者

关于限制IP登陆的问题

怎么每人回答?有人知道怎么解决吗 ?

论坛徽章:
0
5 [报告]
发表于 2005-09-28 11:24 |只看该作者

关于限制IP登陆的问题

http://bbs.chinaunix.net/forum/viewtopic.php?t=549155
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP