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 0.0.0.0/0 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,195 views

1 answer to this question.

0 votes

Hi,

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,460 points

Related Questions In AWS

+2 votes
3 answers

Is it possible to ping AWS EC2 instance

1.Go to EC2 Dashboard and click "Running ...READ MORE

answered Nov 13, 2020 in AWS by shivam
• 140