Lesson 8 of 10
Secure Network Architecture Design
Designing a secure network from scratch requires applying all the principles covered in this module into a coherent architecture. Defense in depth, segmentation, and the principle of least privilege guide every design decision.
Enterprise Network Security Architecture
# Complete enterprise network security architecture
INTERNET
|
[BGP Router + DDoS Scrubbing] ← ISP-level protection
|
[Edge Firewall - NGFW] ← Perimeter control, IPS
|
[DMZ VLAN 100]─────────────────────────────────────────
│ Web servers (nginx, Let's Encrypt)
│ API Gateway (Kong, AWS API Gateway)
│ WAF (ModSecurity, Cloudflare)
│ Mail relay (Postfix + spam filtering)
│ Bastion host (SSH jump server)
|
[Internal Firewall - NGFW] ← Inter-zone control
|
┌──────────────────────────────┐
│ Internal Network │
│ │
│ [App VLAN 200] │
│ Application servers │
│ Internal APIs │
│ │
│ [Data VLAN 300] │
│ PostgreSQL (encrypted) │
│ Redis (auth required) │
│ S3-compatible object store │
│ │
│ [User VLAN 400] │
│ Employee workstations │
│ 802.1X port authentication │
│ │
│ [Management VLAN 500] │
│ Network devices (SSH/HTTPS) │
│ SIEM, monitoring │
│ Allowed: Admin IPs only! │
│ │
│ [IoT VLAN 600] │
│ Cameras, printers, sensors │
│ Internet only (no internal) │
└──────────────────────────────┘Cloud Network Security (AWS VPC)
# AWS VPC - Cloud network segmentation
VPC: 10.0.0.0/16
Public Subnets (internet-accessible via IGW):
10.0.1.0/24 us-east-1a → Load balancer, NAT Gateway
10.0.2.0/24 us-east-1b → Load balancer (multi-AZ HA)
Private Subnets (no direct internet access):
10.0.11.0/24 us-east-1a → Application servers (EC2)
10.0.12.0/24 us-east-1b → Application servers (EC2)
Data Subnets (RDS subnet group - most restricted):
10.0.21.0/24 us-east-1a → RDS PostgreSQL
10.0.22.0/24 us-east-1b → RDS PostgreSQL (standby)
Security Groups (AWS stateful firewalls - per-resource):
alb-sg: ingress 80,443 from 0.0.0.0/0
app-sg: ingress 8080 from alb-sg only
db-sg: ingress 5432 from app-sg only (NOT from alb-sg or 0.0.0.0/0)
NACLs (Network ACLs - stateless, subnet-level):
Data subnet NACL:
ALLOW TCP 5432 from 10.0.11.0/24 inbound
ALLOW TCP 5432 from 10.0.12.0/24 inbound
DENY ALL other inbound
VPC Flow Logs → CloudWatch → SIEM (all traffic logged)
AWS Config → Continuous compliance monitoring
GuardDuty → ML-based threat detectionCommon Mistakes
- Designing security architecture after the application is built - security as an afterthought is far more expensive and less effective than security-by-design
- Public subnets for databases - RDS instances should only be in private subnets with no internet gateway route; never require a public IP for a database
- Single availability zone for security infrastructure - firewall, SIEM, and VPN should be deployed redundantly across multiple AZs/locations; a security appliance outage should not create an outage or security gap
Tip
Tip
Practice Secure Network Architecture Design in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.
The foundational security model: Confidentiality (privacy), Integrity (trust), and Availability (uptime).
Practice Task
Note
Practice Task - (1) Write a working example of Secure Network Architecture Design from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.
Quick Quiz
Common Mistake
Warning
A common mistake with Secure Network Architecture Design is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready cybersecurity code.
Key Takeaways
- Designing a secure network from scratch requires applying all the principles covered in this module into a coherent architecture.
- Designing security architecture after the application is built - security as an afterthought is far more expensive and less effective than security-by-design
- Public subnets for databases - RDS instances should only be in private subnets with no internet gateway route; never require a public IP for a database
- Single availability zone for security infrastructure - firewall, SIEM, and VPN should be deployed redundantly across multiple AZs/locations; a security appliance outage should not create an outage or security gap
Finished this lesson?