0 like 0 dislike
1 view
in Linux by anonymous Bilge (165k points)
iptables ping block disable

2 Answers

0 like 0 dislike
by anonymous Bilge (165k points)
$ sudo iptables -A INPUT -p icmp --icmp-type echo-request -j REJECT
0 like 0 dislike
by anonymous Bilge (165k points)
Hata mesajı almadan kapatmak isterseniz;

$ sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
$ sudo iptables -A OUTPUT -p icmp --icmp-type echo-reply -j DROP

kuralı silmek için;

$ sudo iptables -D INPUT -p icmp --icmp-type echo-request -j REJECT
...