修复方法
iptables
-I INPUT -p icmp --icmp-type 0 -j DROP
-I OUTPUT -p icmp --icmp-type 0 -j DROP
-I INPUT -p icmp --icmp-type 3 -j DROP
-I OUTPUT -p icmp --icmp-type 3 -j DROP
-I INPUT -p icmp --icmp-type 11 -j DROP
-I OUTPUT -p icmp --icmp-type 11 -j DROP
-I INPUT -p icmp --icmp-type 13 -j DROP
-I OUTPUT -p icmp --icmp-type 13 -j DROP
-I INPUT -p icmp --icmp-type 14 -j DROP
-I OUTPUT -p icmp --icmp-type 14 -j DROP
ufw
-I ufw-before-input -p icmp --icmp-type 0 -j DROP
-I ufw-before-output -p icmp --icmp-type 0 -j DROP
-I ufw-before-input -p icmp --icmp-type 3 -j DROP
-I ufw-before-output -p icmp --icmp-type 3 -j DROP
-I ufw-before-input -p icmp --icmp-type 11 -j DROP
-I ufw-before-output -p icmp --icmp-type 11 -j DROP
-I ufw-before-input -p icmp --icmp-type 13 -j DROP
-I ufw-before-output -p icmp --icmp-type 13 -j DROP
-I ufw-before-input -p icmp --icmp-type 14 -j DROP
-I ufw-before-output -p icmp --icmp-type 14 -j DROP
重启防火墙,测试 ping traceroute 无响应,问题解决。
引用文章
https://blog.csdn.net/tacity/article/details/127992854
评论