#
Split Tunneling on Any VPN (Wireguard)
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
- WireSockUI
- Torrent Client (qBittorrent preferred)
- Your provider's wireguard .conf file
#
Steps
Download WireSockUI. Extract the exe and config file to a folder where it wont be deleted by accident
Run the program
Click the settings icon around the bottom middle of the window
In settings, enable
Virtual Network Adapter mode
and click saveNow click Add Tunnel (bottom left). Browse for your VPN configuration file
Select your configuration and click Edit at the bottom right of the window
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
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 likeDisallowedApps = firefox
orDisallowedApps = chrome
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.
- Open qBittorrent settings
- On the left hand bar, click Advanced
- Look for
Network Interface
. The default setting isAny Interface
- Expand the drop down. If you are lucky, the correct interface will be
Local Area Connection
. If you have more than oneLocal Area Connection
, continue on. If you don't, skip to step 8 - Press Windows + R key together. Paste in
ncpa.cpl
- 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 - Back in qBittorrent, look at
Network Interface
. You may have to close and open the settings window if you renamed the adapter to WireSock - Set
Network Interface
toWireSock
orLocal Area Network x
or whatever other name you wrote down - Hit Apply then OK
You should be properly configured now. If you would like to test your configuration, continue on.
#
Testing split tunneling
- Go to ipleak.net
- At the top, you should see your home ip address. Remember this
- Scroll down to
Torrent Address detection
. Click Activate - Click the
this Magnet Link
button and add the torrent to qbittorrent - Wait a few minutes. ipleak should show some ip addresses under the torrent section
- 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!