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

1 Answer

0 like 0 dislike
by anonymous Bilge (165k points)
ufw kurallarının bulunduğu dosyanın yedeğini alın.
#cp /etc/ufw/before.rules /etc/ufw/before.rules_backup

# ok icmp codes for INPUT
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT
-A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT

ACCEPT'leri DROP olarak değiştirdik
# ok icmp codes for INPUT
-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

Daha sonra ufw'yi reload yapın

#ufw reload
...