3

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?

Jeremy Iglehart
  • 171
  • 1
  • 6

2 Answers2

5

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

Bart Silverstrim
  • 31,172
  • 9
  • 67
  • 87
  • +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 08: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 08:18
  • What's the option to select if you don't want all ICMP, just ping? – Marcus Downing Jan 07 '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 08 '13 at 03:07
  • I have ICMP traffic open, but I still can't ping my ubuntu server instance. I started one of my windows server 2008 instances and I can ping that one fine, so my issue is not with the security group. it seems to be more ubuntu/instance specific, but I just used the basic amazon ubuntu server 64 bit option and started it, then installed MongoDB. Any ideas why I still can't ping? Thanks! – Dan Csharpster Jun 09 '14 at 21:34
3

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.

Jeremy Iglehart
  • 171
  • 1
  • 6