How to open the server ports for remote access?

NOTE: For servers launched through the Bitnami Launchpad for AWS Cloud, select the cloud server you wish to modify from the Bitnami Launchpad and click the "Manage in the AWS Cloud Console" button to access the AWS EC2 dashboard. If the server was launched using Amazon Lightsail, ports should be modified through the Amazon Lightsail dashboard instead.

Using the AWS Console

To close a server port and deny remote access on that port, follow these steps:

  • Select the instance in the dashboard.
  • In the lower panel, click the name of the security group used by the instance.

    Security group selection

  • The resulting page will display the details of the selected security group. In the lower panel, select the "Inbound" tab to display a list of all the ports allowing inbound traffic.

  • Click the "Edit" button.

    Security group configuration

  • In the resulting dialog, click the cross next to the security rule for the port(s) you wish to close. This will delete the security rule, thereby denying inbound traffic on that port

    Firewall rule deletion

  • Click the "Save" button to save your changes.

Your security rule comes into effect immediately without any need to restart the server.

Using Amazon Lightsail

To close a server port and deny remote access on that port, follow these steps:

  • Log in to the AWS Console.ยท
  • From the Amazon Web Services menu, select the Lightsail service and choose the server you wish to obtain credentials for.
  • On the server detail page, click the "Networking" tab.
  • In the "Firewall" section, click the "Edit rules" link.
  • Click the cross next to the firewall rule for the port(s) you wish to close. This will delete the security rule, thereby denying inbound traffic on that port.

    Amazon Lightsail security configuration

  • Click the "Save" link to save your changes.

Your security rule comes into effect immediately without any need to restart the server.