Binding qBittorrent to an interface
The first step is to bind qBittorrent to the Mullvad network interface to prevent it from leaking your IP in some situations.
Windows
- Start the Mullvad app and connect to a location.
- Open qBittorrent.
- Click on Tools > Options… > Advanced.
- Change Network interface to Mullvad.
- Click on OK.
- Click on File > Exit and then start qBittorrent again.
- Continue with the steps in the next section.
Linux
- Start the Mullvad app and connect to a location.
- Open qBittorrent.
- Click on Tools > Preferences > Advanced
- Change Network interface to one of the following depending on the app and protocol you are using: – Mullvad app using OpenVPN: tun0 – Mullvad app using WireGuard kernel: wg-mullvad – Mullvad app using WireGuard userspace: tun0 – WireGuard standalone: mlvd-xx – OpenVPN standalone: tun0
- Click on OK.
- Click on File > Exit and then start qBittorrent again.
- Continue with the steps in the next section.
macOS
- Start the Mullvad app and connect to a location.
- Open the Terminal app.
- Run the command
ifconfig | grep -A 2 utun - Check which utun interface Mullvad is using by looking for the internal IP “inet 10.x.x.x”.
- Open qBittorrent.
- Click on the Preferences button on the toolbar.
- Click on Advanced.
- Change Network interface to the utun interface you found above.
- Click on OK.
- Click on the qbittorrent main menu > Quit qbittorrent and then start qBittorrent again.
- Continue with the steps in the next section.
Recommended qBittorrent settings
- Click on Tools.
- Click on Options (in Windows) or Preferences (in Linux and macOS)
- Click on BitTorrent.
- Check Enable anonymous mode.
- Uncheck (disable) Enable DHT.
- Uncheck (disable) Enable PeX.
- Uncheck (disable) Enable Local peer discovery.
- Click on Connection.
- For Peer connection protocol, use the drop-down menu to select TCP.
Mullvad app settings
If you use the Mullvad desktop app then go to Settings > Advanced and enable “Always require VPN”. This will block your Internet if you disconnect it by mistake.
Check for leaks
Go to the Mullvad Connection check page and click on the Torrent check tab. Click on the UDP and HTTP buttons to launch the tests. Note that this test does not work if you use SOCKS5 in the Bittorrent client.
Port forwarding
Read our Port forwarding guide if you want to set up a port forward to the Bittorrent client. This should improve your seeding. Add the port in qBittorrent > Connection > “Port used for incoming connections”. Note that this does not work with SOCKS5 enabled.
Troubleshooting
When I have enabled the SOCKS5 proxy with qBittorrent, why is the torrent shown as offline?
The SOCKS5 protocol does not support port forwarding, so if you use trackerless torrents, you might need to have DHT enabled. Otherwise, you might need to disable the SOCKS5 proxy.
qBittorrent shows the status as Stalled
If you use our SOCKS5 proxy then you will need to change the IP-address depending on if you use WireGuard or OpenVPN, and restart qBittorrent.
qBittorrent for Linux shows the status as Stalled
If you switch between WireGuard and OpenVPN you will need to re-bind the network interface and restart qBittorrent.
Leave a Reply