原创 linux centos7添加ip黑名單禁止ip訪問以及自動禁止

centos7用的是firewall 添加單個黑名單隻需要把ip添加到 /etc/hosts.deny 格式  sshd:$IP:deny vim /etc/hosts.deny   添加你要禁止的ip就可以了 sshd:192.168.1