EC2 Instance Ping

+2 votes
I have created a custom EC2 windows instance.

This EC2 instance is created within the public subnet but without public IP assigned to the EC2 instance, only private IP assigned. This public subnet has the Main Route Table with internet gateway(EIP) attached.

Added the ICMP protocol to the security group inbound rules with ip subnets and also enabled the "File and Printer Sharing(Echo Request) firewall rules in the EC2 instance.

With the above configuration, I accept from my local machine I will not able to ping the EC2 instance. Why I am not able to ping ay public domain like(yahoo or goolge) from the EC2 instance. Note, I used Bastion machine to that EC2 instance.
May 11, 2020 in AWS by anonymous
• 140 points

1 answer to this question.

0 votes


You set inbound rule to your instance. It means you are allowing outside traffic in your instance. But you are trying to connect to the outside world from your instance and you did not set your outbound rule. So set ICMP protocol for outbound rules and then try once.

answered May 11, 2020 by MD
• 95,320 points

Related Questions In AWS

+2 votes
3 answers

Is it possible to ping AWS EC2 instance

Start by adding a new EC2 security group inbound ...READ MORE

answered Apr 9, 2018 in AWS by hemant
• 5,810 points
0 votes
1 answer

Unable to ping to my EC2 Instance.

Make sure the Amazon network rules allow Echo ...READ MORE

answered Jan 14, 2019 in AWS by Pranjali
0 votes
1 answer

Ping request failed to my AWS EC2 instance

Add a new EC2 security group inbound rule: Type: Custom ...READ MORE

answered Mar 13, 2019 in AWS by Mukesh
0 votes
1 answer

Cannot ping to my EC2 Instance

This problem mainly occurs because of the ...READ MORE

answered Mar 27, 2019 in AWS by Ritu
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,140 points
0 votes
1 answer
0 votes
1 answer
+4 votes
2 answers

Access EC2 instance using Putty

I will tell you a descriptive way ...READ MORE

answered Nov 20, 2018 in AWS by Priyaj
• 58,140 points