有时候我们需要拉黑那些恶心的高流量的IP,centos7 可以使用下面这条命令
firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address="192.168.0.23" drop'
然后reload一下firewall
firewall-cmd --reload
搞定
有时候我们需要拉黑那些恶心的高流量的IP,centos7 可以使用下面这条命令
firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address="192.168.0.23" drop'
然后reload一下firewall
firewall-cmd --reload
搞定