安装iptables防火墙

 
installgetinstall
iptables安装在172.28.16.216上
 
封禁IP
iptables -I INPUT -s 172.28.16.217 -j DROP
iptables -I INPUT -s 117.132.186.208 -j DROP
查看封禁的内容
iptables -L -n
 
封禁有可以去查看网络是否通:ping 172.28.16.217
 
解封:
iptables -D INPUT -s IP地址 -j REJECT
iptables -F 全清掉
 

posted on 2020-04-08 13:11  Sample_天  阅读(232)  评论(0编辑  收藏  举报

导航