Skip to content

Commit

Permalink
fix(splittunneling): markdown lint errors and embed image (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric authored Nov 2, 2023
1 parent 97fd2aa commit 13c52df
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
Binary file added docs/static/tutorials/wireguard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 24 additions & 18 deletions docs/tutorials/splittunnel.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
---
label: Split Tunneling
description: Split tunneling on any Wireguard VPN
image: /static/tutorials/wireguard.png
author:
name: "guyman"
avatar: https://github.com/Snaacky/thewiki/assets/78981416/2045b3c7-90a5-40ce-9d81-a81baa421227
---

# 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.

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](https://github.com/wiresock/WireSockUI/releases)

1. [WireSockUI](https://github.com/wiresock/WireSockUI/releases)
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.

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.
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](https://github.com/guyman624/thewiki/assets/82007920/d2ba5e4f-ecdd-422e-b645-dd8d76635861)
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`.
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](https://github.com/guyman624/thewiki/assets/82007920/d2ba5e4f-ecdd-422e-b645-dd8d76635861)
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

Expand All @@ -31,22 +36,23 @@ At this point, you should be torrenting through the VPN as long as WireSockUI is
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.
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](https://github.com/guyman624/thewiki/assets/82007920/f17e1c3c-1ca8-4d3d-b98b-edce36b5b6da)

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](https://github.com/guyman624/thewiki/assets/82007920/5125b8de-309c-425a-b1a0-70ca1b775081)

9. Hit Apply then OK.
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](https://github.com/guyman624/thewiki/assets/82007920/f17e1c3c-1ca8-4d3d-b98b-edce36b5b6da)
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](https://github.com/guyman624/thewiki/assets/82007920/5125b8de-309c-425a-b1a0-70ca1b775081)
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](https://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.

1. Go to [ipleak.net](https://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](https://github.com/guyman624/thewiki/assets/82007920/c2ceef0d-5858-4dcd-b951-0c73bfc7e4e7)

0 comments on commit 13c52df

Please sign in to comment.