- 论坛徽章:
- 0
|
我的防火墙应该没有做限制,因为我在iptables加了一条iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT语句了,开放了22端口和sshd服务。从内网登陆很正常的。
上面二个文件都没有作限制。
[root@qlt root]# cat /etc/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.
#
[root@qlt root]# cat /etc/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!
这样的话还无法出差后从外面登陆进来。。。 |
|