<p>When we created a new instance in aws ec2, by default aws security group block all protocol and port. </p>

<p>AWS security groups block ICMP (including ping, traceroute, etc.) by default. You need to explicitly enable it.</p>

<p>So, enable ICMP protocol (ping response) follow below steps.</p>

<p>Go to <strong>EC2 Dashboard</strong> and click "<strong>Running Instances</strong>"</p>

<p>on <strong>"Security Groups"</strong>, select the group of your instance which you need to add security.</p>

<p>click on the "<strong>Inbound</strong>" tab</p>

<p>Click "<strong>Edit</strong>" Button (It will open a popup window)</p>

<p>click "<strong>Add Rule</strong>"</p>

<p>Select the "<strong>Custom ICMP rule - IPv4</strong>" as Type</p>

<p>Select "<strong>Echo Request</strong>" as the Protocol (Port Range by default show as "N/A)</p>

<p>Enter the "<strong>0.0.0.0/0</strong>" as Source</p>

<p>Click "<strong>Save</strong>"</p>

CC BY-SA 4.0
2022-03-24T17:23:19.517Z
In addition to what has been mentioned in the above answer . Here is the official AWS documentation for your reference : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-rules-reference.html#sg-rules-ping
Kunal
CC BY-SA 4.0
2019-01-24T14:05:44.387Z
2019-01-24T14:05:44.387Z
Jay
<p>I hosted one website in AWS. When I try to open in a browser it's working properly. But when I try to ping same website that time it's not sent a response. so how to enable ping response.</p>

<amazon-web-services>
How to set ping response of AWS ec2 instance?
Subhash
# How to set ping response of AWS ec2 instance?

(Asked by: username_0 on 2019-01-24)

I hosted one website in AWS. When I try to open in a browser it's working properly. But when I try to ping same website that time it's not sent a response. so how to enable ping response.

**Tags:** amazon-web-services


---

## 1 answers

### Answer by username_1 on 2019-01-24. Score: 1 | Accepted answer

When we created a new instance in aws ec2, by default aws security group block all protocol and port.

AWS security groups block ICMP (including ping, traceroute, etc.) by default. You need to explicitly enable it.

So, enable ICMP protocol (ping response) follow below steps.

Go to **EC2 Dashboard** and click "**Running Instances**"

on **"Security Groups"**, select the group of your instance which you need to add security.

click on the "**Inbound**" tab

Click "**Edit**" Button (It will open a popup window)

click "**Add Rule**"

Select the "**Custom ICMP rule - IPv4**" as Type

Select "**Echo Request**" as the Protocol (Port Range by default show as "N/A)

Enter the "**0.0.0.0/0**" as Source

Click "**Save**"

> **Comments:**
> **username_2**: In addition to what has been mentioned in the above answer . Here is the official AWS documentation for your reference : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-rules-reference.html#sg-rules-ping  

---

