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 Antwort
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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen