How do I bypass my VPN when making requests to IPs in my local network?
I have L2TP VPN connection on my Ubuntu laptop and I want to connect to a server in my local network. How do I do so by bypassing the VPN connection?
The solution was to modify the routing table in such a way that IPs in local network are routed via the default gateway:
sudo ip route add 10.11.0.0/16 via 10.66.157.1
Where 10.66.157.1
is the default gateway in my routing table. I found it via the command ip route
.