Which way is better to deny Services
I have been told to disable the incoming ping requests. and I know about three ways of doing this. I would like to know which one is the better approach.
Note My SELINUX and Firewall is enabled..
edit the /etc/hosts.deny file with entry "sshd: *"
iptables -t filter -I INPUT -p icmp --echo-type echo-request -j REJECT
edit the /etc/sysctl.conf file with "net.ipv4.icmp_echo_ignore_all = 1"