centos 7 拉黑IP

有时候我们需要拉黑那些恶心的高流量的IP,centos7 可以使用下面这条命令

firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address="192.168.0.23" drop' 

然后reload一下firewall

firewall-cmd --reload

搞定

猜你喜欢

转载自blog.csdn.net/terence_csdn/article/details/86042263