1.屏蔽指定IP:124.115.0.199
iptables -I INPUT -s 124.115.0.199 -j DROP
2.屏蔽IP段:
iptables -I INPUT -s 61.37.80.0/24 -j DROP //61.37.80开头
iptables -I INPUT -s 124.115.0.0/16 -j DROP //124.115开头
iptables -I INPUT -s 124.0.0.0/8 -j DROP //124开头
3.解封
iptables -D INPUT -s 124.115.0.199 -j REJECT
iptables -F //全清掉了
https://blog.csdn.net/weixin_40461281/article/details/83008976
原文地址:https://www.cnblogs.com/wayneliu007/p/10374022.html
时间: 2024-09-29 12:04:29