linux ip白名单、防火墙白名单 设置

 

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

 

 
posted @ 2017-07-20 13:55  酸奶加绿茶  阅读(7506)  评论(0编辑  收藏  举报