Interview Prep/Networking/Security: Firewalls, SGs, NACLs & VPN

You need to allow outbound traffic only to specific domains from a private subnet. How?

IntermediateScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → Security groups work on IPs and cannot do domain names.

What I'd do →

  1. Use AWS Network Firewall with a stateful domain list rule group (allow .github.com, .amazonaws.com, default deny)
  2. Or a proxy (Squid) allow-listing domains and set HTTPS_PROXY
  3. Route private subnets through the firewall endpoint
  4. Look at alert and flow logs for blocked domains and tune
  5. Note that it inspects SNI, so ECH or domain fronting reduces visibility

Why → Domain filtering needs a device that reads SNI or Host headers.

Interview tip → Say you start in alert mode before deny.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN