Skip to main content

QBittorentVPN

version: "3.3"
services:
  qbittorrentvpn:
    image: trigus42/qbittorrentvpn
    container_name: qbittorrentvpn
    privileged: true   
    environment:
      ## Not needed when using Wireguard
      # - VPN_USERNAME=myvpnusername
      # - VPN_PASSWORD=myvpnpassword
      - PUID=998 #optional
      - PGID=100 #optional
      ## This environment variable doesn't exist
      # - WEBUI_PORT_ENV=8991 #optional
      ## This neither
      # - INCOMING_PORT_ENV=8999 #optional
      - VPN_ENABLED=yes
      - LAN_NETWORK=192.168.1.0/24 # Or 192.168.0.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_PORTS
      # - 8999:8999
      # - 8999:8999/udp
    volumes:
      - /srv/path/Files/QBittorentVPN/config:/config
      - /srv/path/Files/QBittorentVPN/downloads:/downloads
    restart: unless-stopped

set WebUI\HostHeaderValidation=false in the qBittorrent.conf

admin

adminadmin

 

NE MARCHE PAS AVEC VIVALDI !

 

VariableRequiredFunctionExampleDefault
VPN_ENABLEDYesEnable VPN (yes/no)?VPN_ENABLED=yesyes
VPN_TYPEYesWireGuard or OpenVPN (wireguard/openvpn)?VPN_TYPE=wireguardopenvpn
VPN_USERNAMENoIf username and password provided, configures ovpn file automaticallyVPN_USERNAME=ad8f64c02a2de 
VPN_PASSWORDNoIf username and password provided, configures ovpn file automaticallyVPN_PASSWORD=ac98df79ed7fb 
LAN_NETWORKYes (atleast one)Comma delimited local Network's with CIDR notationLAN_NETWORK=192.168.0.0/24,10.10.0.0/24 
ENABLE_SSLNoLet the container handle SSL (yes/no)?ENABLE_SSL=yesyes
NAME_SERVERSNoComma delimited name serversNAME_SERVERS=1.1.1.1,1.0.0.11.1.1.1,1.0.0.1
PUIDNoUID applied to /config files and /downloadsPUID=9999
PGIDNoGID applied to /config files and /downloadsPGID=100100
UMASKNo UMASK=002002
HEALTH_CHECK_HOSTNoThis is the host or IP that the healthcheck script will use to check an active connectionHEALTH_CHECK_HOST=one.one.one.oneone.one.one.one
HEALTH_CHECK_INTERVALNoThis is the time in seconds that the container waits to see if the internet connection still works (check if VPN died)HEALTH_CHECK_INTERVAL=300300
HEALTH_CHECK_SILENTNoSet to 1 to supress the 'Network is up' message. Defaults to 1 if unset.HEALTH_CHECK_SILENT=11
INSTALL_PYTHON3NoSet this to yes to let the container install Python3.INSTALL_PYTHON3=yesno
ADDITIONAL_PORTSNoAdding a comma delimited list of ports will allow these ports via the iptables script.ADDITIONAL_PORTS=1234,8112