how deny ping to a system using IP
1)
[root@localhost trunk]# vim /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT --source 192.168.1.105 -j DROP <---- Means DROP any request to 192.168.1.105 from our machine.
2) Restart iptables
[root@localhost trunk]# service iptables restart
3) Try to ping
[root@localhost trunk]# ping 192.168.1.105
PING 192.168.1.105 (192.168.1.105) 56(84) bytes of data.
--- 192.168.1.105 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1029ms
No comments:
Post a Comment