Skip to content
Discussion options

You must be logged in to vote

This depends on which LANs you mean, but for the usual case where 10.11.11.0/24, 10.12.12.0/24, etc. are on the client side and should stay local, do it in the client .ovpn, not by changing the server install script.

This installer pushes a full-tunnel route:

push "redirect-gateway def1 bypass-dhcp"

That makes the VPN add broad default routes, so your local/private networks can end up trying to go through the VPN unless you add more specific exceptions.

For a few local LANs that must stay outside the VPN, add these lines to the client profile:

route 10.11.11.0 255.255.255.0 net_gateway
route 10.12.12.0 255.255.255.0 net_gateway

net_gateway means "use the normal gateway that existed before…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by arslowz
Comment options

You must be logged in to vote
1 reply
@yudin-s
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants