Ping erişimini hata mesajı ile kapatma
iptables -A INPUT -p icmp --icmp-type echo-request -j REJECT
64 bytes from 185.122.xxx.xxx: icmp_seq=467 ttl=53 time=19.6 ms
64 bytes from 185.122.xxx.xxx: icmp_seq=468 ttl=53 time=19.7 ms
64 bytes from 185.122.xxx.xxx: icmp_seq=469 ttl=53 time=19.4 ms
64 bytes from 185.122.xxx.xxx: icmp_seq=470 ttl=53 time=19.4 ms
From 185.122.xxx.xxx icmp_seq=471 Destination Port Unreachable
From 185.122.xxx.xxx icmp_seq=472 Destination Port Unreachable
From 185.122.xxx.xxx icmp_seq=473 Destination Port Unreachable
From 185.122.xxx.xxx icmp_seq=474 Destination Port Unreachable
From 185.122.xxx.xxx icmp_seq=475 Destination Port Unreachable
iptables -D INPUT -p icmp --icmp-type echo-request -j REJECT
iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
iptables -A OUTPUT -p icmp --icmp-type echo-reply -j DROP
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT
Linux
hakkında diğer konular