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 →
- On OpenVPN push specific routes only:
push "route 10.0.0.0 255.0.0.0"and do not pushredirect-gateway def1 - On WireGuard set
AllowedIPs = 10.0.0.0/8in the client peer, not0.0.0.0/0 - Push internal DNS only for internal domains (split DNS)
- Test with
ip route get 8.8.8.8andip route get 10.1.2.3from 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.
More on Addressing, CIDR & Routing
You own 10.0.0.0/16 for a new VPC and need separate /24 subnets for dev, QA and prod across two AZs. How do you carve it up?BeginnerA host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?BeginnerHow many usable IPs does an AWS subnet of /28 have?BeginnerA route table has 10.0.0.0/16 -> local and 10.0.1.0/24 -> vpn-gw. Where does a packet to 10.0.1.5 go?BeginnerA newly built server can ping everything in its subnet but nothing outside. What is the first thing you check?BeginnerYou are picking a private range for a new company network. Which RFC 1918 range do you choose and why?Beginner