Port remains closed on LightSale VM (inspite of Firewall Rule being present)

0

On my new Lightsale VM, I am trying to install an application (Mailstore Server) that requires port 80 to be open. Port 80 is configured as default but attempts to connect with a tool like the following one fails with "port 80 closed".

https://www.yougetsignal.com/tools/open-ports https://portchecker.co/checking

I have tried removing the rule, and adding it again, but the port remains closed and the application installation fails because of it.

I cannot reach out to Support as I am trialling this on the Basic License. This will be a deal-breaker if I cannot get it working.

Interestingly, I am able to RDC onto the Server, so the default firewall rule for 3389 is working okay! Just not port 80.

Any ideas anyone?

질문됨 10달 전224회 조회
2개 답변
0

Is the Lightsail OS Windows?
If the firewall settings in the following document for Lightsail are OK, you may want to check your Windows firewall settings.
https://lightsail.aws.amazon.com/ls/docs/en_us/articles/understanding-firewall-and-port-mappings-in-amazon-lightsail

Otherwise, check to see if Lightsail is listening on port 80 in the first place.
For example, the following command can be executed at the command prompt to check if port 80 is in use.

netstat -nao | find "80"
profile picture
전문가
답변함 10달 전
  • Thanks for the speedy reply Riku. Yes the Lightsail OS is Windows Server 2022 Standard. The Firewall settings are okay as I am trying to use one of the defaults (HTTP - TCP - 80 - all IP addresses).

    When I run the above netstat command, I get this:

    Microsoft Windows [Version 10.0.20348.1787] c:\users\Administrator\netstat -nao | find "80"

    TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING 1180 TCP [::]:49667 [::]:0 LISTENING 1180 TCP [{Ipv6 address} [2001:{macaddress]:80 TIME_WAIT 0 UDP 127.0.0.1:64919 127.0.0.1:64919 1180

    see here for screenshot: https://www.screencast.com/t/p29AhyDI4

    It appears the only reference to port 80 is against the MAC address, and that states "TIME_WAIT".

    I dont understand these results, or why port 80 remains closed on this new Lightsale Windows Server?

  • At any rate, I've found that it's not the firewall as the cause of my inability to connect. It appears that port 80 is not listening well. I'm not very familiar with MailStore Server, but I'm wondering if there is a problem with the configuration.

  • Is this explanation relevant? I thought that access via HTTP was not supported. https://www.mailstore.com/en/products/mailstore-server/changelog/

    This release fully removes the support for establishing unencrypted connections to MailStore Server. This also includes the HTTP-to-HTTPS redirect option, which must be considered insecure without the use of properly configured HTTP Strict Transport Security (HSTS).

0

Thanks for the responses everyone. I resolved this by creating a new Instance, this time using a build of Server 2019. The setup of Mailstore on this OS was text-book (ports were opened successfully during the install and the application installed without issue). Incidentally, I tried resetting Windows Defender back to defaults on the original Server 2022 and this took the instance down completely! Thereafter I was unable to connect to it at all (received the error "remote server has closed the connection because your instance is taking too long to respond"). Stopping and starting the VM made no difference, so I trashed it and plan to stick with 2019 instead.

답변함 10달 전

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

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

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