Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide: Difference between revisions
| Line 33: | Line 33: | ||
===== Why this approach works ===== | ===== Why this approach works ===== | ||
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL's are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the "deny all" rule. SSH access to these servers must be performed through SSM. | Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL's are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the "deny all" rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]]. | ||
Revision as of 04:14, 5 November 2026
Core Concepts
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential.
High level network design
[Internet]
|
[IGW]
|
+------ Public subnet ---+
| |
[NAT GW] [Webserver]
| | |
+---+- Private Subnet ---+ +---[Gateway]
|
[Private server]
Securing the web server
Securing the public subnet
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.
What to include:
- Inbound:
- Port 80 / 443 inbound for HTTP / HTTPS requests
- Port 1024 - 65535 - Empirical
- Deny all other inbound ports
- Outbound:
- All traffic - allow
Why this approach works
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL's are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the "deny all" rule. SSH access to these servers must be performed through SSM.