跳到主要內容

解決 ICMP Timestamp Request Remote Date Disclosure

# 阻擋輸入的時間戳記請求sudo iptables -A INPUT -p icmp --icmp-type timestamp-request -j DROP# 阻擋輸出的時間戳記回應sudo iptables -A OUTPUT -p icmp --icmp-type timestamp-reply -j DROPoriptables -A INPUT -p icmp --icmp-type 13 -j DROPiptables -A OUTPUT -p icmp --icmp-type 14 -j DROP輸入:nmap -sP -PP [您的IP]。檢驗結果: 漏洞存在: 結果會顯示 Host is up 並且出現 16:25:30 或類似的 16 進位時間數據。 已修復: 結果會顯示 Note: Host seems down(即使機器開著),或者完全沒有時間戳記的回傳資訊。

解決 ICMP Timestamp Request Remote Date Disclosure
# 阻擋輸入的時間戳記請求
sudo iptables -A INPUT -p icmp --icmp-type timestamp-request -j DROP
# 阻擋輸出的時間戳記回應
sudo iptables -A OUTPUT -p icmp --icmp-type timestamp-reply -j DROP

or

iptables -A INPUT -p icmp --icmp-type 13 -j DROP
iptables -A OUTPUT -p icmp --icmp-type 14 -j DROP

輸入:nmap -sP -PP [您的IP]。
檢驗結果:
漏洞存在: 結果會顯示 Host is up 並且出現 16:25:30 或類似的 16 進位時間數據。
已修復: 結果會顯示 Note: Host seems down(即使機器開著),或者完全沒有時間戳記的回傳資訊。