Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to bind VPN config + Unable to access WEB UI #280

Open
ElPoyo266 opened this issue Nov 2, 2024 · 3 comments
Open

Fail to bind VPN config + Unable to access WEB UI #280

ElPoyo266 opened this issue Nov 2, 2024 · 3 comments

Comments

@ElPoyo266
Copy link

ElPoyo266 commented Nov 2, 2024

Hello,
I'm experiencing issues with my qBittorrent container setup. Seem to fails to start properly due to issues binding the VPN configuration file. I also can't access WEB UI (also, it seem that deployment freezed for a while after WEBUI_PORT defined 8100...)
(first time using docker ask me if you need more details)

logs :

2024-11-02 08:54:44.384979+00:00https://hub.docker.com/u/binhex/
2024-11-02 08:54:44.384986+00:002024-11-02T08:54:44.384986086Z
2024-11-02 08:54:44.434510+00:002024-11-02 09:54:44.434278 [info] System information: Linux a2904056d119 6.6.44-production+truenas #1 SMP PREEMPT_DYNAMIC Mon Oct 28 20:15:46 UTC 2024 x86_64 GNU/Linux
2024-11-02 08:54:44.464879+00:002024-11-02 09:54:44.464372 [info] Image tags: BASE_RELEASE_TAG=2024100402,INT_RELEASE_TAG=2024100402,IMAGE_RELEASE_TAG=5.0.1-1-01
2024-11-02 08:54:44.502507+00:002024-11-02 09:54:44.502176 [info] PUID defined as '568'
2024-11-02 08:54:46.089881+00:002024-11-02 09:54:46.089676 [info] PGID defined as '568'
2024-11-02 08:54:46.475052+00:002024-11-02 09:54:46.474814 [info] UMASK defined as '000'
2024-11-02 08:54:46.501173+00:002024-11-02 09:54:46.500951 [info] Permissions already set for '/config'
2024-11-02 08:54:46.528372+00:002024-11-02 09:54:46.528150 [info] Deleting files in /tmp (non recursive)...
2024-11-02 08:54:46.558959+00:002024-11-02 09:54:46.558728 [info] VPN_ENABLED defined as 'yes'
2024-11-02 08:54:46.586402+00:002024-11-02 09:54:46.586186 [info] VPN_CLIENT defined as 'openvpn'
2024-11-02 08:54:46.613243+00:002024-11-02 09:54:46.613020 [info] VPN_PROV defined as 'protonvpn'
2024-11-02 08:54:46.643098+00:002024-11-02 09:54:46.642870 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/vpnConf.ovpn
2024-11-02 08:54:46.759743+00:002024-11-02 09:54:46.759515 [info] VPN remote server(s) defined as '149.36.51.3,149.36.51.3,149.36.51.3,149.36.51.3,149.36.51.3,'
2024-11-02 08:54:46.782995+00:002024-11-02 09:54:46.782776 [info] VPN remote port(s) defined as '5060,51820,4569,1194,80,'
2024-11-02 08:54:46.806364+00:002024-11-02 09:54:46.806093 [info] VPN remote protcol(s) defined as 'udp,udp,udp,udp,udp,'
2024-11-02 08:54:46.832384+00:002024-11-02 09:54:46.832151 [info] VPN_DEVICE_TYPE defined as 'tun0'
2024-11-02 08:54:46.858502+00:002024-11-02 09:54:46.858279 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2024-11-02 08:54:46.890612+00:002024-11-02 09:54:46.890383 [info] NAME_SERVERS defined as '84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1'
2024-11-02 08:54:46.904221+00:00modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/6.6.44-production+truenas
2024-11-02 08:54:46.904522+00:00ip6tables v1.8.10 (legacy): can't initialize ip6tables table `filter': Will be implemented real soon.  I promise ;)
2024-11-02 08:54:46.904543+00:00Perhaps ip6tables or your kernel needs to be upgraded.
2024-11-02 08:54:46.934731+00:002024-11-02 09:54:46.934501 [warn] ip6tables default policies not available, skipping ip6tables drops
2024-11-02 08:54:47.244601+00:002024-11-02 09:54:47.244355 [info] LAN_NETWORK defined as '192.168.1.0/24'
2024-11-02 08:54:47.282315+00:002024-11-02 09:54:47.282136 [info] LAN_NETWORK exported as '192.168.1.0/24'
2024-11-02 08:54:47.314935+00:002024-11-02 09:54:47.314726 [info] VPN_USER defined as '[username]+pmp'
2024-11-02 08:54:47.345325+00:002024-11-02 09:54:47.345030 [info] VPN_PASS defined as '[password]'
2024-11-02 08:54:47.377201+00:002024-11-02 09:54:47.376937 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports
2024-11-02 08:54:47.405819+00:002024-11-02 09:54:47.405536 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports
2024-11-02 08:54:47.434095+00:002024-11-02 09:54:47.433846 [info] ENABLE_STARTUP_SCRIPTS not defined (via -e ENABLE_STARTUP_SCRIPTS), defaulting to 'no'
2024-11-02 08:54:47.466275+00:002024-11-02 09:54:47.465343 [warn] ENABLE_SOCKS not defined (via -e ENABLE_SOCKS), defaulting to 'no'
2024-11-02 08:54:47.514234+00:002024-11-02 09:54:47.513855 [info] ENABLE_PRIVOXY defined as 'yes'
2024-11-02 08:54:47.552146+00:002024-11-02 09:54:47.550990 [info] WEBUI_PORT defined as '8100'
2024-11-02 09:08:02.506416+00:002024-11-02 10:08:02.506011 [info] SHARED_NETWORK not defined (via -e SHARED_NETWORK), defaulting to 'no'
2024-11-02 09:08:02.531721+00:002024-11-02 10:08:02.531458 [info] Starting Supervisor...
2024-11-02 09:08:06.406853+00:002024-11-02 10:08:06,406 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2024-11-02 09:08:06.406960+00:002024-11-02 10:08:06,406 INFO Set uid to user 0 succeeded
2024-11-02 09:08:06.412149+00:002024-11-02 10:08:06,412 INFO supervisord started with pid 7
2024-11-02 09:08:07.416712+00:002024-11-02 10:08:07,416 INFO spawned: 'start-script' with pid 401
2024-11-02 09:08:07.419553+00:002024-11-02 10:08:07,419 INFO spawned: 'watchdog-script' with pid 402
2024-11-02 09:08:07.419879+00:002024-11-02 10:08:07,419 INFO reaped unknown pid 8 (exit status 0)
2024-11-02 09:08:07.470556+00:002024-11-02 10:08:07,470 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.470621+00:00[info] VPN is enabled, beginning configuration of VPN
2024-11-02 09:08:07.470636+00:002024-11-02T09:08:07.470636259Z
2024-11-02 09:08:07.470646+00:002024-11-02 10:08:07,470 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-11-02 09:08:07.470657+00:002024-11-02 10:08:07,470 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-11-02 09:08:07.487373+00:002024-11-02 10:08:07,487 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.487421+00:00[warn] Username contains characters which could cause authentication issues, please consider changing this if possible
2024-11-02 09:08:07.487434+00:002024-11-02T09:08:07.487434873Z
2024-11-02 09:08:07.558961+00:002024-11-02 10:08:07,558 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.559022+00:00[info] Attempting to load tun kernel module...
2024-11-02 09:08:07.559036+00:002024-11-02T09:08:07.559036594Z
2024-11-02 09:08:07.561562+00:002024-11-02 10:08:07,561 DEBG 'start-script' stderr output:
2024-11-02 09:08:07.561600+00:00modprobe: FATAL: Module tun not found in directory /lib/modules/6.6.44-production+truenas
2024-11-02 09:08:07.561624+00:002024-11-02T09:08:07.561624804Z
2024-11-02 09:08:07.561800+00:002024-11-02 10:08:07,561 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.561834+00:00[warn] Unable to load tun kernel module using modprobe, trying insmod...
2024-11-02 09:08:07.561847+00:002024-11-02T09:08:07.561847394Z
2024-11-02 09:08:07.564679+00:002024-11-02 10:08:07,564 DEBG 'start-script' stderr output:
2024-11-02 09:08:07.564744+00:00insmod: ERROR: could not load module /lib/modules/tun.ko: No such file or directory
2024-11-02 09:08:07.564760+00:002024-11-02T09:08:07.564760552Z
2024-11-02 09:08:07.565122+00:002024-11-02 10:08:07,564 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.565158+00:00[warn] Unable to load tun kernel module, assuming its dynamically loaded
2024-11-02 09:08:07.565184+00:002024-11-02T09:08:07.565184772Z
2024-11-02 09:08:07.612610+00:002024-11-02 10:08:07,612 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.612659+00:00[info] Attempting to load iptable_mangle module...
2024-11-02 09:08:07.612674+00:002024-11-02T09:08:07.612674390Z
2024-11-02 09:08:07.615297+00:002024-11-02 10:08:07,615 DEBG 'start-script' stderr output:
2024-11-02 09:08:07.615361+00:00modprobe: FATAL: Module iptable_mangle not found in directory /lib/modules/6.6.44-production+truenas
2024-11-02 09:08:07.615377+00:002024-11-02T09:08:07.615377129Z
2024-11-02 09:08:07.615556+00:002024-11-02 10:08:07,615 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.615578+00:00[warn] Unable to load iptable_mangle module using modprobe, trying insmod...
2024-11-02 09:08:07.615605+00:002024-11-02T09:08:07.615605648Z
2024-11-02 09:08:07.618343+00:002024-11-02 10:08:07,618 DEBG 'start-script' stderr output:
2024-11-02 09:08:07.618388+00:00insmod: ERROR: could not load module /lib/modules/iptable_mangle.ko: No such file or directory
2024-11-02 09:08:07.618403+00:002024-11-02T09:08:07.618403229Z
2024-11-02 09:08:07.619045+00:002024-11-02 10:08:07,618 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.619085+00:00[warn] Unable to load iptable_mangle module, you will not be able to connect to the applications Web UI or Privoxy outside of your LAN
2024-11-02 09:08:07.619099+00:002024-11-02T09:08:07.619099354Z
2024-11-02 09:08:07.619109+00:002024-11-02 10:08:07,618 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.619153+00:00[info] unRAID/Ubuntu users: Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle'
2024-11-02 09:08:07.619165+00:00[info] Synology users: Please attempt to load the module by executing the following on your host: 'insmod /lib/modules/iptable_mangle.ko'
2024-11-02 09:08:07.619175+00:002024-11-02T09:08:07.619175806Z
2024-11-02 09:08:07.921250+00:002024-11-02 10:08:07,921 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.921278+00:00[info] Adding 192.168.1.0/24 as route via adapter eth0
2024-11-02 09:08:07.921287+00:002024-11-02T09:08:07.921287665Z
2024-11-02 09:08:07.923014+00:002024-11-02 10:08:07,922 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.923043+00:00[info] ip route defined as follows...
2024-11-02 09:08:07.923065+00:00--------------------
2024-11-02 09:08:07.923072+00:002024-11-02T09:08:07.923072505Z
2024-11-02 09:08:07.924683+00:002024-11-02 10:08:07,924 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.924710+00:00default via 172.16.0.1 dev eth0 
2024-11-02 09:08:07.924718+00:00172.16.0.0/24 dev eth0 proto kernel scope link src 172.16.0.2 
2024-11-02 09:08:07.924732+00:00192.168.1.0/24 via 172.16.0.1 dev eth0 
2024-11-02 09:08:07.924738+00:00local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1 
2024-11-02 09:08:07.924744+00:00local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1 
2024-11-02 09:08:07.924750+00:00broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1 
2024-11-02 09:08:07.924760+00:00local 172.16.0.2 dev eth0 table local proto kernel scope host src 172.16.0.2 
2024-11-02 09:08:07.924767+00:00broadcast 172.16.0.255 dev eth0 table local proto kernel scope link src 172.16.0.2 
2024-11-02 09:08:07.924773+00:00local ::1 dev lo table local proto kernel metric 0 pref medium
2024-11-02 09:08:07.924782+00:002024-11-02T09:08:07.924782023Z
2024-11-02 09:08:07.929805+00:002024-11-02 10:08:07,928 DEBG 'start-script' stdout output:
2024-11-02 09:08:07.929840+00:00--------------------
2024-11-02 09:08:07.929848+00:002024-11-02T09:08:07.929848758Z
2024-11-02 09:08:08.053038+00:002024-11-02 10:08:08,051 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.053078+00:00[info] iptables defined as follows...
2024-11-02 09:08:08.053087+00:00--------------------
2024-11-02 09:08:08.053093+00:002024-11-02T09:08:08.053093045Z
2024-11-02 09:08:08.053680+00:002024-11-02 10:08:08,053 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.053753+00:00-P INPUT DROP
2024-11-02 09:08:08.053773+00:00-P FORWARD DROP
2024-11-02 09:08:08.053789+00:00-P OUTPUT DROP
2024-11-02 09:08:08.053796+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.053802+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.053894+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.053912+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.053918+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.053925+00:00-A INPUT -s 172.16.0.0/24 -d 172.16.0.0/24 -j ACCEPT
2024-11-02 09:08:08.053930+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.053936+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.054092+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.054105+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.054111+00:00-A INPUT -s 149.36.51.3/32 -i eth0 -j ACCEPT
2024-11-02 09:08:08.055230+00:00-A INPUT -i eth0 -p tcp -m tcp --dport 8100 -j ACCEPT
2024-11-02 09:08:08.055258+00:00-A INPUT -i eth0 -p udp -m udp --dport 8100 -j ACCEPT
2024-11-02 09:08:08.055265+00:00-A INPUT -s 192.168.1.0/24 -d 172.16.0.0/24 -i eth0 -p tcp -m tcp --dport 8118 -j ACCEPT
2024-11-02 09:08:08.055271+00:00-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
2024-11-02 09:08:08.055277+00:00-A INPUT -i lo -j ACCEPT
2024-11-02 09:08:08.055286+00:00-A INPUT -i tun0 -j ACCEPT
2024-11-02 09:08:08.055292+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055298+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055303+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055309+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055462+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055473+00:00-A OUTPUT -s 172.16.0.0/24 -d 172.16.0.0/24 -j ACCEPT
2024-11-02 09:08:08.055479+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055484+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055494+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055500+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055505+00:00-A OUTPUT -d 149.36.51.3/32 -o eth0 -j ACCEPT
2024-11-02 09:08:08.055512+00:00-A OUTPUT -o eth0 -p tcp -m tcp --sport 8100 -j ACCEPT
2024-11-02 09:08:08.055518+00:00-A OUTPUT -o eth0 -p udp -m udp --sport 8100 -j ACCEPT
2024-11-02 09:08:08.055527+00:00-A OUTPUT -s 172.16.0.0/24 -d 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 8118 -j ACCEPT
2024-11-02 09:08:08.055533+00:00-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
2024-11-02 09:08:08.055538+00:00-A OUTPUT -o lo -j ACCEPT
2024-11-02 09:08:08.055543+00:00-A OUTPUT -o tun0 -j ACCEPT
2024-11-02 09:08:08.055552+00:002024-11-02T09:08:08.055552878Z
2024-11-02 09:08:08.055589+00:002024-11-02 10:08:08,055 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.055598+00:00--------------------
2024-11-02 09:08:08.055603+00:002024-11-02T09:08:08.055603965Z
2024-11-02 09:08:08.057159+00:002024-11-02 10:08:08,056 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.057201+00:00[info] Starting OpenVPN (non daemonised)...
2024-11-02 09:08:08.057209+00:002024-11-02T09:08:08.057209632Z
2024-11-02 09:08:08.537205+00:002024-11-02 10:08:08,536 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.537239+00:002024-11-02 10:08:08 WARNING: file 'credentials.conf' is group or others accessible
2024-11-02 09:08:08.537263+00:002024-11-02T09:08:08.537263613Z
2024-11-02 09:08:08.537275+00:002024-11-02 10:08:08,536 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.537283+00:002024-11-02 10:08:08 OpenVPN 2.6.12 [git:makepkg/038a94bae57a446c+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO] built on Jul 18 2024
2024-11-02 09:08:08.537290+00:002024-11-02 10:08:08 library versions: OpenSSL 3.4.0 22 Oct 2024, LZO 2.10
2024-11-02 09:08:08.537303+00:002024-11-02 10:08:08 DCO version: N/A
2024-11-02 09:08:08.537310+00:002024-11-02T09:08:08.537310498Z
2024-11-02 09:08:08.559558+00:002024-11-02 10:08:08,559 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.559595+00:002024-11-02 10:08:08 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2024-11-02 09:08:08.559620+00:002024-11-02T09:08:08.559620554Z
2024-11-02 09:08:08.573681+00:002024-11-02 10:08:08,573 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.573718+00:002024-11-02 10:08:08 TCP/UDP: Preserving recently used remote address: [AF_INET]149.36.51.3:51820
2024-11-02 09:08:08.573726+00:002024-11-02 10:08:08 UDPv4 link local: (not bound)
2024-11-02 09:08:08.573744+00:002024-11-02T09:08:08.573744304Z
2024-11-02 09:08:08.573750+00:002024-11-02 10:08:08,573 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.573755+00:002024-11-02 10:08:08 UDPv4 link remote: [AF_INET]149.36.51.3:51820
2024-11-02 09:08:08.573761+00:002024-11-02T09:08:08.573761221Z
2024-11-02 09:08:08.659842+00:002024-11-02 10:08:08,659 DEBG 'start-script' stdout output:
2024-11-02 09:08:08.659912+00:002024-11-02 10:08:08 [node-nl-999.protonvpn.net] Peer Connection Initiated with [AF_INET]149.36.51.3:51820
2024-11-02 09:08:08.659928+00:002024-11-02T09:08:08.659928133Z
2024-11-02 09:08:09.708717+00:002024-11-02 10:08:09,708 DEBG 'start-script' stdout output:
2024-11-02 09:08:09.708748+00:002024-11-02 10:08:09 NOTE: setsockopt TCP_NODELAY=1 failed
2024-11-02 09:08:09.708775+00:002024-11-02T09:08:09.708775110Z
2024-11-02 09:08:09.882082+00:002024-11-02 10:08:09,881 DEBG 'start-script' stdout output:
2024-11-02 09:08:09.882131+00:002024-11-02 10:08:09 TUN/TAP device tun0 opened
2024-11-02 09:08:09.882145+00:002024-11-02 10:08:09 net_iface_mtu_set: mtu 1500 for tun0
2024-11-02 09:08:09.882176+00:002024-11-02T09:08:09.882176747Z
2024-11-02 09:08:09.882363+00:002024-11-02 10:08:09,882 DEBG 'start-script' stdout output:
2024-11-02 09:08:09.882383+00:002024-11-02 10:08:09 net_iface_up: set tun0 up
2024-11-02 09:08:09.882394+00:002024-11-02 10:08:09 net_addr_v4_add: 10.96.0.51/16 dev tun0
2024-11-02 09:08:09.882404+00:002024-11-02 10:08:09 /root/openvpnup.sh tun0 1500 0 10.96.0.51 255.255.0.0 init
2024-11-02 09:08:09.882431+00:002024-11-02T09:08:09.882431099Z
2024-11-02 09:08:09.905439+00:002024-11-02 10:08:09,905 DEBG 'start-script' stdout output:
2024-11-02 09:08:09.905497+00:002024-11-02 10:08:09 Initialization Sequence Completed
2024-11-02 09:08:09.905512+00:002024-11-02T09:08:09.905512358Z
2024-11-02 09:08:27.040032+00:002024-11-02 10:08:27,039 DEBG 'start-script' stdout output:
2024-11-02 09:08:27.040085+00:00[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...
2024-11-02 09:08:27.040095+00:002024-11-02T09:08:27.040095881Z
2024-11-02 09:08:27.354735+00:002024-11-02 10:08:27,354 DEBG 'start-script' stdout output:
2024-11-02 09:08:27.354826+00:00[info] Successfully retrieved external IP address 149.36.51.2
2024-11-02 09:08:27.354879+00:002024-11-02T09:08:27.354879434Z
2024-11-02 09:08:27.355191+00:002024-11-02 10:08:27,354 DEBG 'start-script' stdout output:
2024-11-02 09:08:27.355232+00:00[info] Script started to assign incoming port for 'protonvpn'
2024-11-02 09:08:27.355245+00:002024-11-02T09:08:27.355245663Z
2024-11-02 09:08:29.461128+00:002024-11-02 10:08:29,460 DEBG 'start-script' stdout output:
2024-11-02 09:08:29.461176+00:00readnatpmpresponseorretry() failed : the gateway does not support nat-pmp
2024-11-02 09:08:29.461186+00:00errno=111 'Connection refused'
2024-11-02 09:08:29.461192+00:00initnatpmp() returned 0 (SUCCESS)
2024-11-02 09:08:29.461198+00:00using gateway : 10.96.0.1
2024-11-02 09:08:29.461211+00:00sendpublicaddressrequest returned 2 (SUCCESS)
2024-11-02 09:08:29.461219+00:00readnatpmpresponseorretry returned -7 (FAILED)
2024-11-02 09:08:29.461225+00:00[warn] ProtonVPN endpoint '149.36.51.3' is not enabled for P2P port forwarding, skipping port forward assignment...
2024-11-02 09:08:29.461231+00:00[info] Script finished to assign incoming port
2024-11-02 09:08:29.461241+00:002024-11-02T09:08:29.461241175Z

YAML :

services:
  arch-qbittorrentvpn:
    cap_add:
      - NET_ADMIN
    container_name: qbittorrentvpn
    environment:
      - VPN_ENABLED=yes
      - VPN_PROV=protonvpn
      - VPN_CLIENT=openvpn
      - VPN_USER=[username]+pmp
      - VPN_PASS=[password]
      - STRICT_PORT_FORWARD=yes
      - >-
        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
      - LAN_NETWORK=192.168.1.0/24
      - ENABLE_PRIVOXY=yes
      - PUID=568
      - PGID=568
      - WEBUI_PORT=8100
      - UMASK=000
      - DEBUG=false
    image: binhex/arch-qbittorrentvpn
    network_mode: bridge
    ports:
      - '8100:8100'
      - '49551:8118'
    restart: unless-stopped
    volumes:
      - /mnt/Data/configs/qbit:/config
      - /mnt/Media/downloads:/data
      - /etc/localtime:/etc/localtime:ro

Environnement :

  • Truenas Scale ElectricEel-24.10.0
  • VPN : ProtonVPN

UPDATE: Setting VPN_ENABLED to "no" allows me to access the UI. Do you have any idea why I encounter issues when the VPN is enabled? The container still freezes after defining WEBUI_PORT to 8100... but I see that there is already an issue opened about it on TrueNAS Scale.

@bradarussell
Copy link

I’m no expert, so I could be wrong on anything. But it looks like you have strict port forwarding enabled but are using a Proton VPN server that doesn’t support port forwarding. It also looks like there’s a problem with iptables. You may want to try enable the legacy option for that.

@namrrac
Copy link

namrrac commented Nov 7, 2024

I’m no expert, so I could be wrong on anything. But it looks like you have strict port forwarding enabled but are using a Proton VPN server that doesn’t support port forwarding. It also looks like there’s a problem with iptables. You may want to try enable the legacy option for that.

Yep, you are right on. The scrip won't start the qbittorrent script if there is no port forwarding when STRICT_PORT_FORWARD=yes
therefore you will not be able to access qbittorrent.

I have been banging my head at this problem for so long and I finally figured it out recently.

@tessierp
Copy link

tessierp commented Dec 25, 2024

Any solution to this? I'm having the exact same problem since the update... And weird, I can't even rollback to an earlier version, the images have been deleted.... Using PIA as my VPN Provider. Strict Port Forwarding enabled.. If the VPN is enabled, no WEB UI available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants