Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] binhex - qBittorrentVPN

Featured Replies

Yeah 5.2 is busted at least with the latest unraid version. 5.1.4-2-01 works fine

  • Replies 5.3k
  • Views 1.2m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I rolled back to tag 5.1.1-1-01 which fixed the issue for me. I guess the new update wasn't tested for wireguard connections. Edit the docker container and change "Repository" from binhex/arch-qbitt

  • FWIW, I found this method in Reddit that seemed to work for me until they fix the log bug. But note if you have qbittorrent internet facing, it's a risk.   Add this line under [Preferences]

  • gustyScanner
    gustyScanner

    Hello! I have been using wireguard successfully for a long time with this container, today though when the container restarted I got the following error: 2025-06-27 10:35:26,490 DEBG 'start-script'

Posted Images

  • Author
2 hours ago, DaWord2011 said:

Encountered the same errors myself this morning, rolled back one version and it is back up and running.

15 minutes ago, UnJustice said:

Yeah 5.2 is busted at least with the latest unraid version. 5.1.4-2-01 works fine

on it guys, the below does seem to be the fix, confirmed building a new image right now...

6 hours ago, unraid.even992 said:

Workaround: delete the lockfile in the conf folder. But this issue appear after every container restart. The lockfile is not deleted when the container shutdown or restart

  • Author
15 minutes ago, binhex said:

confirmed building a new image right now...

ok and it's built, please do a 'force update' to ensure you pull down the 'latest' tagged image.

latest build fixes it. Thanks binhex.

latest build did resolve my error

thanks for the quick fix binhex

Thanks for the quick update. Just to confirm, does this fix both the issues encountered with unraid 7.2.5 and qbit moving to 5.2.0 or just the latter?

Morning all, I'm having a different issue after upgrading to the latest version, please see error below. I haven't run this update on my unRAID server, this is from my Synology NAS from Portainer:

# Warning: iptables-legacy tables present, use iptables-legacy to see them

iptables v1.8.13 (nf_tables): Could not fetch rule set generation id: Invalid argument

2026-05-05 09:41:07.267129 [crit] iptables default policies not available, exiting script...

If I install to a new folder, I get the same error. The container keeps restarting.

Edited by sv000008

  • Author
On 5/3/2026 at 12:05 AM, JBanner said:

-p '58946:000/tcp'

-v '/mnt/user/appdata/binhex-qbittorrentvpn':'/config':'rw'

-v '/mnt/user/data':'/data':'rw'

-v '/mnt/user/binhex-shared/':'/shared':'rw'

--sysctl="net.ipv4.conf.all.src_valid_mark=1" 'binhex/arch-qbittorrentvpn'

docker: Error response from daemon: invalid port specification: "0/tcp"

red text is the problem here, so you have an invalid port defined, '0000' is not a valid port, delete that from your container and re-add the port, host and container side set to 58946, please note this port is NOT used if you have vpn_enabled set to yes, so you can simply delete it as another option.

  • Author
23 minutes ago, sv000008 said:

Morning all, I'm having a different issue after upgrading to the latest version, please see error below. I haven't run this update on my unRAID server, this is from my Synology NAS from Portainer:

# Warning: iptables-legacy tables present, use iptables-legacy to see them

iptables v1.8.13 (nf_tables): Could not fetch rule set generation id: Invalid argument

2026-05-05 09:41:07.267129 [crit] iptables default policies not available, exiting script...

If I install to a new folder, I get the same error. The container keeps restarting.

do a google search for 'synology (nf_tables): Could not fetch rule set generation id: Invalid argument' the AI generated result (top of the results) will tell you what to do.

1 hour ago, binhex said:

do a google search for 'synology (nf_tables): Could not fetch rule set generation id: Invalid argument' the AI generated result (top of the results) will tell you what to do.

Thank you, didn't consider that it could be a Synology issue.

Update: The solution I found is to force legacy iptables withing the container. Unfortunately, the container restarts once that error is displayed and I cannot access the container console long enough to make the changes. I have reverted to version 5.1.4-2-01 for now.


Edited by sv000008

4 hours ago, binhex said:

do a google search for 'synology (nf_tables): Could not fetch rule set generation id: Invalid argument' the AI generated result (top of the results) will tell you what to do.

3 hours ago, sv000008 said:

Thank you, didn't consider that it could be a Synology issue.

Update: The solution I found is to force legacy iptables withing the container. Unfortunately, the container restarts once that error is displayed and I cannot access the container console long enough to make the changes. I have reverted to version 5.1.4-2-01 for now.


Had to make a script that does this on my QNAP:

#!/bin/bash
yes|pacman -S iptables-legacy
mv /usr/bin/nft /usr/bin/nft.disabled 2>/dev/null || true

But also had to change the container command in docker-compose to this because the ENABLE_STARTUP_SCRIPTS hook runs after the VPN/iptables setup:

command: ["/bin/bash", "-c", "/config/scripts/iptables-legacy.sh && init.sh"]

Hello, I can't connect via vpn. I'm using PIA. I have Unraid virtualized in proxmox. My router is pfsense. Can you check the logs for me. Thanks

2026-05-05 19:22:35,796 DEBG 'start-script' stdout output:
[info] Starting OpenVPN (non daemonised)...

2026-05-05 19:22:35,945 DEBG 'start-script' stdout output:
2026-05-05 19:22:35 DEPRECATED OPTION: --persist-key option ignored. Keys are now always persisted across restarts. 

2026-05-05 19:22:35,947 DEBG 'start-script' stdout output:
2026-05-05 19:22:35 DEPRECATED OPTION: --cipher set to 'aes-128-cbc' but missing in --data-ciphers (DEFAULT). OpenVPN ignores --cipher for cipher negotiations. 

2026-05-05 19:22:35,948 DEBG 'start-script' stdout output:
2026-05-05 19:22:35 WARNING: file 'credentials.conf' is group or others accessible
2026-05-05 19:22:35 OpenVPN 2.7.0 [git:makepkg/ee1577744fb09af7+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO] built on Feb 11 2026
2026-05-05 19:22:35 library versions: OpenSSL 3.6.1 27 Jan 2026, LZO 2.10

2026-05-05 19:22:35,948 DEBG 'start-script' stdout output:
2026-05-05 19:22:35 DCO version: N/A

2026-05-05 19:22:35,950 DEBG 'start-script' stdout output:
2026-05-05 19:22:35 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2026-05-05 19:22:35,953 DEBG 'start-script' stdout output:
2026-05-05 19:22:35 TCP/UDP: Preserving recently used remote address: [AF_INET]172.64.150.50:1198
2026-05-05 19:22:35 UDPv4 link local: (not bound)
2026-05-05 19:22:35 UDPv4 link remote: [AF_INET]172.64.150.50:1198

2026-05-05 19:23:36,013 DEBG 'start-script' stdout output:
2026-05-05 19:23:36 [UNDEF] Inactivity timeout (--ping-restart), restarting
2026-05-05 19:23:36 SIGHUP[soft,ping-restart] received, process restarting

2026-05-05 19:23:36,017 DEBG 'start-script' stdout output:
2026-05-05 19:23:36 DEPRECATED OPTION: --persist-key option ignored. Keys are now always persisted across restarts. 

2026-05-05 19:23:36,021 DEBG 'start-script' stdout output:
2026-05-05 19:23:36 DEPRECATED OPTION: --cipher set to 'aes-128-cbc' but missing in --data-ciphers (DEFAULT). OpenVPN ignores --cipher for cipher negotiations. 

2026-05-05 19:23:36,024 DEBG 'start-script' stdout output:
2026-05-05 19:23:36 WARNING: file 'credentials.conf' is group or others accessible
2026-05-05 19:23:36 OpenVPN 2.7.0 [git:makepkg/ee1577744fb09af7+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO] built on Feb 11 2026

2026-05-05 19:23:36,024 DEBG 'start-script' stdout output:
2026-05-05 19:23:36 library versions: OpenSSL 3.6.1 27 Jan 2026, LZO 2.10
2026-05-05 19:23:36 DCO version: N/A

2026-05-05 19:23:38,024 DEBG 'start-script' stdout output:
2026-05-05 19:23:38 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2026-05-05 19:23:38,025 DEBG 'start-script' stdout output:
2026-05-05 19:23:38 TCP/UDP: Preserving recently used remote address: [AF_INET]104.18.37.206:1198
2026-05-05 19:23:38 UDPv4 link local: (not bound)

2026-05-05 19:23:38,025 DEBG 'start-script' stdout output:
2026-05-05 19:23:38 UDPv4 link remote: [AF_INET]104.18.37.206:1198

2026-05-05 19:24:39,031 DEBG 'start-script' stdout output:
2026-05-05 19:24:39 [UNDEF] Inactivity timeout (--ping-restart), restarting

My docker-compose.

docker run
  -d
  --name='binhex-qbittorrentvpn'
  --net='bridge'
  --pids-limit 2048
  --privileged=true
  -e TZ="Europe/Budapest"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Unraid"
  -e HOST_CONTAINERNAME="binhex-qbittorrentvpn"
  -e 'VPN_ENABLED'='yes'
  -e 'VPN_USER'='toneuhodnes'
  -e 'VPN_PASS'='toneuhodnes'
  -e 'VPN_PROV'='pia'
  -e 'VPN_CLIENT'='openvpn'
  -e 'STRICT_PORT_FORWARD'='yes'
  -e 'ENABLE_PRIVOXY'='no'
  -e 'ENABLE_SOCKS'='no'
  -e 'SOCKS_USER'='admin'
  -e 'SOCKS_PASS'='socks'
  -e 'LAN_NETWORK'='192.168.1.0/24'
  -e 'WEBUI_PORT'='8080'
  -e 'VPN_INPUT_PORTS'=''
  -e 'VPN_OUTPUT_PORTS'=''
  -e 'DEBUG'='false'
  -e 'VPN_OPTIONS'=''
  -e 'ENABLE_STARTUP_SCRIPTS'='no'
  -e 'USERSPACE_WIREGUARD'='no'
  -e 'NAME_SERVERS'='1.1.1.1,1.0.0.1'
  -e 'ENABLE_HEALTHCHECK'='yes'
  -e 'HEALTHCHECK_COMMAND'=''
  -e 'HEALTHCHECK_ACTION'=''
  -e 'HEALTHCHECK_HOSTNAME'='google.com'
  -e 'PUID'='1000'
  -e 'PGID'='1000'
  -e 'UMASK'='000'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8080]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/binhex/templates/main/unraid/binhex/images/qbittorrent-icon.png'
  -p '8080:8080/tcp'
  -p '8118:8118/tcp'
  -p '9118:9118/tcp'
  -p '58946:58946/tcp'
  -p '58946:58946/udp'
  -v '/mnt/user/appdata/binhex-qbittorrentvpn':'/config':'rw'
  -v '/mnt/user/Seriály/':'/192.168.1.8/Seriály':'rw'
  -v '/mnt/user/Backup/qBittorrent-container/torrenty/':'/torrenty':'rw'
  -v '/mnt/user/Software/':'/192.168.1.8/Software':'rw'
  -v '/mnt/user/music/rutracker/':'/192.168.1.8/music/rutracker':'rw'
  -v '/mnt/user/music/Orpheus/':'/192.168.1.8/music/Orpheus':'rw'
  -v '/mnt/user/music/CZTorrent/':'/192.168.1.8/music/CZTorrent':'rw'
  -v '/mnt/user/Hry/':'/192.168.1.8/Hry':'rw'
  -v '/mnt/user/Stahování/':'/192.168.1.8/Stahování':'rw'
  -v '/mnt/user/Dokumentární filmy/':'/192.168.1.8/Dokumentární filmy':'rw'
  -v '/mnt/user/Emovies/Anime/':'/192.168.1.8/Emovies/Anime':'rw'
  -v '/mnt/user/Emovies/Collection/':'/192.168.1.8/Emovies/Collection':'rw'
  -v '/mnt/user/Emovies/Ebooks/':'/192.168.1.8/Emovies/Ebooks':'rw'
  -v '/mnt/user/Emovies/Filmy/':'/192.168.1.8/Emovies/Filmy':'rw'
  -v '/mnt/user/Emovies/Klipy/':'/192.168.1.8/Emovies/Klipy':'rw'
  -v '/mnt/user/Filmy/':'/192.168.1.8/Filmy':'rw'
  --sysctl="net.ipv4.conf.all.src_valid_mark=1" 'ghcr.io/binhex/arch-qbittorrentvpn@sha256:56630778214670820ffe546a2f0e072b3b8b2a516a08130b213b32bf0bed666d'
ded1d57f6f1737fea46278f113db5a7d89ac8643737e3f6fddefeebc97bd1f3d

OpenVPN settings:

client
dev tun
proto udp
remote czech-republic.pvt.site 1198
resolv-retry infinite
nobind
persist-key
cipher aes-128-cbc
auth sha1
tls-client
remote-cert-tls server

auth-user-pass credentials.conf
comp-lzo no
verb 1

<ca>
-----BEGIN CERTIFICATE-----
MIIFqzCCBJOgAwIBAgIJAKZ7D5Yv87qDMA0GCSqGSIb3DQEBDQUAMIHoMQswCQYD
......................................................
19 hours ago, sv000008 said:

Thank you, didn't consider that it could be a Synology issue.

Update: The solution I found is to force legacy iptables withing the container. Unfortunately, the container restarts once that error is displayed and I cannot access the container console long enough to make the changes. I have reverted to version 5.1.4-2-01 for now.


Thanks for your help,

I have a question : with 5.1... version it's ok : it works : I have reverted to version 5.1.4-2-01 like you

but it's broken with 5.2 version ? In 5.2 version the image docker change by using iptables or nftables ? The issue is here to my mind (and the IA mind)

Maybe is it possible for Synology, QNAP, ... users to use in the next version the same version of iptables or nftables like in 5.1... version ?

Thanks

7 hours ago, Lemars said:

Thanks for your help,

I have a question : with 5.1... version it's ok : it works : I have reverted to version 5.1.4-2-01 like you

but it's broken with 5.2 version ? In 5.2 version the image docker change by using iptables or nftables ? The issue is here to my mind (and the IA mind)

Maybe is it possible for Synology, QNAP, ... users to use in the next version the same version of iptables or nftables like in 5.1... version ?

Thanks

It's because the iptables packages changed names recently in arch and the new push from binhex "merged" those changes in the docker image

https://archlinux.org/news/iptables-now-defaults-to-the-nft-backend/

iptables-nft became iptables

iptables became iptables-legacy

And Synology and QNAP do not update like in arch then the docker image could not works on these NAS

We need to wait the NAS are updated ---> maybe in a few months ?

Or manually like in a the post of Fl4shBack

There is no other solution ?

Sorry for my English....

My GUI is still unaccessible. Tried rolling back both Unraid OS and container, lockfile delete, ensuring ports are entered correctly, everything short of voodoo.

What files/text do I need to copy paste here for some help?

1 hour ago, deeveeance said:

What files/text do I need to copy paste here for some help?

Attach your entire supervisord log and docker run command to your next post. Be sure to redact any users/passwords.

Same issue as well, cant access the GUI.

I have tried all the above suggested fixes with no improvement.

All the log shows its connected to PIA VPN Network, however nothing works - no GUI and no communication to other dockers like Radarr and Sonarr :(

In the same boat as well. All the fixes tried, no access to GUI.

18 hours ago, wgstarks said:

Attach your entire supervisord log and docker run command to your next post. Be sure to redact any users/passwords.

also having the no web gui issues, rolling back to older container did not help. supervisord.log

docker run
  -d
  --name='binhex-qbittorrentvpn'
  --net='bridge'
  --pids-limit 2048
  --privileged=true
  -e TZ="America/Los_Angeles"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="binhex-qbittorrentvpn"
  -e 'VPN_ENABLED'='yes'
  -e 'VPN_USER'='redacted'
  -e 'VPN_PASS'='redacted'
  -e 'VPN_PROV'='protonvpn'
  -e 'VPN_CLIENT'='wireguard'
  -e 'STRICT_PORT_FORWARD'='yes'
  -e 'ENABLE_PRIVOXY'='no'
  -e 'ENABLE_SOCKS'='no'
  -e 'SOCKS_USER'='admin'
  -e 'SOCKS_PASS'='socks'
  -e 'LAN_NETWORK'='192.168.1.0/24, 10.253.0.0/24'
  -e 'WEBUI_PORT'='8080'
  -e 'VPN_INPUT_PORTS'=''
  -e 'VPN_OUTPUT_PORTS'=''
  -e 'DEBUG'='true'
  -e 'VPN_OPTIONS'=''
  -e 'ENABLE_STARTUP_SCRIPTS'='no'
  -e 'USERSPACE_WIREGUARD'='no'
  -e 'NAME_SERVERS'='84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='000'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8080]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/binhex/docker-templates/master/binhex/images/qbittorrent-icon.png'
  -p '8080:8080/tcp'
  -p '8118:8118/tcp'
  -p '9118:9118/tcp'
  -p '58946:58946/tcp'
  -p '58946:58946/udp'
  -v '/mnt/user/appdata/binhex-qbittorrentvpn':'/config':'rw'
  -v '/mnt/user/media/':'/data':'rw'
  -v 'binhex-shared':'/shared':'rw'
  --sysctl="net.ipv4.conf.all.src_valid_mark=1" 'binhex/arch-qbittorrentvpn:5.2.0-1-05'

292561549a997af18c054c4355bff0a0da76faf2f17b7d4cc86116fba2dc2540

The command finished successfully!

Hi, I have been getting startup problem with the latest image since 2 days ago as well. I can't reach the Web UI unless I disable the VPN. I have attached the docker run command and supervisord.log below. I hope they will help with diagnosing.

docker run
  -d
  --name='qbittorrent'
  --net='bridge'
  --cpuset-cpus='1,2,3'
  --pids-limit 2048
  --privileged=true
  -e TZ="Asia/Tokyo"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="qbittorrent"
  -e 'VPN_ENABLED'='yes'
  -e 'VPN_USER'='<redacted>'
  -e 'VPN_PASS'='<redacted>'
  -e 'VPN_PROV'='pia'
  -e 'VPN_CLIENT'='openvpn'
  -e 'STRICT_PORT_FORWARD'='yes'
  -e 'ENABLE_PRIVOXY'='no'
  -e 'WEBUI_PORT'='31000'
  -e 'LAN_NETWORK'='52.46.69.0/24'
  -e 'VPN_INPUT_PORTS'=''
  -e 'VPN_OUTPUT_PORTS'=''
  -e 'DEBUG'='true'
  -e 'ENABLE_SOCKS'='no'
  -e 'SOCKS_USER'='admin'
  -e 'SOCKS_PASS'='socks'
  -e 'VPN_OPTIONS'=''
  -e 'NAME_SERVERS'='84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1'
  -e 'UMASK'='000'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'ENABLE_STARTUP_SCRIPTS'='no'
  -e 'USERSPACE_WIREGUARD'='no'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:31000]/'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/binhex/docker-templates/master/binhex/images/qbittorrent-icon.png'
  -p '31001:6881/tcp'
  -p '31001:6881/udp'
  -p '31002:8118/tcp'
  -p '31000:31000/tcp'
  -p '8080:8080/tcp'
  -p '9118:9118/tcp'
  -p '58946:58946/tcp'
  -p '58946:58946/udp'
  -v '/mnt/user/Flowy/':'/media':'rw'
  -v '/mnt/user/appdata/qbittorrent':'/config':'rw'
  -v '/mnt/user/Flowy/':'/data':'rw'
  -v '/mnt/user/Torrent/':'/incomplete':'rw'
  -v '/mnt/user/Torrent/':'/cache':'rw'
  -v 'binhex-shared':'/shared':'rw'
  --sysctl="net.ipv4.conf.all.src_valid_mark=1"
  -m 4G
  --log-driver syslog
  --log-opt syslog-address=udp://127.0.0.1:541
  --health-interval=60m 'binhex/arch-qbittorrentvpn:latest'

WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
fbbc01d550b5c8f1b6d9af0a8f814bc82e547fb7ac957bda12323f40e3778bd8

The command finished successfully!

supervisord.log

I had the same issue in local to access GUI : but its was ok from internet
I add in config file : qBittorrent.conf
WebUI\HostHeaderValidation=false
maybe this can help ?

Edited by Lemars

  • Author
6 hours ago, Kagoromo said:
 -e 'LAN_NETWORK'='52.46.69.0/24'

I highly doubt that is your lan network right?, that is not in the reserved ranges (192.168.x.x, 172 etc etc).

in any case from your log:

2026-05-08 11:20:32,573 DEBG 'start-script' stdout output:

2026-05-08 11:20:32 UDPv4 link local: (not bound)

2026-05-08 11:20:32 UDPv4 link remote: [AF_INET]104.19.240.167:1198

2026-05-08 11:21:33,054 DEBG 'start-script' stdout output:

2026-05-08 11:21:33 [UNDEF] Inactivity timeout (--ping-restart), restarting

Please see Q17 from the following link:- https://github.com/binhex/documentation/blob/master/docker/faq/vpn.md

  • Author
6 hours ago, Chris238 said:

also having the no web gui issues, rolling back to older container did not help

from your log:

2026-05-07 19:00:21.175408 [info] VPN_REMOTE_SERVER defined as '104.234.212.26'

Hard coding ip endpoints is NEVER a good idea!, most probably that endpoint is shutdown or having issues, switch to a named endpoint such as nl-amsterdam.privacy.network will probably get you going.
FYI - want to see an up to date list of all endpoints?, look at my live gist:- https://gist.github.com/binhex/0d8bc1974bad90f8a61d2d4219ef862c

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.