Interview Prep/Networking/Addressing, CIDR & Routing

Remote engineers should reach only 10.0.0.0/8 through the VPN and use their own internet for everything else. How do you configure that?

IntermediateScenarioAddressing, CIDR & Routing
Answer

Situation read → This is a split-tunnel design and the details differ per VPN type.

What I'd do →

  1. On OpenVPN push specific routes only: push "route 10.0.0.0 255.0.0.0" and do not push redirect-gateway def1
  2. On WireGuard set AllowedIPs = 10.0.0.0/8 in the client peer, not 0.0.0.0/0
  3. Push internal DNS only for internal domains (split DNS)
  4. Test with ip route get 8.8.8.8 and ip route get 10.1.2.3 from the client

Why → AllowedIPs in WireGuard and pushed routes in OpenVPN decide which destinations enter the tunnel.

Interview tip → Mention the trade-off: split tunnel saves bandwidth but internet traffic is not inspected by corporate security.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing