Skip to content

Lightsail instance. Ports blocked

0

I have had a website hosted on a Lightsail instance for years but today it stopped being reachable, ports 80 and 443 are closed although the firewall is configured correctly. Port 22 works correctly. Domain is resolving correctly. Everything worked until yesterday.

In the last week I received numerous email from Netcraft, warning that a file hosted on the website contains a malware. (the file is a Visual C++ redistributable bth). I ignore them because I thought it was spam but now I believe they were legitim and got AWS to block access to my website. I haven't received any comunication from AWS. Has anybody had any experience with similar take downs, if this is what happened?

Thank you vey much

asked 2 years ago380 views

1 Answer
0

Based on the information provided, it's unlikely that AWS has taken down your website or blocked access to it without notifying you. The issue you're experiencing is more likely related to a configuration problem or a security measure that has been triggered on your Lightsail instance.

First, it's important to note that Lightsail instances come with a built-in firewall that allows you to control traffic to your instance. Since you mentioned that the firewall is configured correctly and port 22 (SSH) is working, the issue may not be related to the Lightsail firewall itself.

The fact that ports 80 (HTTP) and 443 (HTTPS) are closed while port 22 is open suggests that there might be an issue with your web server configuration or a security software running on your instance that has blocked these ports.

Regarding the Netcraft warnings about potential malware, it's crucial to investigate these claims. Even if the file is a legitimate Visual C++ redistributable, it's possible that it has been flagged as potentially malicious by some security scanners. This doesn't necessarily mean AWS has taken action, but it's worth addressing to ensure your website's security and reputation.

To troubleshoot this issue:

  1. Connect to your instance via SSH (since port 22 is working) and check your web server logs for any error messages or unusual activity.
  2. Verify that your web server (e.g., Apache or Nginx) is running correctly.
  3. Check if any security software or intrusion detection system on your instance might have blocked these ports.
  4. Review your recent changes or updates to the instance that might have affected the web server configuration.
  5. Scan your website files for potential malware or compromised files.

If you can't resolve the issue after these steps, it would be advisable to contact AWS Support for further assistance. They can provide more specific guidance based on your account and instance details.

Remember, AWS typically communicates with customers about security or compliance issues, so if they had taken action against your instance, you would likely have received a notification.
Sources
Lightsail instance stopped to be reacheable from internet | AWS re:Post
Virtual Private Server and Web Hosting – Amazon Lightsail Features– Amazon Web Services
Community | Securing Wordpress on Lightsail: Lock Down Your Server

answered 2 years ago

EXPERT

reviewed 2 years 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.