EC2 port 80 and 443 were closed unexpectedly

0

Hi. I have bitnami wordpress website run on an EC2 instance. Recently I cannot access my website through a web browser.

The bitnami diagnostic tool told me that server ports 22, 80 and/or 443 are not publicly accessible. Website Port Checker also showed that the port 80 and 443 are closed.

I logged in my EC2 instance, and the security group settings look fine to me. I used netstat, and the results told me the ports are listening.

I was confused at this point.

I then discovered this resolved issue on bitnami support: https://github.com/bitnami/vms/issues/481 Where the author stated the ports were closed by the high-level due to malicious attack.

Does anyone know how can I know whether this is what I encounter? I am on a basic support plan. I don't know who to talk to.

Thanks.

Sincerely, Chris

Chris
asked a year ago327 views
2 Answers
0

Am not sure I understand your issue correctly, but you can use the rateability analyzer to check if the EC2 (ENI for the EC2) is reachable on a specific port from a specific IP/gateway/ENI.

That will let you know whether there is anything up until you instance blocking traffic or if indeed the traffic flows through end to end.

AWS
answered a year ago
  • Thanks for your kind reply. I tried many different paths, and it seemed like the instance public IP is not reachable in any port (with the detail saying NO_PATH), while the private IP can be reached through port 22 and port 80 (I didn't try 443). The documentation for NO_PATH doesn't seem to be very helpful. Do you have any suggestion for what I can do next?

0

The issue has resolved by itself after I created an image of the instance (I attempted to just launch another instance instead of thinking what's wrong with the old one). And after I created the image, the website suddenly can be accessed. I have no idea why and how but think it's a good idea to leave this piece of information in case any one facing the same situation and needing a solution. Thanks!

Chris
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions