解决ICMP timestamp请求响应漏洞
sudo iptables -A INPUT -p ICMP --icmp-type timestamp-request -j DROP
sudo iptables -A INPUT -p ICMP --icmp-type timestamp-reply -j DROP
解决允许Traceroute探测
sudo iptables -A INPUT -p ICMP --icmp-type time-exceeded -j DROP
sudo iptables -A OUTPUT -p ICMP --icmp-type time-exceeded -j DROP
注意:
执行后立即生效,但是无法保存,重启就会失效。
因此要想办法永久生效的话就要用到iptables-save和iptables-restore
本文介绍如何通过iptables规则禁用ICMP时间戳请求和响应,以及阻止Traceroute探测,确保网络安全性。文章提供了具体的iptables命令,帮助读者实现对ICMP类型消息的过滤。
2912

被折叠的 条评论
为什么被折叠?



