centos7添加ip黑名單禁止某個ip訪問

centos7用的是firewall 添加單個黑名單隻需要把ip添加到 /etc/hosts.deny 格式  sshd:$IP:deny vim /etc/hosts.deny   添加你要禁止的ip就可以了 sshd:192.168.1.147:deny 這是允許的 /etc/hosts.allow  sshd:19.16.18.1:allow sshd:19.16.18.2:allow 找了
相關文章
相關標籤/搜索