Borislav Hadzhiev
Sun Sep 26 2021·2 min read
Photo by Jason Briscoe
In order to ping an AWS EC2 instance from your local machine:
Security
and open the security group in a new browser tabInbound rules
tab of your security group, click on
Edit inbound rules
Add rule
button and add the following inbound rule:Custom ICMP - IPv4
Echo Request
N/A
Anywhere-IPV4
The security group rule allows ping requests to the EC2 instance from any IP address in the world.
Source
select My IP
. This will only enable you to ping the instance from your current IP address.Details
tab, copy the Public IPv4 DNS
address of your instanceping
command to ping your EC2 instance from your local machineping YOUR_EC2_PUBLIC_DNS
In our case to allow inbound ping requests to the instance, we had to add a new inbound security group to allow ICMP traffic.