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

Compare OpenVPN, WireGuard and IPsec for different uses.

IntermediateScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → Different strengths, maturity and operational cost.

What I'd do →

  1. IPsec/IKEv2 is the standard for site-to-site between devices from different vendors, and native in clouds
  2. OpenVPN works over TCP or UDP 443 and passes restrictive firewalls, with certificate-based auth
  3. WireGuard is the simplest and fastest, UDP only, minimal config
  4. Choose IPsec for cloud gateways, WireGuard for user or node mesh, and OpenVPN where only 443/TCP is open
  5. Verify with openvpn --version, wg --version, ipsec --version

Why → Pick by interoperability and network constraints, not by benchmark.

Interview tip → Say WireGuard's small codebase is easier to audit.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN