How to set qBittorrent to only use your VPN (kill switch)
To set qBittorrent to only use your VPN, bind it to the VPN's network adapter. Open Tools > Options > Advanced, set "Network interface" to the VPN adapter instead of "Any interface", click Apply and restart qBittorrent. If the VPN drops, the adapter disappears and qBittorrent stops all transfers, which works as a built-in kill switch.
This guide covers how to find the right adapter name on Windows, macOS and Linux, how to set the binding, how to test that the kill switch really blocks traffic, and how it compares to a VPN app's own kill switch. The examples assume legal use, such as downloading Linux ISOs, open-licensed media or sharing your own files.
What the qBittorrent kill switch does

The qBittorrent kill switch is not a separate feature but a side effect of interface binding: the client sends and receives torrent traffic only through the network interface you pick. The official qBittorrent options documentation describes "Network interface" (default: Any interface) as the setting that limits which interface is used to send and receive data on systems with more than one connection.
When the VPN is connected, its virtual adapter exists and qBittorrent works normally. When the VPN disconnects, that adapter goes away or loses its address, and qBittorrent has no permitted route left. Transfers stall instead of falling back to your regular connection and exposing your real IP address to peers.
The same setting is useful outside VPNs. You can, for example, restrict torrent traffic to Ethernet so that downloads never run over a metered Wi-Fi or mobile hotspot connection.
How to find your VPN adapter name
The VPN adapter name is what you select in qBittorrent, so identify it first while the VPN is connected.
- Windows: press Windows-R, type ncpa.cpl and press Enter. The Network Connections window lists every adapter. The VPN adapter usually carries the VPN provider's name, "WireGuard" or "TAP-Windows Adapter" in its description. You can rename it (right-click, Rename) to something clear such as "VPN", which makes it easy to spot in qBittorrent.
- macOS: run ifconfig in Terminal. VPN tunnels typically appear as utun interfaces; compare the list with the VPN connected and disconnected to see which one appears.
- Linux: run ip addr. OpenVPN tunnels commonly show up as tun0 and WireGuard tunnels under the name of their configuration, for example wg0.
Tip: if you are unsure, disconnect the VPN, check the list, then reconnect. The adapter that comes and goes with the VPN is the one you want.
How to make qBittorrent only use the VPN
Binding qBittorrent to the VPN takes a few clicks in the Advanced section of the options.
- Connect to your VPN.
- Open qBittorrent and select Tools > Options.
- Click Advanced in the sidebar.
- Find "Network interface" under the qBittorrent section and change it from "Any interface" to your VPN adapter.
- Optional: set "Optional IP address to bind to" to the VPN adapter's address, or leave it at "All addresses".
- Click Apply and OK.
- Close and restart qBittorrent so the binding takes effect.
Leave "Optional IP address to bind to" on "All addresses" unless you have a reason to change it. Many VPNs hand out a new internal IP on each connection, and a fixed address would then stop qBittorrent from connecting at all after a reconnect.
The setting is stored per user profile, so it survives updates. Recheck it after you switch VPN providers or protocols, because a new provider app or protocol may create an adapter with a different name.
How to test that transfers stop when the VPN disconnects
Test the kill switch once after setting it up, using a legal torrent such as a Linux distribution ISO from the distribution's official download page.
- With the VPN connected, start the test torrent and confirm it connects to peers and downloads.
- Disconnect the VPN while the download runs.
- Watch the transfer: speed should fall to zero, peers should drop and the torrent should show as stalled.
- Reconnect the VPN and confirm the torrent resumes on its own. If it does not, restart qBittorrent.
A second check: quit qBittorrent, disconnect the VPN and start qBittorrent again. With the binding in place, no torrent should make progress until the VPN is back.
If downloads continue after the VPN disconnects, the wrong adapter is selected, or the VPN keeps its adapter up while disconnected. Go back to the adapter list and pick the one that actually disappears.
qBittorrent binding vs a VPN app kill switch
Interface binding and a VPN app's kill switch solve overlapping problems and work best together.
| Aspect | qBittorrent interface binding | VPN app kill switch |
|---|---|---|
| Scope | qBittorrent only | Usually the whole device, or selected apps |
| Works with built-in OS VPN connections | Yes, as long as the connection has its own adapter | Only when you use the provider's app |
| Survives VPN app crashes | Yes, traffic has nowhere else to go | Depends on the app's implementation |
| Other apps protected | No | Yes, if system-wide |
If your VPN app offers a kill switch, turn it on and bind qBittorrent as well. The binding is the safety net when the VPN app misbehaves; the app kill switch covers browsers and everything else on the device. On Windows, you can add a third layer with firewall rules; see how to block programs and folders in Windows Firewall.
FAQ
Does qBittorrent have a built-in kill switch?
Not as a named feature. Binding qBittorrent to the VPN's network interface in Tools > Options > Advanced has the same effect for torrent traffic, because the client cannot fall back to another connection.
Why does qBittorrent not download anything after I bound it to the VPN?
Check that the VPN is connected and that you picked the adapter that the VPN creates. Also set "Optional IP address to bind to" back to "All addresses" if you entered a fixed IP that has since changed.
Does binding qBittorrent protect DNS and the rest of my traffic?
No. Binding only affects qBittorrent's connections. Your browser and other apps still use whatever connection is active, so use the VPN app's kill switch for device-wide protection.
Related: create a private torrent in qBittorrent, qBittorrent advanced saving management, what a magnet link is
It’s not working for me. I’m using a free VPN called Cloudflare WARP, and I’m clueless when it comes to the details of all this, so I don’t know if there’s an issue with that, or what. I tried disconnecting it in the provided UI to test the kill function in qBit, but the activity didn’t stop. Then I tried disabling it directly in network connections in Windows, but it just kept reconnecting/re-enabling automatically. I’m lost…
Got a call from my ISP even though I was using my VPN. I’m hopeful this method prevents any torrenting if coming from my ISP’s routing. They told m the exact things I was downloading and the times. Has anyone here been called by their ISP even using a VPN?
Tried this on linux Mint 20.2 with qbitorrent v4.1.7, my VPN was “tun0” and I tested disconnecting the VPN and indeed the torrents “Stalled” and qbitorrent even notified me that the network had been disconnected. Which is perfect!
There’s a problem though… When I re-enabled the VPN, qbittorent never resumed the torrents, there were all “stalled”, I waited a couple of minutes but I ended up having to resume them manually (I did a “force re-announce”). Surely it should resume automatically once the VPN “tun0” is up and running?
Great. Works. Now how do you get qBittorrent to resume downloading once the VPN connection is re-established? I have to restart the program every time.
Awesome! Thank you for this! Still a great solution in March 2021. VPN disconnected when I was asleep which caused problems with my ISP. Problem solved.
I just wanna say THANK you for the best and most simple explanation of fthe easiest way to do it, Much appreciated from a linux user.
Forget it there are others that are working fine have done for years why even bother with all this bull. The thing is a pain in the we binned it, when it cuts of the net its a piece of shit. The net is full of crap programs & this is one of them
First time I tried this it works fine. But know I keep doing the same think but qbitorrent doesnt work for nothing! I have lost 2 hours of my life with this issue so i’m so frustrated and angry. I uninstalled it more than once, reinitiate windows, check firewall. Nothing works.
I’ve just set this up using AirVPN and it works perfectly :)
Worked perfectly – thank you!
This is a game changer, thank you.
I can’t believe all the things I tried to get this outcome only to find this solution weeks later… and it’s this simple. SMH! thank you. (I’ll check out that ip6 thing too.)
This was truly a lifesaver. I understand there are other risks and probably plenty of other things I need to research in order to be secure, but this is a great start. Thank you
Help Please..
I am using a Free VPN in FireFox called “SETUPVPN”
Can someone please advise how to configure qBbitorrent with SETUPVPN.
SETUPVPN. it is an extension for Firefox and works quite well. However I require Kill Switch capability.
Thank you in advance!!!!!!!!
RB
Thanks in advance,
Ron
Warning: if using windows, THIS DOES NOT WORK IF YOU HAVE IPV6 ENABLED ON YOUR SYSTEM.
It seems that bittorrent does not respect the interface binding setting if ipv6 is enabled.
You can test this by using the ipleak.net Torrent Leak detection (to check the kill switch, do this while your VPN is disabled):
– if only ipv4 is enabled on your system and the interface is properly configured on qBittorrent, you will not be detected (while the VPN is down, no data goes through)
– if ipv6 is enabled, ipleak.net will show your ipv6 address.
Great article – thanks for the tip and walkthrough instructions!
As an additional suggestion (just to make the process idiot proof) within ‘Adapter Settings’ right click on your VPN adapter connection and Rename the connection something explicit, like “VPN Connection”. Whatever name you give it will show up in qBittorent as a connection option, simplifying the selection process.
Does anyone know how do the first steps on a mac?
Copy and pasted from a reddit thread since it took me a while to figure this out:
Hey, an easy way to do it is to use the ifconfig command to display all active network interfaces. Do it with VPN on, then do it again with VPN off. The missing interface is the VPN.
Emmy, you could skip the network adapter step as qBittorrent lists them all in its interface. Maybe you can identify the right one there directly.
Have been doing this for some time.
However, perhaps with the specific VPN provider I use, have found one possible issue / vulnerability…
If the VPN does not fully disconnect, but it “times out” (in that limbo state similar to when first establishing a connection but before getting an IP address), qbittorrent still seems to be “uploading” (i.e. the Total Upload Graph is not flat, but will have some lifts and even spikes in it, indicating that the magnitude of the amount of sending info has not changed from before the “time out” ).
Don’t know enough to explain what this is about, but was surprised that all traffic was not completely stopped.
I would think attempts would account for the blips on the graph when down.
Tried it, but I can only choose from wired and wireless networks, the vpns that are availabe on my computer don’t show under network interace in qbittorrent.
Yes, it doesn’t seem to see Windows VPN adapters. I use Private Internet Access which installs a TAP-Windows Adapter connection which its VPN client then uses. That one does appear in the qBittorrent list.
Although the Private Internet Access client does itself offer a kill switch option it is very problematic in use and can leave your system unable to access the internet at all if the service is not “properly” closed.
This of course makes it so you can’t use qbittorent when you aren’t on the VPN. Guess you can’t it both ways of course, or has someone made a qBittorent plugin that detect which network only works for the session? Like if the network you used to connect to for the session is interrupted whether that be your regular or VPN session the client shuts down.
Didn’t know about this feature. It makes me want to try out qBittorrent again.
However, the best way to auto-block internet connections when the VPN is down is to use a script in your router, via something like ddwrt or openwrt.
But I’m all for adding layers of protection!
What qualifies this as ‘the best way to auto-block”? Does it block connections faster? How much faster? If it is faster, does it even matter that it is faster?
I tried to get this to work on Xubuntu 15.10 without any success. It just kept downloading regardless of the interface setting.
Aparrently it was a bug that was fixed in version 3.2.5. Meanwhile, Ubuntu’s repositories are still stuck at 3.2.3. One way to get a recent version is through the qbittorrent PPA:
https://launchpad.net/~qbittorrent-team/+archive/ubuntu/qbittorrent-stable
Now it works for me. Thanks for the article!
I’d be interesting in configuring Transmission the same way on a VPS.