LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2006, 11:55 PM   #1
slpwkr
LQ Newbie
 
Registered: Mar 2005
Location: philippines
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-23-2006, 11:58 PM   #2
tgo
Member
 
Registered: Dec 2004
Posts: 125

Rep: Reputation: 15
Code:
iptables -I INPUT -p icmp -j LOG --log-level 7 --log-prefix "ping: "
this will log all icmp traffic that comes in on your machine. the logged info will have dest/src ip and icmp type.
 
Old 07-24-2006, 12:05 AM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
Old 07-24-2006, 04:14 AM   #4
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
http://linux.maruhn.com/sec/icmpinfo.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH over ICMP? kleptophobiac Linux - Networking 11 11-11-2006 04:09 PM
About ICMP Ephracis Linux - Networking 1 11-22-2004 08:01 AM
ICMP traffic archives/writing ICMP traffic in a file maia_1 Programming 0 07-20-2004 03:43 AM
What is ICMP? codedv Linux - Networking 2 01-04-2004 10:12 AM
Icmp mikeyt_3333 Linux - Security 1 08-09-2001 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration