Below is a detailed, easy-to-understand user guide on how to open the firewall ports for SSH, HTTP, and HTTPS on an AWS Lightsail instance.
Purpose:
• Open the SSH port (22) to securely connect to the server remotely.
• Open the HTTP port (80) to allow access to your website using the standard HTTP protocol.
• Open the HTTPS port (443) to allow secure, encrypted access to your website.
Requirements:
• You have an AWS account and have already created a Lightsail instance.
• You are logged into your AWS account.
Step-by-Step Instructions:
Step 1: Log in to AWS Lightsail
-
Open your web browser and go to the Lightsail console: https://lightsail.aws.amazon.com/
-
Log in with your AWS credentials.
Step 2: Select Your Instance
-
Once logged in, you will see a list of your Lightsail instances.
-
Click on the name or icon of the instance where you want to open the ports.
Step 3: Go to the Networking Section
-
On the instance detail page, look for the top navigation tabs.
-
Click on the “Networking” tab to access the networking and firewall settings.
Step 4: Add Firewall Rules
-
Scroll down to find the “Firewall” section.
-
You will see an area where you can add new rules by clicking “Add another” or a similar button.
Step 5: Add the SSH Port (22)
-
Click “Add another”.
-
From the dropdown list, if available, select “SSH.” Otherwise, select “Custom” and manually enter the port number 22.
-
Click “Save” or the corresponding button to save the rule.
Step 6: Add the HTTP Port (80)
-
Click “Add another” again.
-
From the dropdown list, choose “HTTP” if it’s available. If not, select “Custom” and enter 80 in the port range.
-
Click “Save” to save the rule.
Step 7: Add the HTTPS Port (443)
-
Click “Add another” once more.
-
Select “HTTPS” from the list. If not listed, choose “Custom” and enter 443.
-
Click “Save” to finalize the rule.
Step 8: Verify and Complete
-
After adding the three ports—22, 80, and 443—double-check that all rules appear correctly.
-
Lightsail will automatically apply the changes; no further configuration is needed.
Result:
You have successfully opened the SSH (22), HTTP (80), and HTTPS (443) ports on your AWS Lightsail instance. You can now:
• Connect to the server via SSH on port 22.
• Access your website at http://your-server-ip via port 80.
• Access your website securely at https://your-server-ip via port 443.
That’s it! With just a few steps, you’ve configured the firewall to allow the necessary ports for SSH, HTTP, and HTTPS on AWS Lightsail.