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
Route a subnet except an IP to the tunnel
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Fri Aug 25, 2017 5:14 am
-
- OpenVPN Protagonist
- Posts: 11136
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Route a subnet except an IP to the tunnel
See --redirect-gateway in The Manual v24x