Which way is better to deny Services
Hi All,
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..
Method 1:
edit the /etc/hosts.deny file with entry "sshd: *"
Method 2:
iptables -t filter -I INPUT -p icmp --echo-type echo-request -j REJECT
Method 3:
edit the /etc/sysctl.conf file with "net.ipv4.icmp_echo_ignore_all = 1"
|