Page 1 of 1

Route a subnet except an IP to the tunnel

Posted: Fri Aug 25, 2017 5:16 am
by julienmru
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 :)

Re: Route a subnet except an IP to the tunnel

Posted: Fri Aug 25, 2017 1:06 pm
by TinCanTech
See --redirect-gateway in The Manual v24x