Repository navigation
|
I've searched everywhere. This doesn't seem like a rare option people look for. When i cant to the openvpn server on linux I cant access my local LAN's I have a pretty large internal network. The ones i dont want to go though the vpn is 10.11.11.0/24 10.12.12.0/24 plus more but no need to list them all only showing i have multi networks. Yes this a new account ive lost access to my slowz account. lost 2fa. |
Replies: 2 comments 1 reply
|
This depends on which LANs you mean, but for the usual case where 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
If you do not want a full tunnel at all, use this instead: pull-filter ignore "redirect-gateway"Then only explicitly pushed/added VPN routes will go through the tunnel. Different case: if those networks are behind the VPN server, or behind another VPN client, then the fix is server-side routing/firewalling plus pushed routes, not If that solves it, please mark the answer so the route-exception pattern is easy to find later. |
|
Thank you yes its the client side. I only want the vpn to send web traffic over the vpn. |
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:
net_gatewaymeans "use the normal gateway that existed before…