I followed this guide to allow me to ping my EC2 instance. In my security group I have Custom ICMP Rule - IPv4, Echo Reply, N/A, Anywhere.

However it simply doesn't work. If i run ping ec2-X-X-X-X.ap-northeast-1.compute.amazonaws.com, or if I run ping X.X.X.X, it simply hangs forever. How to fix this?

My VPC settings are all default. The subnet route table has an internet gateway enabled and Network ACL allows all traffic in and out.


Allowing ICMP Echo Request as well in the security groups fixed it.

  • 1
    You don't need inbound Echo Reply at all -- just Echo Request. – Michael - sqlbot Feb 17 '20 at 1:31

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