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

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM