binhex / arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
GNU General Public License v3.0
479 stars 49 forks source link

Unraid - GUI Issue #261

Closed arnoldistuno closed 4 months ago

arnoldistuno commented 4 months ago

Hello, I am totally new to Unraid (as of a few months) and it has been awesome to learn through tutorials and learning to code. I have been working on an Arr stack and have had success with your awesome docker container for delugevpn. I wanted to pivot to Qbit as I hear it is faster and more efficient. I followed various guides, made sure ports were not duplicative, and matched (generally except port #) the settings from the similar deluge container. I added the openvpn file for express to the data folder under open-vpn.... and I cannot access the GUI. I am sure it is something stupid.... I searched the FAQ for the error messages and didn't find any... any help would be very appreciated! From what I can tell, the VPN is working and the container is running ok... but I just can't access teh webui. Thank you in advance and thank you for making these awesome containers! I did post the correct credentials... just x;d out.

Here is my log... Created by... . . . \ | || __ | | __ | | |/ | | _/ \ \/ / | _\ \ | | \ Y \ / > < | /|__| /| /_ >/_ \ \/ \/ \/ \/ \/ https://hub.docker.com/u/binhex/

2024-07-18 08:44:46.021324 [info] Host is running unRAID 2024-07-18 08:44:46.040458 [info] System information Linux 509dcfd60658 6.1.79-Unraid #1 SMP PREEMPT_DYNAMIC Fri Mar 29 13:34:03 PDT 2024 x86_64 GNU/Linux 2024-07-18 08:44:46.062785 [info] SHARED_NETWORK not defined (via -e SHARED_NETWORK), defaulting to 'no' 2024-07-18 08:44:46.086396 [info] PUID defined as '99' 2024-07-18 08:44:46.154959 [info] PGID defined as '100' 2024-07-18 08:44:46.192475 [info] UMASK defined as '000' 2024-07-18 08:44:46.215052 [info] Setting permissions recursively on '/config'... 2024-07-18 08:44:46.243596 [info] Deleting files in /tmp (non recursive)... 2024-07-18 08:44:46.276016 [info] VPN_ENABLED defined as 'yes' 2024-07-18 08:44:46.299323 [info] VPN_CLIENT defined as 'openvpn' 2024-07-18 08:44:46.321261 [info] VPN_PROV defined as 'custom' 2024-07-18 08:44:46.350408 [crit] No OpenVPN config file located in /config/openvpn/ (ovpn extension), please download from your VPN provider and then restart this container. 2024-07-18 08:44:46.368913 [info] Performing directory listing for '/config/openvpn/' before exiting... total 0 drwxrwxr-x 1 nobody users 0 Jul 18 08:44 . drwxrwxr-x 1 nobody users 62 Jul 18 08:44 .. Created by... . . . \ | || __ | | __ | | |/ | | _/ \ \/ / | _\ \ | | \ Y \ / > < | /|__| /| /_ >/_ \ \/ \/ \/ \/ \/ https://hub.docker.com/u/binhex/

2024-07-18 08:45:40.232179 [info] Host is running unRAID 2024-07-18 08:45:40.253473 [info] System information Linux 509dcfd60658 6.1.79-Unraid #1 SMP PREEMPT_DYNAMIC Fri Mar 29 13:34:03 PDT 2024 x86_64 GNU/Linux 2024-07-18 08:45:40.275192 [info] SHARED_NETWORK not defined (via -e SHARED_NETWORK), defaulting to 'no' 2024-07-18 08:45:40.296779 [info] PUID defined as '99' 2024-07-18 08:45:40.321462 [info] PGID defined as '100' 2024-07-18 08:45:40.351118 [info] UMASK defined as '000' 2024-07-18 08:45:40.372349 [info] Permissions already set for '/config' 2024-07-18 08:45:40.395037 [info] Deleting files in /tmp (non recursive)... 2024-07-18 08:45:40.427572 [info] VPN_ENABLED defined as 'yes' 2024-07-18 08:45:40.450823 [info] VPN_CLIENT defined as 'openvpn' 2024-07-18 08:45:40.476089 [info] VPN_PROV defined as 'custom' 2024-07-18 08:45:40.505332 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/my_expressvpnusa-_seattle_udp.ovpn 2024-07-18 08:45:40.555617 [warn] VPN configuration file /config/openvpn/my_expressvpnusa-_seattle_udp.ovpn remote protocol is missing or malformed, assuming protocol 'udp' 2024-07-18 08:45:40.574194 [info] VPN remote server(s) defined as 'usa-seattle-ca-version-2.expressnetw.com,' 2024-07-18 08:45:40.592928 [info] VPN remote port(s) defined as '1195,' 2024-07-18 08:45:40.611465 [info] VPN remote protcol(s) defined as 'udp,' 2024-07-18 08:45:40.633615 [info] VPN_DEVICE_TYPE defined as 'tun0' 2024-07-18 08:45:40.655442 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS) 2024-07-18 08:45:40.677114 [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-07-18 08:45:40.970619 [info] LAN_NETWORK defined as '192.168.5.0/24' 2024-07-18 08:45:41.003079 [info] LAN_NETWORK exported as '192.168.5.0/24' 2024-07-18 08:45:41.024974 [info] VPN_USER defined as 'wfodrj7whz3kftg28eba2uxy' 2024-07-18 08:45:41.046813 [info] VPN_PASS defined as 'bdwlcgnupj1xuqauutobufvj' 2024-07-18 08:45:41.071903 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports 2024-07-18 08:45:41.094410 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports 2024-07-18 08:45:41.116330 [info] ENABLE_STARTUP_SCRIPTS defined as 'no' 2024-07-18 08:45:41.139438 [info] ENABLE_SOCKS defined as 'no' 2024-07-18 08:45:41.161334 [info] ENABLE_PRIVOXY defined as 'yes' 2024-07-18 08:45:41.183392 [info] WEBUI_PORT defined as '8081' 2024-07-18 08:45:41.234135 [info] Starting Supervisor... 2024-07-18 08:45:41,412 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing 2024-07-18 08:45:41,413 INFO Set uid to user 0 succeeded 2024-07-18 08:45:41,414 INFO supervisord started with pid 7 2024-07-18 08:45:42,416 INFO spawned: 'start-script' with pid 306 2024-07-18 08:45:42,418 INFO spawned: 'watchdog-script' with pid 307 2024-07-18 08:45:42,419 INFO reaped unknown pid 8 (exit status 0) 2024-07-18 08:45:42,422 DEBG 'start-script' stdout output: [info] VPN is enabled, beginning configuration of VPN

2024-07-18 08:45:42,422 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2024-07-18 08:45:42,422 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2024-07-18 08:45:42,657 DEBG 'start-script' stdout output: [info] Adding 192.168.5.0/24 as route via adapter eth0

2024-07-18 08:45:42,659 DEBG 'start-script' stdout output: [info] ip route defined as follows...

2024-07-18 08:45:42,660 DEBG 'start-script' stdout output: default via 172.17.0.1 dev eth0 172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.3 192.168.5.0/24 via 172.17.0.1 dev eth0 local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1 local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1 broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1 local 172.17.0.3 dev eth0 table local proto kernel scope host src 172.17.0.3 broadcast 172.17.255.255 dev eth0 table local proto kernel scope link src 172.17.0.3

2024-07-18 08:45:42,660 DEBG 'start-script' stdout output:

2024-07-18 08:45:42,665 DEBG 'start-script' stdout output: iptable_mangle 16384 1 ip_tables 28672 3 iptable_filter,iptable_nat,iptable_mangle x_tables 45056 16 ip6table_filter,xt_conntrack,iptable_filter,ip6table_nat,xt_tcpudp,xt_addrtype,xt_CHECKSUM,xt_nat,ip6_tables,ipt_REJECT,ip_tables,iptable_nat,ip6table_mangle,xt_MASQUERADE,iptable_mangle,xt_mark

2024-07-18 08:45:42,665 DEBG 'start-script' stdout output: [info] iptable_mangle support detected, adding fwmark for tables

2024-07-18 08:45:42,728 DEBG 'start-script' stdout output: [info] iptables defined as follows...

2024-07-18 08:45:42,729 DEBG 'start-script' stdout output: -P INPUT DROP -P FORWARD DROP -P OUTPUT DROP -A INPUT -s 50.118.162.7/32 -i eth0 -j ACCEPT -A INPUT -s 50.118.162.72/32 -i eth0 -j ACCEPT -A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT -A INPUT -s 50.118.162.7/32 -i eth0 -j ACCEPT -A INPUT -s 50.118.162.72/32 -i eth0 -j ACCEPT -A INPUT -i eth0 -p tcp -m tcp --dport 8081 -j ACCEPT -A INPUT -i eth0 -p udp -m udp --dport 8081 -j ACCEPT -A INPUT -s 192.168.5.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 8118 -j ACCEPT -A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -i tun0 -j ACCEPT -A OUTPUT -d 50.118.162.7/32 -o eth0 -j ACCEPT -A OUTPUT -d 50.118.162.72/32 -o eth0 -j ACCEPT -A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT -A OUTPUT -d 50.118.162.7/32 -o eth0 -j ACCEPT -A OUTPUT -d 50.118.162.72/32 -o eth0 -j ACCEPT -A OUTPUT -o eth0 -p tcp -m tcp --sport 8081 -j ACCEPT -A OUTPUT -o eth0 -p udp -m udp --sport 8081 -j ACCEPT -A OUTPUT -s 172.17.0.0/16 -d 192.168.5.0/24 -o eth0 -p tcp -m tcp --sport 8118 -j ACCEPT -A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT -A OUTPUT -o lo -j ACCEPT -A OUTPUT -o tun0 -j ACCEPT

2024-07-18 08:45:42,731 DEBG 'start-script' stdout output:

2024-07-18 08:45:42,731 DEBG 'start-script' stdout output: [info] Starting OpenVPN (non daemonised)...

2024-07-18 08:45:42,748 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 Note: '--allow-compression' is not set to 'no', disabling data channel offload.

2024-07-18 08:45:42,748 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 WARNING: file 'credentials.conf' is group or others accessible 2024-07-18 08:45:42 OpenVPN 2.6.11 [git:makepkg/ddf6bf6d2a135835+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO] built on Jun 20 2024 2024-07-18 08:45:42 library versions: OpenSSL 3.3.1 4 Jun 2024, LZO 2.10 2024-07-18 08:45:42 DCO version: N/A

2024-07-18 08:45:42,748 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead. 2024-07-18 08:45:42 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2024-07-18 08:45:42,750 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 TCP/UDP: Preserving recently used remote address: [AF_INET]50.118.162.7:1195 2024-07-18 08:45:42 Socket Buffers: R=[212992->1048576] S=[212992->1048576]

2024-07-18 08:45:42,751 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 UDPv4 link local: (not bound) 2024-07-18 08:45:42 UDPv4 link remote: [AF_INET]50.118.162.7:1195

2024-07-18 08:45:42,764 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 TLS: Initial packet from [AF_INET]50.118.162.7:1195, sid=a7f7afb1 bb059565

2024-07-18 08:45:42,779 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 VERIFY OK: depth=1, C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=ExpressVPN CA, emailAddress=support@expressvpn.com

2024-07-18 08:45:42,779 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 VERIFY OK: nsCertType=SERVER 2024-07-18 08:45:42 VERIFY X509NAME OK: C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=Server-10895-0a, emailAddress=support@expressvpn.com 2024-07-18 08:45:42 VERIFY OK: depth=0, C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=Server-10895-0a, emailAddress=support@expressvpn.com

2024-07-18 08:45:42,794 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 2048 bits RSA, signature: RSA-SHA256, peer temporary key: 253 bits X25519 2024-07-18 08:45:42 [Server-10895-0a] Peer Connection Initiated with [AF_INET]50.118.162.7:1195 2024-07-18 08:45:42 TLS: move_session: dest=TM_ACTIVE src=TM_INITIAL reinit_src=1

2024-07-18 08:45:42,794 DEBG 'start-script' stdout output: 2024-07-18 08:45:42 TLS: tls_multi_process: initial untrusted session promoted to trusted

2024-07-18 08:45:43,895 DEBG 'start-script' stdout output: 2024-07-18 08:45:43 SENT CONTROL [Server-10895-0a]: 'PUSH_REQUEST' (status=1)

2024-07-18 08:45:43,908 DEBG 'start-script' stdout output: 2024-07-18 08:45:43 PUSH: Received control message: 'PUSH_REPLY,topology net30,route 10.108.0.1,redirect-gateway def1,dhcp-option DNS 10.108.0.1,comp-lzo no,ping 10,ping-restart 60,ifconfig 10.108.130.125 10.108.130.126,peer-id 4,cipher AES-256-GCM,protocol-flags cc-exit tls-ekm dyn-tls-crypt,tun-mtu 1500'

2024-07-18 08:45:43,908 DEBG 'start-script' stdout output: 2024-07-18 08:45:43 OPTIONS IMPORT: --ifconfig/up options modified 2024-07-18 08:45:43 OPTIONS IMPORT: route options modified 2024-07-18 08:45:43 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified 2024-07-18 08:45:43 OPTIONS IMPORT: tun-mtu set to 1500 2024-07-18 08:45:43 net_route_v4_best_gw query: dst 0.0.0.0 2024-07-18 08:45:43 net_route_v4_best_gw result: via 172.17.0.1 dev eth0 2024-07-18 08:45:43 ROUTE_GATEWAY 172.17.0.1/255.255.0.0 IFACE=eth0 HWADDR=02:42:ac:11:00:03

2024-07-18 08:45:43,909 DEBG 'start-script' stdout output: 2024-07-18 08:45:43 TUN/TAP device tun0 opened 2024-07-18 08:45:43 net_iface_mtu_set: mtu 1500 for tun0 2024-07-18 08:45:43 net_iface_up: set tun0 up 2024-07-18 08:45:43 net_addr_ptp_v4_add: 10.108.130.125 peer 10.108.130.126 dev tun0 2024-07-18 08:45:43 /root/openvpnup.sh tun0 1500 0 10.108.130.125 10.108.130.126 init

2024-07-18 08:45:43,912 DEBG 'start-script' stdout output: 2024-07-18 08:45:43 Data Channel: cipher 'AES-256-GCM', peer-id: 4, compression: 'stub' 2024-07-18 08:45:43 Timers: ping 10, ping-restart 60 2024-07-18 08:45:43 Protocol options: protocol-flags cc-exit tls-ekm dyn-tls-crypt

2024-07-18 08:45:46,014 DEBG 'start-script' stdout output: 2024-07-18 08:45:46 net_route_v4_add: 50.118.162.7/32 via 172.17.0.1 dev [NULL] table 0 metric -1

2024-07-18 08:45:46,014 DEBG 'start-script' stdout output: 2024-07-18 08:45:46 net_route_v4_add: 0.0.0.0/1 via 10.108.130.126 dev [NULL] table 0 metric -1 2024-07-18 08:45:46 net_route_v4_add: 128.0.0.0/1 via 10.108.130.126 dev [NULL] table 0 metric -1 2024-07-18 08:45:46 net_route_v4_add: 10.108.0.1/32 via 10.108.130.126 dev [NULL] table 0 metric -1 2024-07-18 08:45:46 Initialization Sequence Completed

2024-07-18 08:45:49,949 DEBG 'start-script' stdout output: [info] Attempting to get external IP using 'http://checkip.amazonaws.com'...

2024-07-18 08:45:50,152 DEBG 'start-script' stdout output: [info] Successfully retrieved external IP address 173.239.254.180

2024-07-18 08:45:50,152 DEBG 'start-script' stdout output: [info] VPN provider 'custom' not supported for automatic port forwarding, skipping incoming port assignment

2024-07-18 08:45:50,187 DEBG 'watchdog-script' stdout output: [info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.108.130.125 different, marking for reconfigure

2024-07-18 08:45:50,191 DEBG 'watchdog-script' stdout output: [info] qBittorrent not running

2024-07-18 08:45:50,195 DEBG 'watchdog-script' stdout output: [info] Privoxy not running

2024-07-18 08:45:50,195 DEBG 'watchdog-script' stdout output: [info] qBittorrent config file doesnt exist, copying default to '/config/qBittorrent/config/'...

2024-07-18 08:45:50,200 DEBG 'watchdog-script' stdout output: [info] Removing session lock file (if it exists)...

2024-07-18 08:45:50,236 DEBG 'watchdog-script' stdout output: [info] Attempting to start qBittorrent...

2024-07-18 08:45:50,240 DEBG 'watchdog-script' stdout output: [info] qBittorrent process started [info] Waiting for qBittorrent process to start listening on port 8081...

WebUI will be started shortly after internal preparations. Please wait...

**** Information **** To control qBittorrent, access the WebUI at: http://localhost:8081

The WebUI administrator username is: admin The WebUI administrator password was not set. A temporary password is provided for this session: aEnfg6UDk You should set your own password in program preferences. 2024-07-18 08:45:50,462 DEBG 'watchdog-script' stdout output: [info] qBittorrent process listening on port 8081

2024-07-18 08:45:50,464 DEBG 'watchdog-script' stdout output: [info] Configuring Privoxy...

2024-07-18 08:45:50,514 DEBG 'watchdog-script' stdout output: [info] Attempting to start Privoxy...

2024-07-18 08:45:51,519 DEBG 'watchdog-script' stdout output: [info] Privoxy process started [info] Waiting for Privoxy process to start listening on port 8118...

2024-07-18 08:45:51,525 DEBG 'watchdog-script' stdout output: [info] Privoxy process listening on port 8118

2024-07-18 08:48:53,708 INFO reaped unknown pid 56 (terminated by SIGTERM) 2024-07-18 08:48:53,708 WARN received SIGTERM indicating exit request 2024-07-18 08:48:53,708 DEBG killing watchdog-script (pid 307) with signal SIGTERM 2024-07-18 08:48:53,709 INFO waiting for start-script, watchdog-script to die Catching signal: SIGTERM Exiting cleanly 2024-07-18 08:48:53,709 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 23353766853088 for <Subprocess at 23353766854288 with name watchdog-script in state STOPPING> (stdout)> 2024-07-18 08:48:53,709 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 23353767040768 for <Subprocess at 23353766854288 with name watchdog-script in state STOPPING> (stderr)> 2024-07-18 08:48:53,709 WARN stopped: watchdog-script (exit status 143) 2024-07-18 08:48:53,709 DEBG received SIGCHLD indicating a child quit 2024-07-18 08:48:53,709 DEBG killing start-script (pid 306) with signal SIGTERM 2024-07-18 08:48:54,710 DEBG fd 8 closed, stopped monitoring <POutputDispatcher at 23353780955584 for <Subprocess at 23353768042016 with name start-script in state STOPPING> (stdout)> 2024-07-18 08:48:54,710 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 23353778567072 for <Subprocess at 23353768042016 with name start-script in state STOPPING> (stderr)> 2024-07-18 08:48:54,711 WARN stopped: start-script (terminated by SIGTERM) 2024-07-18 08:48:54,711 DEBG received SIGCHLD indicating a child quit Created by... . . . \ | || __ | | __ | | |/ | | _/ \ \/ / | _\ \ | | \ Y \ / > < | /|__| /| /_ >/_ \ \/ \/ \/ \/ \/ https://hub.docker.com/u/binhex/

2024-07-18 08:49:14.506383 [info] Host is running unRAID 2024-07-18 08:49:14.526883 [info] System information Linux 03226b414e2e 6.1.79-Unraid #1 SMP PREEMPT_DYNAMIC Fri Mar 29 13:34:03 PDT 2024 x86_64 GNU/Linux 2024-07-18 08:49:14.549196 [info] SHARED_NETWORK not defined (via -e SHARED_NETWORK), defaulting to 'no' 2024-07-18 08:49:14.570522 [info] PUID defined as '99' 2024-07-18 08:49:14.636449 [info] PGID defined as '100' 2024-07-18 08:49:14.674168 [info] UMASK defined as '000' 2024-07-18 08:49:14.695443 [info] Permissions already set for '/config' 2024-07-18 08:49:14.719543 [info] Deleting files in /tmp (non recursive)... 2024-07-18 08:49:14.751892 [info] VPN_ENABLED defined as 'yes' 2024-07-18 08:49:14.775410 [info] VPN_CLIENT defined as 'openvpn' 2024-07-18 08:49:14.796674 [info] VPN_PROV defined as 'custom' 2024-07-18 08:49:14.826556 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/my_expressvpnusa-_seattle_udp.ovpn 2024-07-18 08:49:14.876799 [warn] VPN configuration file /config/openvpn/my_expressvpnusa-_seattle_udp.ovpn remote protocol is missing or malformed, assuming protocol 'udp' 2024-07-18 08:49:14.895512 [info] VPN remote server(s) defined as 'usa-seattle-ca-version-2.expressnetw.com,' 2024-07-18 08:49:14.914237 [info] VPN remote port(s) defined as '1195,' 2024-07-18 08:49:14.932898 [info] VPN remote protcol(s) defined as 'udp,' 2024-07-18 08:49:14.955055 [info] VPN_DEVICE_TYPE defined as 'tun0' 2024-07-18 08:49:14.976808 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS) 2024-07-18 08:49:14.998649 [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-07-18 08:49:15.293079 [info] LAN_NETWORK defined as '255.255.255.255/24' 2024-07-18 08:49:15.322087 [warn] Network '255.255.255.255/24' incorrectly defined, see Q4. https://github.com/binhex/documentation/blob/master/docker/faq/vpn.md 2024-07-18 08:49:15.344248 [info] Network corrected to '255.255.255.0/24' 2024-07-18 08:49:15.366356 [info] LAN_NETWORK exported as '255.255.255.0/24' 2024-07-18 08:49:15.388308 [info] VPN_USER defined as 'XXXXXXXX' 2024-07-18 08:49:15.410259 [info] VPN_PASS defined as 'XXXXXXXX' 2024-07-18 08:49:15.435469 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports 2024-07-18 08:49:15.457605 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports 2024-07-18 08:49:15.479567 [info] ENABLE_STARTUP_SCRIPTS defined as 'no' 2024-07-18 08:49:15.501779 [info] ENABLE_SOCKS defined as 'no' 2024-07-18 08:49:15.523722 [info] ENABLE_PRIVOXY defined as 'yes' 2024-07-18 08:49:15.545852 [info] WEBUI_PORT defined as '8081' 2024-07-18 08:49:15.597759 [info] Starting Supervisor... 2024-07-18 08:49:15,774 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing 2024-07-18 08:49:15,774 INFO Set uid to user 0 succeeded 2024-07-18 08:49:15,776 INFO supervisord started with pid 7 2024-07-18 08:49:16,778 INFO spawned: 'start-script' with pid 313 2024-07-18 08:49:16,780 INFO spawned: 'watchdog-script' with pid 314 2024-07-18 08:49:16,780 INFO reaped unknown pid 8 (exit status 0) 2024-07-18 08:49:16,784 DEBG 'start-script' stdout output: [info] VPN is enabled, beginning configuration of VPN

2024-07-18 08:49:16,784 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2024-07-18 08:49:16,784 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2024-07-18 08:49:17,017 DEBG 'start-script' stdout output: [info] Adding 255.255.255.0/24 as route via adapter eth0

2024-07-18 08:49:17,019 DEBG 'start-script' stdout output: [info] ip route defined as follows...

2024-07-18 08:49:17,020 DEBG 'start-script' stdout output: default via 172.17.0.1 dev eth0 172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.3 255.255.255.0/24 via 172.17.0.1 dev eth0

2024-07-18 08:49:17,020 DEBG 'start-script' stdout output: local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1 local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1 broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1 local 172.17.0.3 dev eth0 table local proto kernel scope host src 172.17.0.3 broadcast 172.17.255.255 dev eth0 table local proto kernel scope link src 172.17.0.3

2024-07-18 08:49:17,021 DEBG 'start-script' stdout output:

2024-07-18 08:49:17,025 DEBG 'start-script' stdout output: iptable_mangle 16384 1 ip_tables 28672 3 iptable_filter,iptable_nat,iptable_mangle x_tables 45056 16 ip6table_filter,xt_conntrack,iptable_filter,ip6table_nat,xt_tcpudp,xt_addrtype,xt_CHECKSUM,xt_nat,ip6_tables,ipt_REJECT,ip_tables,iptable_nat,ip6table_mangle,xt_MASQUERADE,iptable_mangle,xt_mark

2024-07-18 08:49:17,025 DEBG 'start-script' stdout output: [info] iptable_mangle support detected, adding fwmark for tables

2024-07-18 08:49:17,088 DEBG 'start-script' stdout output: [info] iptables defined as follows...

2024-07-18 08:49:17,089 DEBG 'start-script' stdout output: -P INPUT DROP -P FORWARD DROP -P OUTPUT DROP -A INPUT -s 50.118.162.7/32 -i eth0 -j ACCEPT -A INPUT -s 50.118.162.72/32 -i eth0 -j ACCEPT -A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT -A INPUT -s 50.118.162.7/32 -i eth0 -j ACCEPT -A INPUT -s 50.118.162.72/32 -i eth0 -j ACCEPT -A INPUT -i eth0 -p tcp -m tcp --dport 8081 -j ACCEPT -A INPUT -i eth0 -p udp -m udp --dport 8081 -j ACCEPT -A INPUT -s 255.255.255.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 8118 -j ACCEPT -A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -i tun0 -j ACCEPT -A OUTPUT -d 50.118.162.7/32 -o eth0 -j ACCEPT -A OUTPUT -d 50.118.162.72/32 -o eth0 -j ACCEPT -A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT -A OUTPUT -d 50.118.162.7/32 -o eth0 -j ACCEPT -A OUTPUT -d 50.118.162.72/32 -o eth0 -j ACCEPT -A OUTPUT -o eth0 -p tcp -m tcp --sport 8081 -j ACCEPT -A OUTPUT -o eth0 -p udp -m udp --sport 8081 -j ACCEPT -A OUTPUT -s 172.17.0.0/16 -d 255.255.255.0/24 -o eth0 -p tcp -m tcp --sport 8118 -j ACCEPT -A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT -A OUTPUT -o lo -j ACCEPT -A OUTPUT -o tun0 -j ACCEPT

2024-07-18 08:49:17,091 DEBG 'start-script' stdout output:

2024-07-18 08:49:17,091 DEBG 'start-script' stdout output: [info] Starting OpenVPN (non daemonised)...

2024-07-18 08:49:17,106 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 Note: '--allow-compression' is not set to 'no', disabling data channel offload.

2024-07-18 08:49:17,107 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 WARNING: file 'credentials.conf' is group or others accessible 2024-07-18 08:49:17 OpenVPN 2.6.11 [git:makepkg/ddf6bf6d2a135835+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO] built on Jun 20 2024 2024-07-18 08:49:17 library versions: OpenSSL 3.3.1 4 Jun 2024, LZO 2.10 2024-07-18 08:49:17 DCO version: N/A

2024-07-18 08:49:17,107 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead. 2024-07-18 08:49:17 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2024-07-18 08:49:17,108 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 TCP/UDP: Preserving recently used remote address: [AF_INET]50.118.162.7:1195 2024-07-18 08:49:17 Socket Buffers: R=[212992->1048576] S=[212992->1048576] 2024-07-18 08:49:17 UDPv4 link local: (not bound) 2024-07-18 08:49:17 UDPv4 link remote: [AF_INET]50.118.162.7:1195

2024-07-18 08:49:17,124 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 TLS: Initial packet from [AF_INET]50.118.162.7:1195, sid=9e2f1230 ada15b8a

2024-07-18 08:49:17,141 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 VERIFY OK: depth=1, C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=ExpressVPN CA, emailAddress=support@expressvpn.com

2024-07-18 08:49:17,141 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 VERIFY OK: nsCertType=SERVER 2024-07-18 08:49:17 VERIFY X509NAME OK: C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=Server-10895-0a, emailAddress=support@expressvpn.com 2024-07-18 08:49:17 VERIFY OK: depth=0, C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=Server-10895-0a, emailAddress=support@expressvpn.com

2024-07-18 08:49:17,158 DEBG 'start-script' stdout output: 2024-07-18 08:49:17 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 2048 bits RSA, signature: RSA-SHA256, peer temporary key: 253 bits X25519 2024-07-18 08:49:17 [Server-10895-0a] Peer Connection Initiated with [AF_INET]50.118.162.7:1195 2024-07-18 08:49:17 TLS: move_session: dest=TM_ACTIVE src=TM_INITIAL reinit_src=1 2024-07-18 08:49:17 TLS: tls_multi_process: initial untrusted session promoted to trusted

2024-07-18 08:49:18,321 DEBG 'start-script' stdout output: 2024-07-18 08:49:18 SENT CONTROL [Server-10895-0a]: 'PUSH_REQUEST' (status=1)

2024-07-18 08:49:18,334 DEBG 'start-script' stdout output: 2024-07-18 08:49:18 PUSH: Received control message: 'PUSH_REPLY,topology net30,route 10.108.0.1,redirect-gateway def1,dhcp-option DNS 10.108.0.1,comp-lzo no,ping 10,ping-restart 60,ifconfig 10.108.130.161 10.108.130.162,peer-id 84,cipher AES-256-GCM,protocol-flags cc-exit tls-ekm dyn-tls-crypt,tun-mtu 1500' 2024-07-18 08:49:18 OPTIONS IMPORT: --ifconfig/up options modified 2024-07-18 08:49:18 OPTIONS IMPORT: route options modified 2024-07-18 08:49:18 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified 2024-07-18 08:49:18 OPTIONS IMPORT: tun-mtu set to 1500 2024-07-18 08:49:18 net_route_v4_best_gw query: dst 0.0.0.0

2024-07-18 08:49:18,334 DEBG 'start-script' stdout output: 2024-07-18 08:49:18 net_route_v4_best_gw result: via 172.17.0.1 dev eth0 2024-07-18 08:49:18 ROUTE_GATEWAY 172.17.0.1/255.255.0.0 IFACE=eth0 HWADDR=02:42:ac:11:00:03 2024-07-18 08:49:18 TUN/TAP device tun0 opened 2024-07-18 08:49:18 net_iface_mtu_set: mtu 1500 for tun0 2024-07-18 08:49:18 net_iface_up: set tun0 up

2024-07-18 08:49:18,334 DEBG 'start-script' stdout output: 2024-07-18 08:49:18 net_addr_ptp_v4_add: 10.108.130.161 peer 10.108.130.162 dev tun0 2024-07-18 08:49:18 /root/openvpnup.sh tun0 1500 0 10.108.130.161 10.108.130.162 init

2024-07-18 08:49:18,337 DEBG 'start-script' stdout output: 2024-07-18 08:49:18 Data Channel: cipher 'AES-256-GCM', peer-id: 84, compression: 'stub' 2024-07-18 08:49:18 Timers: ping 10, ping-restart 60 2024-07-18 08:49:18 Protocol options: protocol-flags cc-exit tls-ekm dyn-tls-crypt

2024-07-18 08:49:20,501 DEBG 'start-script' stdout output: 2024-07-18 08:49:20 net_route_v4_add: 50.118.162.7/32 via 172.17.0.1 dev [NULL] table 0 metric -1

2024-07-18 08:49:20,501 DEBG 'start-script' stdout output: 2024-07-18 08:49:20 net_route_v4_add: 0.0.0.0/1 via 10.108.130.162 dev [NULL] table 0 metric -1 2024-07-18 08:49:20 net_route_v4_add: 128.0.0.0/1 via 10.108.130.162 dev [NULL] table 0 metric -1 2024-07-18 08:49:20 net_route_v4_add: 10.108.0.1/32 via 10.108.130.162 dev [NULL] table 0 metric -1 2024-07-18 08:49:20 Initialization Sequence Completed

2024-07-18 08:49:24,373 DEBG 'start-script' stdout output: [info] Attempting to get external IP using 'http://checkip.amazonaws.com'...

2024-07-18 08:49:24,577 DEBG 'start-script' stdout output: [info] Successfully retrieved external IP address 173.239.254.180

2024-07-18 08:49:24,577 DEBG 'start-script' stdout output: [info] VPN provider 'custom' not supported for automatic port forwarding, skipping incoming port assignment

2024-07-18 08:49:24,650 DEBG 'watchdog-script' stdout output: [info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.108.130.161 different, marking for reconfigure

2024-07-18 08:49:24,654 DEBG 'watchdog-script' stdout output: [info] qBittorrent not running

2024-07-18 08:49:24,658 DEBG 'watchdog-script' stdout output: [info] Privoxy not running

2024-07-18 08:49:24,659 DEBG 'watchdog-script' stdout output: [info] qBittorrent config file already exists, skipping copy [info] Removing session lock file (if it exists)...

2024-07-18 08:49:24,696 DEBG 'watchdog-script' stdout output: [info] Attempting to start qBittorrent...

2024-07-18 08:49:24,700 DEBG 'watchdog-script' stdout output: [info] qBittorrent process started [info] Waiting for qBittorrent process to start listening on port 8081...

WebUI will be started shortly after internal preparations. Please wait...

**** Information **** To control qBittorrent, access the WebUI at: http://localhost:8081

The WebUI administrator username is: admin The WebUI administrator password was not set. A temporary password is provided for this session: XXXXXXXX You should set your own password in program preferences. 2024-07-18 08:49:24,921 DEBG 'watchdog-script' stdout output: [info] qBittorrent process listening on port 8081

2024-07-18 08:49:24,923 DEBG 'watchdog-script' stdout output: [info] Attempting to start Privoxy...

2024-07-18 08:49:25,928 DEBG 'watchdog-script' stdout output: [info] Privoxy process started [info] Waiting for Privoxy process to start listening on port 8118...

2024-07-18 08:49:25,934 DEBG 'watchdog-script' stdout output: [info] Privoxy process listening on port 8118

Thank you in advance!!

firrae commented 1 month ago

If anyone runs into this in the future on Unraid, the template in community apps is busted if you change the default web ui port. You'll need to change the default web ui mapping to be the port you select for both the container and host ports.