Skip to content

Instantly share code, notes, and snippets.

@VVispy
Last active August 5, 2025 05:31
Show Gist options
  • Save VVispy/765c6723436f386ef113040f8fc968b8 to your computer and use it in GitHub Desktop.
Save VVispy/765c6723436f386ef113040f8fc968b8 to your computer and use it in GitHub Desktop.
VPN Binding Guide

Bind VPN to Torrent Client Guide

VPN killswitches aren't always reliable. The best way to avoid exposing your IP address is by binding the VPN network interface to your torrent client. This ensures that downloads/uploads occur only while the VPN tunnel is active, reducing the chance of leaks to virtually zero.

Requirements:
A torrent client that supports network interface binding, such as:

This guide focuses on qBittorrent. Method is similar for other clients.

Method (All OSes)

  1. Open qBittorrent. Go to Preferences → Advanced tab.
  2. Note any changes in the Network Interface list when you connect/disconnect your VPN (you may need to restart qBittorrent to refresh the list).
  3. Select the interface that appears/disappears when toggling the VPN — this is the VPN tunnel interface.
  4. Click Apply.
  5. Restart qBittorrent.

OS-Specific Instructions

Windows

  1. Start the VPN and connect to a location.
  2. Open qBittorrent, go to Preferences → Advanced tab.
  3. Change Network Interface to the one labeled with your VPN name (e.g., Mullvad). Click Apply.
  4. Right-click the qBittorrent icon in the system tray. Click Exit. Reopen qBittorrent.

macOS

  1. Start the VPN and connect to a location.
  2. Open the Terminal (Applications/Utilities).
  3. Run the following command:
    ifconfig | grep -A 2 utun
  4. Identify the utun interface with an IP that starts with inet 10. (e.g., utun3).
  5. Open qBittorrent, go to Preferences → Advanced tab.
  6. Set Network Interface to the utun interface found in step 4. Click Apply.
  7. Right-click the qBittorrent Dock icon, click Quit. Reopen qBittorrent.

Note

The utun interface may change if you reboot or reconnect to the VPN.


Linux

  1. Start the VPN and connect to a location.
  2. Open qBittorrent, go to Preferences → Advanced tab.
  3. Set the Network Interface to one of the following (depending on your VPN and protocol):
  • Mullvad (OpenVPN via app): tun0
  • Mullvad (WireGuard via kernel): wg-mullvad
  • Mullvad (WireGuard via userspace): tun0
  • WireGuard (standalone): mlvd-xx
  • OpenVPN (standalone): tun0
  1. Click Apply.
  2. Right-click the qBittorrent icon in the tray. Click Exit. Reopen qBittorrent.

How to Test

Download any legal torrent such as Ubuntu and load it into qBittorrent.

  • If binding is correct, the download will only start when the VPN is active.
  • If disconnected from the VPN, nothing should download — confirming the binding is working.

Recommended VPNs

FMHY VPN Section


Credits

Original guide written by Daiqo. Proudly backed by FMHY

@SHJordan
Copy link

SHJordan commented Aug 1, 2025

Can you make one follow-up for Adguard VPN on Windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment