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

[TrueNAS Scale | arch-qbittorrentvpn] "Downloading Metadata" stuck - External IP/DNS Connectivity Issue with WireGuard Configuration #307

Open
shaft8472 opened this issue Jan 25, 2025 · 0 comments

Comments

@shaft8472
Copy link

system: TrueNAS Scale using a custom ix-app
version: ElectricEel-24.10.1 (Dragonfish previously, same problem.)
arch-qbittorrentvpn version: 4.6.7 (latest gives the same issues)
Reason for 4.6.7 is because that is the latest version qBitrr works with.

I've been using arch-qbittorrentvpn for quite a while now. About 2/3 weeks ago I noticed that qBittorrent wasn't downloading anything anymore and kept saying "downloading metadata". Tests failed because there's no connection to the outside. I've restarted the custom-app on my TrueNAS Scale system, upgraded from DragonFish to ElectricEel and changed my DNS servers. Normally I am using my own Pi-hole server but I've made sure it uses others for testing purposes as well.

As far as I can tell the container "Cannot determine external IP address" due to DNS problems. But I do not know how to fix it. I hope someone has an awnser or can point me in the right direction.

Below is the log:

2025-01-25 14:16:27.667072+00:00Created by...
2025-01-25 14:16:27.667137+00:00___.   .__       .__
2025-01-25 14:16:27.667150+00:00\_ |__ |__| ____ |  |__   ____ ___  ___
2025-01-25 14:16:27.667159+00:00| __ \|  |/    \|  |  \_/ __ \\  \/  /
2025-01-25 14:16:27.667169+00:00| \_\ \  |   |  \   Y  \  ___/ >    <
2025-01-25 14:16:27.667186+00:00|___  /__|___|  /___|  /\___  >__/\_ \
2025-01-25 14:16:27.667196+00:00\/        \/     \/     \/      \/
2025-01-25 14:16:27.667205+00:00https://hub.docker.com/u/binhex/
2025-01-25 14:16:27.667214+00:002025-01-25T14:16:27.667214814Z
2025-01-25 14:16:27.730548+00:002025-01-25 15:16:27.729978 [info] System information: Linux qbittorrent 6.6.44-production+truenas #1 SMP PREEMPT_DYNAMIC Mon Dec 16 20:59:32 UTC 2024 x86_64 GNU/Linux
2025-01-25 14:16:27.779023+00:002025-01-25 15:16:27.778734 [info] Image tags: INT_RELEASE_TAG=2024073001,IMAGE_RELEASE_TAG=4.6.7-1-01
2025-01-25 14:16:27.833404+00:002025-01-25 15:16:27.833193 [info] PUID defined as '0'
2025-01-25 14:16:28.066706+00:002025-01-25 15:16:28.066426 [info] PGID defined as '0'
2025-01-25 14:16:28.179726+00:002025-01-25 15:16:28.179405 [info] UMASK defined as '0022'
2025-01-25 14:16:28.229216+00:002025-01-25 15:16:28.228872 [info] Permissions already set for '/config'
2025-01-25 14:16:28.280492+00:002025-01-25 15:16:28.280195 [info] Deleting files in /tmp (non recursive)...
2025-01-25 14:16:28.335759+00:002025-01-25 15:16:28.335466 [info] VPN_ENABLED defined as 'yes'
2025-01-25 14:16:28.388507+00:002025-01-25 15:16:28.388200 [info] VPN_CLIENT defined as 'wireguard'
2025-01-25 14:16:28.438693+00:002025-01-25 15:16:28.438439 [info] VPN_PROV defined as 'custom'
2025-01-25 14:16:28.501358+00:002025-01-25 15:16:28.501025 [info] WireGuard config file (conf extension) is located at /config/wireguard/wg0.conf
2025-01-25 14:16:28.568390+00:002025-01-25 15:16:28.568073 [info] VPN_REMOTE_SERVER defined as '185.213.155.74'
2025-01-25 14:16:28.620259+00:002025-01-25 15:16:28.619952 [info] VPN_REMOTE_PORT defined as '51820'
2025-01-25 14:16:28.667189+00:002025-01-25 15:16:28.666873 [info] VPN_DEVICE_TYPE defined as 'wg0'
2025-01-25 14:16:28.715589+00:002025-01-25 15:16:28.715242 [info] VPN_REMOTE_PROTOCOL defined as 'udp'
2025-01-25 14:16:28.768198+00:002025-01-25 15:16:28.767928 [info] USERSPACE_WIREGUARD defined as 'yes'
2025-01-25 14:16:28.820343+00:002025-01-25 15:16:28.820031 [info] NAME_SERVERS defined as '192.168.205.101,1.1.1.1,1.0.0.1'
2025-01-25 14:16:28.835981+00:00modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/6.6.44-production+truenas
2025-01-25 14:16:28.836265+00:00ip6tables v1.8.10 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
2025-01-25 14:16:28.836308+00:00Perhaps ip6tables or your kernel needs to be upgraded.
2025-01-25 14:16:28.883999+00:002025-01-25 15:16:28.883708 [warn] ip6tables default policies not available, skipping ip6tables drops
2025-01-25 14:16:29.337096+00:002025-01-25 15:16:29.336889 [info] LAN_NETWORK defined as '192.168.200.0/24,192.168.199.0/24,192.168.203.0/24'
2025-01-25 14:16:29.424133+00:002025-01-25 15:16:29.423858 [info] LAN_NETWORK exported as '192.168.200.0/24,192.168.199.0/24,192.168.203.0/24'
2025-01-25 14:16:29.473798+00:002025-01-25 15:16:29.473536 [warn] VPN_USER not defined (via -e VPN_USER), assuming authentication via other method
2025-01-25 14:16:29.524039+00:002025-01-25 15:16:29.523766 [warn] VPN_PASS not defined (via -e VPN_PASS), assuming authentication via other method
2025-01-25 14:16:29.580089+00:002025-01-25 15:16:29.579777 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports
2025-01-25 14:16:29.631763+00:002025-01-25 15:16:29.631496 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports
2025-01-25 14:16:29.681330+00:002025-01-25 15:16:29.681023 [info] ENABLE_STARTUP_SCRIPTS defined as 'no'
2025-01-25 14:16:29.733559+00:002025-01-25 15:16:29.733255 [warn] ENABLE_SOCKS not defined (via -e ENABLE_SOCKS), defaulting to 'no'
2025-01-25 14:16:29.783217+00:002025-01-25 15:16:29.782943 [info] ENABLE_PRIVOXY defined as 'no'
2025-01-25 14:16:29.835509+00:002025-01-25 15:16:29.835152 [info] WEBUI_PORT defined as '8080'
2025-01-25 14:18:27.874962+00:002025-01-25 15:18:27.874601 [info] SHARED_NETWORK not defined (via -e SHARED_NETWORK), defaulting to 'no'
2025-01-25 14:18:27.923651+00:002025-01-25 15:18:27.923307 [info] Starting Supervisor...
2025-01-25 14:18:28.327873+00:002025-01-25 15:18:28,327 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2025-01-25 14:18:28.327939+00:002025-01-25 15:18:28,327 INFO Set uid to user 0 succeeded
2025-01-25 14:18:28.334101+00:002025-01-25 15:18:28,333 INFO supervisord started with pid 7
2025-01-25 14:18:29.338625+00:002025-01-25 15:18:29,338 INFO spawned: 'start-script' with pid 282
2025-01-25 14:18:29.341740+00:002025-01-25 15:18:29,341 INFO spawned: 'watchdog-script' with pid 283
2025-01-25 14:18:29.342223+00:002025-01-25 15:18:29,342 INFO reaped unknown pid 8 (exit status 0)
2025-01-25 14:18:29.349678+00:002025-01-25 15:18:29,349 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.349740+00:00[info] VPN is enabled, beginning configuration of VPN
2025-01-25 14:18:29.349779+00:002025-01-25T14:18:29.349779827Z
2025-01-25 14:18:29.349855+00:002025-01-25 15:18:29,349 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2025-01-25 14:18:29.350110+00:002025-01-25 15:18:29,349 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2025-01-25 14:18:29.718776+00:002025-01-25 15:18:29,718 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.718827+00:00[info] Adding 192.168.200.0/24 as route via adapter eth0
2025-01-25 14:18:29.718839+00:002025-01-25T14:18:29.718839646Z
2025-01-25 14:18:29.729216+00:002025-01-25 15:18:29,729 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.729258+00:00[info] Adding 192.168.199.0/24 as route via adapter eth0
2025-01-25 14:18:29.729293+00:002025-01-25T14:18:29.729293657Z
2025-01-25 14:18:29.739759+00:002025-01-25 15:18:29,739 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.739807+00:00[info] Adding 192.168.203.0/24 as route via adapter eth0
2025-01-25 14:18:29.739819+00:002025-01-25T14:18:29.739819891Z
2025-01-25 14:18:29.742098+00:002025-01-25 15:18:29,741 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.742155+00:00[info] ip route defined as follows...
2025-01-25 14:18:29.742171+00:00--------------------
2025-01-25 14:18:29.742185+00:002025-01-25T14:18:29.742185937Z
2025-01-25 14:18:29.744312+00:002025-01-25 15:18:29,744 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.744366+00:00default via 172.16.6.1 dev eth0 
2025-01-25 14:18:29.744378+00:00172.16.6.0/24 dev eth0 proto kernel scope link src 172.16.6.2 
2025-01-25 14:18:29.744387+00:00192.168.199.0/24 via 172.16.6.1 dev eth0 
2025-01-25 14:18:29.744396+00:00192.168.200.0/24 via 172.16.6.1 dev eth0 
2025-01-25 14:18:29.744405+00:00192.168.203.0/24 via 172.16.6.1 dev eth0 
2025-01-25 14:18:29.744421+00:00local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1 
2025-01-25 14:18:29.744431+00:00local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1 
2025-01-25 14:18:29.744440+00:00broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1 
2025-01-25 14:18:29.744449+00:00local 172.16.6.2 dev eth0 table local proto kernel scope host src 172.16.6.2 
2025-01-25 14:18:29.744462+00:00broadcast 172.16.6.255 dev eth0 table local proto kernel scope link src 172.16.6.2 
2025-01-25 14:18:29.744471+00:002025-01-25T14:18:29.744471715Z
2025-01-25 14:18:29.744526+00:002025-01-25 15:18:29,744 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.744556+00:00local ::1 dev lo table local proto kernel metric 0 pref medium
2025-01-25 14:18:29.744580+00:002025-01-25T14:18:29.744580085Z
2025-01-25 14:18:29.744844+00:002025-01-25 15:18:29,744 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.744888+00:00--------------------
2025-01-25 14:18:29.744900+00:002025-01-25T14:18:29.744900891Z
2025-01-25 14:18:29.753120+00:002025-01-25 15:18:29,752 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.753181+00:00iptable_mangle         12288  0
2025-01-25 14:18:29.753205+00:00ip_tables              28672  3 iptable_filter,iptable_raw,iptable_mangle
2025-01-25 14:18:29.753215+00:00x_tables               53248  13 xt_conntrack,iptable_filter,nft_compat,xt_tcpudp,xt_addrtype,xt_nat,xt_comment,xt_connmark,iptable_raw,ip_tables,xt_MASQUERADE,iptable_mangle,xt_mark
2025-01-25 14:18:29.753231+00:002025-01-25T14:18:29.753231301Z
2025-01-25 14:18:29.753451+00:002025-01-25 15:18:29,753 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.753492+00:00[info] iptable_mangle support detected, adding fwmark for tables
2025-01-25 14:18:29.753503+00:002025-01-25T14:18:29.753503151Z
2025-01-25 14:18:29.889064+00:002025-01-25 15:18:29,888 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.889168+00:00[info] iptables defined as follows...
2025-01-25 14:18:29.889189+00:00--------------------
2025-01-25 14:18:29.889206+00:002025-01-25T14:18:29.889206649Z
2025-01-25 14:18:29.892561+00:002025-01-25 15:18:29,892 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.892623+00:00-P INPUT DROP
2025-01-25 14:18:29.892662+00:00-P FORWARD DROP
2025-01-25 14:18:29.892678+00:00-P OUTPUT DROP
2025-01-25 14:18:29.892693+00:00-A INPUT -s 185.213.155.74/32 -i eth0 -j ACCEPT
2025-01-25 14:18:29.892707+00:00-A INPUT -s 172.16.6.0/24 -d 172.16.6.0/24 -j ACCEPT
2025-01-25 14:18:29.892721+00:00-A INPUT -s 185.213.155.74/32 -i eth0 -j ACCEPT
2025-01-25 14:18:29.892749+00:00-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
2025-01-25 14:18:29.892764+00:00-A INPUT -i eth0 -p udp -m udp --dport 8080 -j ACCEPT
2025-01-25 14:18:29.892778+00:00-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
2025-01-25 14:18:29.892793+00:00-A INPUT -i lo -j ACCEPT
2025-01-25 14:18:29.892814+00:00-A INPUT -i wg0 -j ACCEPT
2025-01-25 14:18:29.892829+00:00-A OUTPUT -d 185.213.155.74/32 -o eth0 -j ACCEPT
2025-01-25 14:18:29.892844+00:00-A OUTPUT -s 172.16.6.0/24 -d 172.16.6.0/24 -j ACCEPT
2025-01-25 14:18:29.892858+00:00-A OUTPUT -d 185.213.155.74/32 -o eth0 -j ACCEPT
2025-01-25 14:18:29.892872+00:00-A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
2025-01-25 14:18:29.892894+00:00-A OUTPUT -o eth0 -p udp -m udp --sport 8080 -j ACCEPT
2025-01-25 14:18:29.892909+00:00-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
2025-01-25 14:18:29.892923+00:00-A OUTPUT -o lo -j ACCEPT
2025-01-25 14:18:29.892938+00:00-A OUTPUT -o wg0 -j ACCEPT
2025-01-25 14:18:29.892961+00:002025-01-25T14:18:29.892961459Z
2025-01-25 14:18:29.895517+00:002025-01-25 15:18:29,895 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.895582+00:00--------------------
2025-01-25 14:18:29.895607+00:002025-01-25T14:18:29.895607538Z
2025-01-25 14:18:29.899773+00:002025-01-25 15:18:29,899 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.899866+00:00[info] Configuring WireGuard...
2025-01-25 14:18:29.899886+00:002025-01-25T14:18:29.899886547Z
2025-01-25 14:18:29.912985+00:002025-01-25 15:18:29,912 DEBG 'start-script' stdout output:
2025-01-25 14:18:29.913048+00:00[info] Attempting to bring WireGuard interface 'up'...
2025-01-25 14:18:29.913065+00:002025-01-25T14:18:29.913065751Z
2025-01-25 14:18:29.928558+00:002025-01-25 15:18:29,928 DEBG 'start-script' stderr output:
2025-01-25 14:18:29.928628+00:00Warning: `/config/wireguard/wg0.conf' is world accessible
2025-01-25 14:18:29.928646+00:002025-01-25T14:18:29.928646165Z
2025-01-25 14:18:29.943294+00:002025-01-25 15:18:29,943 DEBG 'start-script' stderr output:
2025-01-25 14:18:29.943368+00:00[#] ip link add wg0 type wireguard
2025-01-25 14:18:29.943430+00:002025-01-25T14:18:29.943430870Z
2025-01-25 14:18:29.948285+00:002025-01-25 15:18:29,948 DEBG 'start-script' stderr output:
2025-01-25 14:18:29.948346+00:00[#] wg setconf wg0 /dev/fd/63
2025-01-25 14:18:29.948362+00:002025-01-25T14:18:29.948362564Z
2025-01-25 14:18:29.951678+00:002025-01-25 15:18:29,951 DEBG 'start-script' stderr output:
2025-01-25 14:18:29.951775+00:00[#] ip -4 address add 10.71.129.27/32 dev wg0
2025-01-25 14:18:29.951798+00:002025-01-25T14:18:29.951798031Z
2025-01-25 14:18:29.968749+00:002025-01-25 15:18:29,968 DEBG 'start-script' stderr output:
2025-01-25 14:18:29.968826+00:00[#] ip link set mtu 1420 up dev wg0
2025-01-25 14:18:29.968848+00:002025-01-25T14:18:29.968848075Z
2025-01-25 14:18:29.975846+00:002025-01-25 15:18:29,975 DEBG 'start-script' stderr output:
2025-01-25 14:18:29.975890+00:00[#] resolvconf -a wg0 -m 0 -x
2025-01-25 14:18:29.975901+00:002025-01-25T14:18:29.975901566Z
2025-01-25 14:18:29.999893+00:002025-01-25 15:18:29,999 DEBG 'start-script' stderr output:
2025-01-25 14:18:29.999967+00:00could not detect a useable init system
2025-01-25 14:18:30.000015+00:002025-01-25T14:18:30.000015238Z
2025-01-25 14:18:30.095475+00:002025-01-25 15:18:30,095 DEBG 'start-script' stderr output:
2025-01-25 14:18:30.095544+00:00[#] wg set wg0 fwmark 51820
2025-01-25 14:18:30.095561+00:002025-01-25T14:18:30.095561453Z
2025-01-25 14:18:30.097953+00:002025-01-25 15:18:30,097 DEBG 'start-script' stderr output:
2025-01-25 14:18:30.098056+00:00[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
2025-01-25 14:18:30.098079+00:002025-01-25T14:18:30.098079107Z
2025-01-25 14:18:30.102010+00:002025-01-25 15:18:30,101 DEBG 'start-script' stderr output:
2025-01-25 14:18:30.102073+00:00[#] ip -4 rule add not fwmark 51820 table 51820
2025-01-25 14:18:30.102091+00:002025-01-25T14:18:30.102091405Z
2025-01-25 14:18:30.105939+00:002025-01-25 15:18:30,105 DEBG 'start-script' stderr output:
2025-01-25 14:18:30.106007+00:00[#] ip -4 rule add table main suppress_prefixlength 0
2025-01-25 14:18:30.106033+00:002025-01-25T14:18:30.106033784Z
2025-01-25 14:18:30.114717+00:002025-01-25 15:18:30,114 DEBG 'start-script' stderr output:
2025-01-25 14:18:30.114791+00:00[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
2025-01-25 14:18:30.114835+00:002025-01-25T14:18:30.114835799Z
2025-01-25 14:18:30.118544+00:002025-01-25 15:18:30,118 DEBG 'start-script' stderr output:
2025-01-25 14:18:30.118611+00:00[#] iptables-restore -n
2025-01-25 14:18:30.118630+00:002025-01-25T14:18:30.118630006Z
2025-01-25 14:18:30.123759+00:002025-01-25 15:18:30,123 DEBG 'start-script' stderr output:
2025-01-25 14:18:30.123861+00:00[#] '/root/wireguardup.sh'
2025-01-25 14:18:30.123890+00:002025-01-25T14:18:30.123890821Z
2025-01-25 14:22:11.477818+00:002025-01-25 15:22:11,477 DEBG 'start-script' stdout output:
2025-01-25 14:22:11.477970+00:00[info] DNS failure, creating file '/tmp/dnsfailure' to indicate failure...
2025-01-25 14:22:11.478051+00:002025-01-25T14:22:11.478051495Z
2025-01-25 14:22:11.482611+00:002025-01-25 15:22:11,482 DEBG 'start-script' stdout output:
2025-01-25 14:22:11.482686+00:00[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...
2025-01-25 14:22:11.482705+00:002025-01-25T14:22:11.482705862Z
2025-01-25 14:22:11.513434+00:002025-01-25 15:22:11,513 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:11.513549+00:00[info] DNS failure, creating file '/tmp/dnsfailure' to indicate failure...
2025-01-25 14:22:11.513583+00:002025-01-25T14:22:11.513583399Z
2025-01-25 14:22:21.511456+00:002025-01-25 15:22:21,511 DEBG 'start-script' stdout output:
2025-01-25 14:22:21.511526+00:00[info] Failed on last attempt, attempting to get external IP using 'http://whatismyip.akamai.com'...
2025-01-25 14:22:21.511571+00:002025-01-25T14:22:21.511571477Z
2025-01-25 14:22:31.537477+00:002025-01-25 15:22:31,537 DEBG 'start-script' stdout output:
2025-01-25 14:22:31.537577+00:00[info] Failed on last attempt, attempting to get external IP using 'https://ifconfig.co/ip'...
2025-01-25 14:22:31.537598+00:002025-01-25T14:22:31.537598511Z
2025-01-25 14:22:41.568759+00:002025-01-25 15:22:41,568 DEBG 'start-script' stdout output:
2025-01-25 14:22:41.568892+00:00[info] Failed on last attempt, attempting to get external IP using 'https://showextip.azurewebsites.net'...
2025-01-25 14:22:41.568916+00:002025-01-25T14:22:41.568916264Z
2025-01-25 14:22:51.594830+00:002025-01-25 15:22:51,594 DEBG 'start-script' stdout output:
2025-01-25 14:22:51.594897+00:00[warn] Cannot determine external IP address, performing tests before setting to '127.0.0.1'...
2025-01-25 14:22:51.594938+00:00[info] Show name servers defined for container
2025-01-25 14:22:51.594949+00:002025-01-25T14:22:51.594949690Z
2025-01-25 14:22:51.596048+00:002025-01-25 15:22:51,595 DEBG 'start-script' stdout output:
2025-01-25 14:22:51.596119+00:00# Generated by resolvconf
2025-01-25 14:22:51.596179+00:00nameserver 10.64.0.1
2025-01-25 14:22:51.596195+00:002025-01-25T14:22:51.596195268Z
2025-01-25 14:22:51.596349+00:002025-01-25 15:22:51,596 DEBG 'start-script' stdout output:
2025-01-25 14:22:51.596407+00:00[info] Show contents of hosts file
2025-01-25 14:22:51.596423+00:002025-01-25T14:22:51.596423461Z
2025-01-25 14:22:51.597790+00:002025-01-25 15:22:51,597 DEBG 'start-script' stdout output:
2025-01-25 14:22:51.597861+00:00127.0.0.1	localhost
2025-01-25 14:22:51.597882+00:00::1	localhost ip6-localhost ip6-loopback
2025-01-25 14:22:51.597930+00:00fe00::0	ip6-localnet
2025-01-25 14:22:51.597949+00:00ff00::0	ip6-mcastprefix
2025-01-25 14:22:51.597976+00:00ff02::1	ip6-allnodes
2025-01-25 14:22:51.597990+00:00ff02::2	ip6-allrouters
2025-01-25 14:22:51.598005+00:00172.16.6.2	qbittorrent
2025-01-25 14:22:51.598020+00:002025-01-25T14:22:51.598020354Z
2025-01-25 14:22:51.601631+00:002025-01-25 15:22:51,601 DEBG 'start-script' stdout output:
2025-01-25 14:22:51.601704+00:00[info] VPN provider 'custom' not supported for automatic port forwarding, skipping incoming port assignment
2025-01-25 14:22:51.601769+00:002025-01-25T14:22:51.601769091Z
2025-01-25 14:22:51.603530+00:002025-01-25 15:22:51,603 DEBG 'start-script' stdout output:
2025-01-25 14:22:51.603603+00:00[info] WireGuard interface 'up'
2025-01-25 14:22:51.603622+00:002025-01-25T14:22:51.603622810Z
2025-01-25 14:22:51.620115+00:002025-01-25 15:22:51,619 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:51.620185+00:00[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.71.129.27 different, marking for reconfigure
2025-01-25 14:22:51.620204+00:002025-01-25T14:22:51.620204958Z
2025-01-25 14:22:51.625667+00:002025-01-25 15:22:51,625 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:51.625786+00:00[info] qBittorrent not running
2025-01-25 14:22:51.625822+00:002025-01-25T14:22:51.625822961Z
2025-01-25 14:22:51.627110+00:002025-01-25 15:22:51,626 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:51.627183+00:00[info] qBittorrent config file already exists, skipping copy
2025-01-25 14:22:51.627202+00:00[info] Removing session lock file (if it exists)...
2025-01-25 14:22:51.627243+00:002025-01-25T14:22:51.627243578Z
2025-01-25 14:22:51.669686+00:002025-01-25 15:22:51,669 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:51.669760+00:00[info] Attempting to start qBittorrent...
2025-01-25 14:22:51.669779+00:002025-01-25T14:22:51.669779142Z
2025-01-25 14:22:51.676169+00:002025-01-25 15:22:51,675 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:51.676255+00:00[info] qBittorrent process started
2025-01-25 14:22:51.676273+00:002025-01-25T14:22:51.676273753Z
2025-01-25 14:22:51.676320+00:002025-01-25 15:22:51,676 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:51.676389+00:00[info] Waiting for qBittorrent process to start listening on port 8080...
2025-01-25 14:22:51.676431+00:002025-01-25T14:22:51.676431016Z
2025-01-25 14:22:51.826257+00:002025-01-25 15:22:51,826 DEBG 'watchdog-script' stdout output:
2025-01-25 14:22:51.826316+00:00[info] qBittorrent process listening on port 8080
2025-01-25 14:22:51.826334+00:002025-01-25T14:22:51.826334753Z
2025-01-25 14:23:21.606569+00:002025-01-25 15:23:21,606 DEBG 'start-script' stdout output:
2025-01-25 14:23:21.606710+00:00[info] Sending 'down' command to WireGuard due to dns failure...
2025-01-25 14:23:21.606734+00:002025-01-25T14:23:21.606734481Z
2025-01-25 14:23:21.609428+00:002025-01-25 15:23:21,609 DEBG 'start-script' stdout output:
2025-01-25 14:23:21.609518+00:00[info] Attempting to bring WireGuard interface 'down'...
2025-01-25 14:23:21.609548+00:002025-01-25T14:23:21.609548986Z
2025-01-25 14:23:21.628278+00:002025-01-25 15:23:21,627 DEBG 'start-script' stderr output:
2025-01-25 14:23:21.628357+00:00Warning: `/config/wireguard/wg0.conf' is world accessible
2025-01-25 14:23:21.628376+00:002025-01-25T14:23:21.628376167Z
2025-01-25 14:23:21.646337+00:002025-01-25 15:23:21,646 DEBG 'start-script' stderr output:
2025-01-25 14:23:21.646412+00:00[#] ip -4 rule delete table 51820
2025-01-25 14:23:21.646471+00:002025-01-25T14:23:21.646471611Z
2025-01-25 14:23:21.661064+00:002025-01-25 15:23:21,660 DEBG 'start-script' stderr output:
2025-01-25 14:23:21.661140+00:00[#] ip -4 rule delete table main suppress_prefixlength 0
2025-01-25 14:23:21.661159+00:002025-01-25T14:23:21.661159373Z
2025-01-25 14:23:21.681144+00:002025-01-25 15:23:21,680 DEBG 'start-script' stderr output:
2025-01-25 14:23:21.681275+00:00[#] ip link delete dev wg0
2025-01-25 14:23:21.681312+00:002025-01-25T14:23:21.681312498Z
2025-01-25 14:23:21.928929+00:002025-01-25 15:23:21,928 DEBG 'start-script' stderr output:
2025-01-25 14:23:21.929007+00:00[#] resolvconf -d wg0 -f
2025-01-25 14:23:21.929025+00:002025-01-25T14:23:21.929025850Z
2025-01-25 14:23:21.945385+00:002025-01-25 15:23:21,945 DEBG 'start-script' stderr output:
2025-01-25 14:23:21.945459+00:00could not detect a useable init system
2025-01-25 14:23:21.945478+00:002025-01-25T14:23:21.945478091Z
2025-01-25 14:23:22.023611+00:002025-01-25 15:23:22,023 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.023718+00:00[#] iptables-restore -n
2025-01-25 14:23:22.023791+00:002025-01-25T14:23:22.023791731Z
2025-01-25 14:23:22.032195+00:002025-01-25 15:23:22,031 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.032277+00:00[#] '/root/wireguarddown.sh'
2025-01-25 14:23:22.032301+00:002025-01-25T14:23:22.032301318Z
2025-01-25 14:23:22.041317+00:002025-01-25 15:23:22,041 DEBG 'start-script' stdout output:
2025-01-25 14:23:22.041412+00:00[info] WireGuard interface 'down'
2025-01-25 14:23:22.041434+00:002025-01-25T14:23:22.041434311Z
2025-01-25 14:23:22.045043+00:002025-01-25 15:23:22,044 DEBG 'start-script' stdout output:
2025-01-25 14:23:22.045126+00:00[info] Configuring WireGuard...
2025-01-25 14:23:22.045152+00:002025-01-25T14:23:22.045152386Z
2025-01-25 14:23:22.057741+00:002025-01-25 15:23:22,057 DEBG 'start-script' stdout output:
2025-01-25 14:23:22.057844+00:00[info] Attempting to bring WireGuard interface 'up'...
2025-01-25 14:23:22.057876+00:002025-01-25T14:23:22.057876634Z
2025-01-25 14:23:22.072786+00:002025-01-25 15:23:22,072 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.072849+00:00Warning: `/config/wireguard/wg0.conf' is world accessible
2025-01-25 14:23:22.072889+00:002025-01-25T14:23:22.072889213Z
2025-01-25 14:23:22.086685+00:002025-01-25 15:23:22,086 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.086775+00:00[#] ip link add wg0 type wireguard
2025-01-25 14:23:22.086797+00:002025-01-25T14:23:22.086797744Z
2025-01-25 14:23:22.091944+00:002025-01-25 15:23:22,091 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.092068+00:00[#] wg setconf wg0 /dev/fd/63
2025-01-25 14:23:22.092088+00:002025-01-25T14:23:22.092088345Z
2025-01-25 14:23:22.094945+00:002025-01-25 15:23:22,094 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.095001+00:00[#] ip -4 address add 10.71.129.27/32 dev wg0
2025-01-25 14:23:22.095054+00:002025-01-25T14:23:22.095054825Z
2025-01-25 14:23:22.106046+00:002025-01-25 15:23:22,105 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.106110+00:00[#] ip link set mtu 1420 up dev wg0
2025-01-25 14:23:22.106122+00:002025-01-25T14:23:22.106122921Z
2025-01-25 14:23:22.110567+00:002025-01-25 15:23:22,110 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.110627+00:00[#] resolvconf -a wg0 -m 0 -x
2025-01-25 14:23:22.110669+00:002025-01-25T14:23:22.110669032Z
2025-01-25 14:23:22.122111+00:002025-01-25 15:23:22,121 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.122159+00:00could not detect a useable init system
2025-01-25 14:23:22.122170+00:002025-01-25T14:23:22.122170967Z
2025-01-25 14:23:22.194901+00:002025-01-25 15:23:22,194 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.195033+00:00[#] wg set wg0 fwmark 51820
2025-01-25 14:23:22.195068+00:002025-01-25T14:23:22.195068178Z
2025-01-25 14:23:22.197380+00:002025-01-25 15:23:22,197 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.197472+00:00[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
2025-01-25 14:23:22.197505+00:002025-01-25T14:23:22.197505691Z
2025-01-25 14:23:22.201304+00:002025-01-25 15:23:22,201 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.201390+00:00[#] ip -4 rule add not fwmark 51820 table 51820
2025-01-25 14:23:22.201420+00:002025-01-25T14:23:22.201420131Z
2025-01-25 14:23:22.205215+00:002025-01-25 15:23:22,205 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.205315+00:00[#] ip -4 rule add table main suppress_prefixlength 0
2025-01-25 14:23:22.205337+00:002025-01-25T14:23:22.205337161Z
2025-01-25 14:23:22.214157+00:002025-01-25 15:23:22,213 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.214237+00:00[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
2025-01-25 14:23:22.214256+00:002025-01-25T14:23:22.214256863Z
2025-01-25 14:23:22.217780+00:002025-01-25 15:23:22,217 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.217858+00:00[#] iptables-restore -n
2025-01-25 14:23:22.217878+00:002025-01-25T14:23:22.217878757Z
2025-01-25 14:23:22.221664+00:002025-01-25 15:23:22,221 DEBG 'start-script' stderr output:
2025-01-25 14:23:22.221747+00:00[#] '/root/wireguardup.sh'
2025-01-25 14:23:22.221819+00:002025-01-25T14:23:22.221819397Z

Here's my current configuration:
Since Wireguard requires the config below I've added that to TrueNAS's Sysctl since I did not know how to add it to the app specifically.

    --sysctl="net.ipv4.conf.all.src_valid_mark=1" \
    --privileged=true \

Image

Image

Image

Image

Image

Image

Image

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

1 participant