Sun Sep 26 2021·2 min read
Photo by Jason Briscoe
In order to ping an AWS EC2 instance from your local machine:
Securityand open the security group in a new browser tab
Inbound rulestab of your security group, click on
Edit inbound rules
Add rulebutton and add the following inbound rule:
Custom ICMP - IPv4
The security group rule allows ping requests to the EC2 instance from any IP address in the world.
My IP. This will only enable you to ping the instance from your current IP address.
Detailstab, copy the
Public IPv4 DNSaddress of your instance
pingcommand to ping your EC2 instance from your local machine
In our case to allow inbound ping requests to the instance, we had to add a new inbound security group to allow ICMP traffic.