Route a subnet except an IP to the tunnel
Posted: Fri Aug 25, 2017 5:16 am
Dear all,
My OpenVPN public IP is 1.2.3.4, and I'd like to route 1.2.3.0/24 to the OpenVPN tunnel. If I do this, OpenVPN stops working because 1.2.3.4 is also being routed on the VPN. Of course I can split my subnet in smaller chunks, but I was wondering if there's a way to push a configuration telling the client to route 1.2.3.4 via its default gateway and not via the VPN.
Thanks for sharing your ideas
My OpenVPN public IP is 1.2.3.4, and I'd like to route 1.2.3.0/24 to the OpenVPN tunnel. If I do this, OpenVPN stops working because 1.2.3.4 is also being routed on the VPN. Of course I can split my subnet in smaller chunks, but I was wondering if there's a way to push a configuration telling the client to route 1.2.3.4 via its default gateway and not via the VPN.
Thanks for sharing your ideas