How can I monitor ICMP
Hi guys how will I monitor the ICMP (pings) to my linux machine? any command?
The netstat command does not display the IP address of the ICMP source. |
Code:
iptables -I INPUT -p icmp -j LOG --log-level 7 --log-prefix "ping: " |
Be careful, you can get hit by a lot of ICMP traffic in a short period of time, which could lead to an inadvertant DoS of your system with the logging. You may want to use the limit module to reduce the number of log entries.
|
|
All times are GMT -5. The time now is 01:18 PM. |