Skip to main content

qBittorentVPN (hotio)

version: "3.3"7"

services:
  qbittorrentvpn:
    image: trigus42/qbittorrentvpnqbittorrent:
    container_name: qbittorrentvpn
    privileged:image: truecr.hotio.dev/hotio/qbittorrent
    ports:
      - 8992:8992
      - 8118:8118
    environment:
      ## Not needed when using Wireguard
      # - VPN_USERNAME=myvpnusername
      # - VPN_PASSWORD=myvpnpasswordWEBUI_PORTS=8992/tcp,8992/udp
      - PUID=998
      #optional
      - PGID=100
      #optional- ## This environment variable doesn't exist
      #UMASK=002
      - WEBUI_PORT_ENV=8991 #optional
      ## This neither
      # - INCOMING_PORT_ENV=8999 #optionalTZ=Europe/Paris
      - VPN_ENABLED=yestrue
      - LAN_NETWORK=VPN_LAN_NETWORK=192.168.0.0/24
      # Or 192.168.1.0/24 depending on network
      - NAME_SERVERS=1.1.1.1,1.0.0.1
    ports:
      ## As you mentioned you need to set WebUI\HostHeaderValidation=false in the qBittorrent.conf but then this is perfectly fine
      - 8991:8080
      ## You probably don't want to be directly connectable (circumventing the VPN)
      ## If you want to be connectable, you have to use a VPN that allows port forwarding (you don't have to connectable for most things, except if you use private trackers)
      ## This didn't do much anyway cause you didn't allow the ports in the firewall using ADDITIONAL_PORTSVPN_CONF=wg0
     # - 8999:8999
      #VPN_ADDITIONAL_PORTS
      - 8999:8999/udpVPN_IP_CHECK_DELAY=5
      - PRIVOXY_ENABLED=false
    volumes:
      - /srv/path/dev-disk-by-uuid-aeb64686-5ba2-4319-a690-3215ec812b5d/Files/QBittorentVPN/QBittorrentVPN/config:/config
      - /srv/path/dev-disk-by-uuid-aeb64686-5ba2-4319-a690-3215ec812b5d/Files/QBittorentVPN/QBittorrentVPN/downloads:/downloads
      - /srv/path/dev-disk-by-uuid-aeb64686-5ba2-4319-a690-3215ec812b5d/Files/QBittorentVPN/QBittorrentVPN/skins:/skins
    restart:cap_add:
      unless-stopped- NET_ADMIN
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
     # - net.ipv6.conf.all.disable_ipv6=0

Optionnal : set WebUI\HostHeaderValidation=false in the qBittorrent.conf

Default creditentials
admin
adminadmin

If Web UI Stuck on "Unacceptable file type, only regular file is allowed", go to:
"/home/qbittorrent/.config/qBittorrent" and edit the config file: "WebUI\AlternativeUIEnabled=true" to "WebUI\AlternativeUIEnabled=false"

Alternative WebUI :
https://github.com/bill-ahmed/qbit-matUI/releases
https://github.com/WDaan/VueTorrent/releases

MIGHT NOT WORK WITH SOME BROWSERS ! If so, try a different one.

VariableFunctionExampleDefault
VPN_ENABLEDEnable VPN (yes/no)?VPN_ENABLED=yesyes
VPN_TYPEWireGuard or OpenVPN (wireguard/openvpn)?VPN_TYPE=openvpnwireguard
VPN_USERNAMEIf username and password provided, configures all ovpn files automaticallyVPN_USERNAME=ad8f64c02a2de
VPN_PASSWORDIf username and password provided, configures all ovpn files automaticallyVPN_PASSWORD=ac98df79ed7fb
LAN_NETWORKComma delimited local Network's with CIDR notationLAN_NETWORK=192.168.0.0/24,10.10.0.0/24
SET_FWMARKMake web interface reachable for devices in networks not specified in LAN_NETWORKyesno
ENABLE_SSLLet the container handle SSL (yes/no)ENABLE_SSL=yesno
NAME_SERVERSComma delimited name serversNAME_SERVERS=1.1.1.1,1.0.0.11.1.1.1,1.0.0.1
PUIDUID applied to /config files and /downloadsPUID=991000
PGIDGID applied to /config files and /downloadsPGID=1001000
UMASKSet file mode creation maskUMASK=002002
HEALTH_CHECK_HOSTThis is the host or IP that the healthcheck script will use to check an active connectionHEALTH_CHECK_HOST=8.8.8.81.1.1.1
HEALTH_CHECK_INTERVALThis is the time in seconds that the container waits to see if the VPN still worksHEALTH_CHECK_INTERVAL=55
INSTALL_PYTHON3Set this to yes to let the container install Python3INSTALL_PYTHON3=yesno
ADDITIONAL_PORTSAdding a comma delimited list of ports will allow these ports via the iptables scriptADDITIONAL_PORTS=1234,8112
DEBUGPrint information useful for debugging in logyesno