cybersecurity:openvas:fix:icmp
Differences
This shows you the differences between two versions of the page.
| cybersecurity:openvas:fix:icmp [2023/11/17 09:04] – created warnaud | cybersecurity:openvas:fix:icmp [2023/11/17 09:07] (current) – warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== ICMP Timestamp ====== | ||
| + | To fix "ICMP Timestamp Reply Information Disclosure"" | ||
| + | ===== Iptable ===== | ||
| + | |||
| + | <code bash> | ||
| + | iptables -A INPUT -p icmp --icmp-type timestamp-request -j DROP | ||
| + | iptables -A OUTPUT -p icmp --icmp-type timestamp-reply -j DROP | ||
| + | </ | ||
| + | ==== Check ==== | ||
| + | <code bash> | ||
| + | < | ||
| + | DROP icmp -- anywhere | ||
| + | DROP icmp -- anywhere | ||
| + | </ | ||
| + | |||
| + | ===== Firewall-cmd ===== | ||
| + | <code bash> firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT -5 -p icmp --icmp-type timestamp-request -j DROP</ | ||
| + | |||
| + | Reference: https:// | ||
