Split Tunnel and Split Traffic
How to configure it, “Server Configuration” or “Client Configuration” ?
Answer is “Client Configuration / Client Profile”.
If you want to only access your Company LAN(10.10.1.0/24, 172.172.1.0/24) via VPN gateway, please add the configuration,
Source: https://forums.openvpn.net/viewtopic.php?t=8229#p12601
Environment:
- OpenVPN 2.4.9
- Ubuntu 18.04
How to configure it, “Server Configuration” or “Client Configuration” ?
Answer is “Client Configuration / Client Profile”.
How to configure Client Profile(.ovpn)?
If you want to access your Home LAN(192.168.1.0/24), and you don’t want to route the Internet via VPN gateway. Please add the configuration,
route 192.168.1.0 255.255.255.0 net_gateway
If you want to only access your Company LAN(10.10.1.0/24, 172.172.1.0/24) via VPN gateway, please add the configuration,
Code:
route-nopull
route 10.10.1.0 255.255.255.0 vpn_gateway
route 172.172.1.0 255.255.255.0 vpn_gateway
Source: https://forums.openvpn.net/viewtopic.php?t=8229#p12601