it cannot be accessed through port 80 or 443 of the public IP, but it can be accessed normally through the private IP.

0

After my EC2 instance is started, it cannot be accessed through port 80 or 443 of the public IP, but it can be accessed normally through the private IP. After restarting the instance and changing the public IP address, it starts to work normally and cannot be accessed after a few minutes. I checked the security group and status in EC2 and found no exception. What's the reason?Thank you

1개 답변
0

It sounds like you're launching your instance in a private subnet (which doesn't have a default route to an Internet Gateway); but if that was the case then access via the public IP wouldn't work at all.

If there was "something" modifying the VPC route tables you might see the behaviour you're describing.

Are you using WAF in CloudFront or on an Application Load Balancer with managed rules or rules that are dynamically being modified by Lambda? That would block traffic in some circumstances.

The other situation is if you're inspecting traffic using Network Firewall or Gateway Load Balancer and the firewalls are blocking traffic.

You haven't mentioned any of these things so I assume that you're not using them.

The best path is to create a support case and have the team look at your network for you.

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠