# Split Tunneling on Any VPN (Wireguard)

By
guyman

This guide can be used to achieve whitelist split tunneling on any Wireguard VPN. Most VPNs will provide you with a wireguard config or have some sort of method to extract one.

# Required

  1. WireSockUI
  2. Torrent Client (qBittorrent preferred)
  3. Your provider's wireguard .conf file

# Steps

  1. Download WireSockUI. Extract the exe and config file to a folder where it wont be deleted by accident

  2. Run the program

  3. Click the settings icon around the bottom middle of the window

  4. In settings, enable Virtual Network Adapter mode and click save

  5. Now click Add Tunnel (bottom left). Browse for your VPN configuration file

  6. Select your configuration and click Edit at the bottom right of the window

  7. A text file should open. Add AllowedApps = qbittorrent to the bottom of this file, then click Save. If you would like to add more programs, add a comma and a space. For example, AllowedApps = qbittorrent, firefox image 7a. If instead of whitlisting only qBittorrent, you would prefer blacklisting other applications, for example have everything route through the VPN except the browser, you can instead use something like DisallowedApps = firefox or DisallowedApps = chrome

  8. Activate the tunnel

At this point, you should be torrenting through the VPN as long as WireSockUI is running and Activated. However, you may be concered about accidentally disabling the VPN while a torrent is running. To fix this, we can change a setting in qBittorrent.

  1. Open qBittorrent settings
  2. On the left hand bar, click Advanced
  3. Look for Network Interface. The default setting is Any Interface
  4. Expand the drop down. If you are lucky, the correct interface will be Local Area Connection. If you have more than one Local Area Connection, continue on. If you don't, skip to step 8
  5. Press Windows + R key together. Paste in ncpa.cpl
  6. In the window that shows up, you should see all your network adapters, including virtual ones. Find the one that says WireSock Virtual Adapter on the third line. Write down it's name, or rename it to WireSock image
  7. Back in qBittorrent, look at Network Interface. You may have to close and open the settings window if you renamed the adapter to WireSock
  8. Set Network Interface to WireSock or Local Area Network x or whatever other name you wrote down image
  9. Hit Apply then OK

You should be properly configured now. If you would like to test your configuration, continue on.

# Testing split tunneling

  1. Go to ipleak.net
  2. At the top, you should see your home ip address. Remember this
  3. Scroll down to Torrent Address detection. Click Activate
  4. Click the this Magnet Link button and add the torrent to qbittorrent
  5. Wait a few minutes. ipleak should show some ip addresses under the torrent section
  6. Compare both the IPv4 and IPv6 that show up to the ones that show at the top for your home IP. If it is different, congratulations! You have successfully set up split tunneling!
    image
    image