http://blog.csdn.net/catoop/article/details/50476099

登录信息在 /var/log/secure

linux ip白名单

配置文件:/etc/hosts.allow

    /etc/hosts.deny

#

# hosts.allow   This file contains access rules which are used to

#               allow or deny connections to network services that

#               either use the tcp_wrappers library or that have been

#               started through a tcp_wrappers-enabled xinetd.

#

#               See 'man 5 hosts_options' and 'man 5 hosts_access'

#               for information on rule syntax.

#               See 'man tcpd' for information on tcp_wrappers

#

sshd:210.192.100.

注意:ip后面不能缺少句点

vi /etc/sysconfig/iptables

 
05-11 13:03