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

Design network microsegmentation for a platform with 200 services.

AdvancedScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → Thousands of SG rules can't be hand-managed; you need identity or label based policy.

What I'd do →

  1. Use Kubernetes NetworkPolicies with default-deny per namespace, then allow by labels
  2. Use Cilium or Calico for L3/L4 and L7 policy, and identity-based rules
  3. Add a mesh for mTLS and authorization policies by service identity
  4. Outside Kubernetes use SGs referencing SGs per service
  5. Observe actual flows with Hubble or flow logs before enforcing
  6. Roll out in audit mode

Why → Policy by identity survives IP churn; policy by IP does not.

Interview tip → Say you observe first, enforce second.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN