ICMP timestamp請求響應漏洞
解決方案:
* 在您的防火牆上過濾外來的ICMP timestamp(類型13)報文以及外出的ICMP timestamp回復報文。
google之,於是動手解決:
具體解決方式就是禁用ICMP timestamp-request,編輯etc/sysconfig/iptables文件,在防火牆規則里面添加如下記錄:
-A RH-Firewall-1-INPUT -p ICMP --icmp-type timestamp-request -j DROP
-A RH-Firewall-1-INPUT -p ICMP --icmp-type timestamp-reply -j DROP
接下來,重啟iptables服務,重啟命令:service iptables restart
檢查新添加的規則是否有效,檢查命令:iptables -L -n
你會看到若干文字中的如下兩條:
這些規則告訴server 不要使用ICMP timestamp 包。
wsj---為了解決“在防火牆中禁用Time Exceeded類型的ICMP包”和“在您的防火牆上過濾外來的ICMP timestamp(類型 13)報文以及外出的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
sudo iptables -A INPUT -p ICMP --icmp-type time-exceeded -j DROP
sudo iptables -A OUTPUT -p ICMP --icmp-type time-exceeded -j DROP
ubuntu上修改
root@ubuntu# ufw disable
vi /etc/ufw/before.rules
# ok icmp codes -A ufw-before-input -p icmp --icmp-type destination-unreachable -j DROP -A ufw-before-input -p icmp --icmp-type source-quench -j DROP -A ufw-before-input -p icmp --icmp-type time-exceeded -j DROP -A ufw-before-input -p icmp --icmp-type parameter-problem -j DROP -A ufw-before-input -p icmp --icmp-type echo-request -j DROP
root@ubuntu# ufw enable
這種方法的弊端是其它機子無法ping本機,不可取
轉自:https://blog.csdn.net/xiadingling/article/details/8115945