Network rules: let visitors in, keep administration restricted
A security group behaves like a virtual firewall. It controls which network traffic is allowed to reach the instance.
Understand the Required Inbound Rules
Security groups default to blocking all inbound traffic. We must explicitly define which ports to open, who may connect, and why:
| Rule | Port | Source | Why |
|---|---|---|---|
| SSH | TCP 22 | My IP / approved administration network | Lets the administrator connect to the Linux server securely via terminal. |
| HTTP | TCP 80 | Anywhere IPv4 (0.0.0.0/0) | Lets public visitors open the workshop website in their web browser. |
Opening HTTP access to the internet is intentional for this basic public website exercise. Administrative access is completely different and should remain restricted. Where the assigned environment uses IPv6, the instructor will determine whether an additional HTTP IPv6 rule (::/0) is required.
Keep SSH port 22 restricted to My IP or the approved administration network. Do not use 0.0.0.0/0 for SSH just because it is easier.
If your local network changes and SSH stops working, verify your current IP and update the security group rule rather than making SSH accessible to the entire internet.
Step 3 — Configure networking
Follow these sequential actions in the EC2 Console Network Settings panel:
- 1In the EC2 launch page, choose Create security group (or select the workshop-designated group).
- 2Configure an inbound rule for SSH on TCP port 22, restricted to your IP address (select My IP) or the organiser-approved administration network.
- 3Configure an inbound rule for HTTP on TCP port 80, with source
0.0.0.0/0(Anywhere IPv4) for this public website exercise. - 4Ensure the selected subnet and route configuration support public IPv4 assignment (
Auto-assign public IP: Enable). - 5Follow the organiser's specific instructions if using a preconfigured VPC, subnet, or shared security group. Do not modify unrelated networking resources in a shared training account without permission.
Step 4 — Launch and confirm instance readiness
Once your instance launches, confirm that it passes AWS baseline hardware and software health checks before attempting an SSH connection:
- 1Review all instance settings, key pair, and firewall rules in the summary panel, then click Launch instance.
- 2Open the EC2 Instances console page and select your newly launched server.
- 3Wait for the Instance state to transition from Pending to Running.RUNNING
- 4Wait 1–2 minutes until Status check reports 2/2 checks passed.STATUS CHECKS PASSED
- 5Locate and copy the Public IPv4 address in the instance details tab. Keep this address available for SSH and the website verification.PUBLIC IPV4 AVAILABLE
If the Public IPv4 address is blank, your instance was launched into a subnet without public auto-assignment enabled. Ask your workshop mentor for the designated subnet.
Capture the inbound rules table showing SSH 22 restricted to My IP and HTTP 80 open to public IPv4 traffic. Then capture the Instances view showing the instance as Running, passed status checks, and its public IPv4 address. Blur account IDs and remove any sensitive information before sharing.
SSH 22: restricted • HTTP 80: public
Running • Status checks passed • Public IPv4
