Skip to content

Run on Unraid

Template settings

SettingValue
Repositorymarkusmcnugen/qbittorrentvpn
Network typeBridge
Port 8080 TCP8080, the WebUI
Port 8118 TCP8118, only with PRIVOXY_ENABLED=yes
Path /config/mnt/user/appdata/qbittorrentvpn
Path /downloadsyour downloads share, such as /mnt/user/downloads
Variable LAN_NETWORKyour LAN, such as 192.168.1.0/24
Variable VPN_USERNAME, VPN_PASSWORDyour provider’s OpenVPN credentials; leave them out for WireGuard
Variable PUID99
Variable PGID100

PUID=99 and PGID=100, the image’s defaults, are Unraid’s nobody:users, so the downloads and the appdata folder can be read and changed over the network share.

Extra parameters

Turn on the advanced view and set Extra Parameters to:

--cap-add=NET_ADMIN --device=/dev/net/tun --stop-timeout=150

--stop-timeout=150 gives qBittorrent time to save its resume data when the array stops. Leave Privileged off; the container does not need it.

The VPN configuration

Put your provider’s .ovpn file in /mnt/user/appdata/qbittorrentvpn/openvpn/, or its WireGuard .conf file in /mnt/user/appdata/qbittorrentvpn/wireguard/, then start the container. On its first start without one, the container creates both folders and stops, saying where the file goes. See Set up OpenVPN and Set up WireGuard.

Check it

Open the container’s console from the Docker tab, or run from the Unraid terminal:

docker exec qbittorrentvpn qbtvpn-status