Server Fault is a question and answer site for system and network administrators. 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'm new to AWS, just setup a ubuntu ec2 and I've made a security group which allows me to ssh in and that's about all for now. What do I have to do to make it so I can also ping my instance?

share|improve this question

You have to make sure it allows ICMP packets to be seen/not firewalled.

share|improve this answer
+1. Pings are blocked by default by the AWS security groups. – ceejayoz Apr 16 '12 at 15:43
I edited my security group and added all ICMP packets - Very easy :) Thanks for the help! – Jeremy Iglehart Apr 22 '12 at 8:17
Just go to the security group, click on the "inbound" tab, choose "Create a new rule" dropdown and select "All ICMP" and then click +Add Rule – Jeremy Iglehart Apr 22 '12 at 8:18
What's the option to select if you don't want all ICMP, just ping? – Marcus Downing Jan 7 '13 at 15:13
ICMP is mostly for diagnostics, like traceroute along with ping. What would you gain by trying to block out everything but just ping? (I'm not sure you could block everything but ping with the tools they have available, although I suppose on the VM you can use the firewall tools to try to refine it...) – Bart Silverstrim Jan 8 '13 at 3:07
up vote 2 down vote accepted

Just go to the security group for the instance, click on the "inbound" tab, choose "Create a new rule" dropdown and select "All ICMP" and then click +Add Rule, then click Apply Rule Changes. The change takes effect immediately.

share|improve this answer

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.