How to turn off ping request?
Open /etc/sysctl.conf in vi editor and write as follows
#sysctl –a |grep icmp
net.ipv6.icmp.ratelimit = 250
net.ipv4.netfilter.ip_conntrack_icmp_timeout = 30
net.ipv4.icmp_ratemask = 6168
net.ipv4.icmp_ratelimit = 250
net.ipv4.icmp_errors_use_inbound_ifaddr = 0
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
(Copy the last line and paste that into /etc/sysctl.conf)
#vi /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_all=1
#/sbin/sysctl –P or reboot
Restart your box
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment