Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Ubuntu Lucid on a VPS. I installed a webserver, and also a mail server (POSTFIX).

What I noticed is that some websites are continuously pinging my domain*. I have also received a number of SPAM mail that is delivered to my IP.

What I want is an utility that record every ping or request to every port in my VPS. Is there something like that?

  • I noticed this reading my webserver log which showed that some sites were requesting resources (images) from some dead links on my domain
share|improve this question
Your router is likely to already do this. – Rinzwind Jan 8 '12 at 17:38
If it is a public server you are going to get overwhelmed with background noise fast. IMO it is better to either rate limit ping (with ufw or iptables) or monitor your network traffic with a tool such as snort. Yes there is a learning curve with snort, but the advantage is that it will filter through all the background traffic and alert you to the traffic you should worry about. An alternate , light weight solution would be psad. I have a write up on psad on my web page - – bodhi.zazen Jan 8 '12 at 17:41
up vote 4 down vote accepted

There are a lot of ways...

  1. Have a look at the default firewall UFW (should already be installed).
  2. wireshark Install wireshark can do this too.
  3. tcpdump ip proto \\icmp can be used to monitor incoming ping (real time).
share|improve this answer
sudo tcpdump -i eth0 proto \\icmp

If you wanna monitor an interface other that eth0, provide it's name in place of eth0.

share|improve this answer
better answer that the topvoted one – Harry Moreno Jan 30 '15 at 9:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.