- 论坛徽章:
- 0
|
主机环境为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.
但设置并没有起作用,请问是怎么回事呢? |
|