How Can We Help?

Create a Split Tunnel in OpenVPN

To create a split tunnel in OpenVPN client and route specific websites and services outside of the VPN you have to edit your OpenVPN configuration file. In this example we will route outside of the VPN connection. Please follow these steps:

  1. Fetch a new configuration profile or open your existing OpenVPN configuration file (.ovpn) using a text editor.
  2. Locate the line starting with “redirect-gateway” and comment it out by adding a “#” at the beginning of the line. This line is responsible for redirecting all traffic through the VPNUK connection.
  3. Add the following lines to the configuration file:
   route net_gateway

The “route-nopull” line prevents OpenVPN from automatically adding routes to the routing table. The “route” line specifies that traffic to should be routed through your default gateway instead of the VPNUK connection.

  1. Save the configuration file.
  2. Restart the OpenVPN to apply the changes.

With these changes, when you connect to the VPN, all traffic except for will be routed through the VPNUK connection. Traffic to will be sent directly through your regular internet connection outside of the VPN.

Table of Contents