binhex / arch-qbittorrentvpn

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

qBittorrent restarts every 30 seconds #122

Open Eagleman7 opened 2 years ago

Eagleman7 commented 2 years ago

the qBittorrent seems to be restarting every 30 seconds. the debug logs show my VPN IP every 30 seconds. It seems it is restarting the VPN however its not saying why:

Created by...
___.   .__       .__
\_ |__ |__| ____ |  |__   ____ ___  ___
 | __ \|  |/    \|  |  \_/ __ \\  \/  /
 | \_\ \  |   |  \   Y  \  ___/ >    <
 |___  /__|___|  /___|  /\___  >__/\_ \
     \/        \/     \/     \/      \/
   https://hub.docker.com/u/binhex/

2022-01-23 12:21:43.794860 [info] System information Linux qbittorrent-binhex-bb985d6df-pc9qp 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 8 21:51:17 EST 2021 x86_64 GNU/Linux
2022-01-23 12:21:43.829379 [info] OS_ARCH defined as 'x86-64'
2022-01-23 12:21:43.867904 [info] PUID defined as '0'
2022-01-23 12:21:43.915290 [info] PGID defined as '0'
2022-01-23 12:21:43.956133 [info] UMASK defined as '000'
2022-01-23 12:21:43.987214 [info] Permissions already set for '/config'
2022-01-23 12:21:44.025727 [info] Deleting files in /tmp (non recursive)...
2022-01-23 12:21:44.065470 [info] VPN_ENABLED defined as 'yes'
2022-01-23 12:21:44.100773 [info] VPN_CLIENT defined as 'wireguard'
2022-01-23 12:21:44.142403 [info] VPN_PROV defined as 'custom'
2022-01-23 12:21:44.182445 [info] WireGuard config file (conf extension) is located at /config/wireguard/wg0.conf
2022-01-23 12:21:44.231253 [info] VPN_REMOTE_SERVER defined as '111.111.111.111'
2022-01-23 12:21:44.264902 [info] VPN_REMOTE_PORT defined as '1443'
2022-01-23 12:21:44.298699 [info] VPN_DEVICE_TYPE defined as 'wg0'
2022-01-23 12:21:44.331105 [info] VPN_REMOTE_PROTOCOL defined as 'udp'
2022-01-23 12:21:44.363278 [info] LAN_NETWORK defined as '10.233.0.0/17,172.16.0.0/12,192.168.0.0/16'
2022-01-23 12:21:44.403033 [info] NAME_SERVERS defined as '9.9.9.9,1.1.1.1,1.0.0.1'
2022-01-23 12:21:44.436312 [warn] VPN_USER not defined (via -e VPN_USER), assuming authentication via other method
2022-01-23 12:21:44.474049 [warn] VPN_PASS not defined (via -e VPN_PASS), assuming authentication via other method
2022-01-23 12:21:44.506377 [info] ENABLE_PRIVOXY defined as 'no'
2022-01-23 12:21:44.543533 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports
2022-01-23 12:21:44.575732 [info] VPN_OUTPUT_PORTS defined as '50000'
2022-01-23 12:21:44.612395 [info] WEBUI_PORT defined as '8080'
2022-01-23 12:21:44.677266 [info] Starting Supervisor...
2022-01-23 12:21:44,952 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2022-01-23 12:21:44,952 INFO Set uid to user 0 succeeded
2022-01-23 12:21:44,955 INFO supervisord started with pid 7
2022-01-23 12:21:45,958 INFO spawned: 'shutdown-script' with pid 155
2022-01-23 12:21:45,961 INFO spawned: 'start-script' with pid 156
2022-01-23 12:21:45,964 INFO spawned: 'watchdog-script' with pid 157
2022-01-23 12:21:45,965 INFO reaped unknown pid 8 (exit status 0)
2022-01-23 12:21:45,973 DEBG 'watchdog-script' stdout output:
[info] qBittorrent config file already exists, skipping copy
[info] Removing session lock file (if it exists)...

2022-01-23 12:21:45,973 INFO success: shutdown-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-01-23 12:21:45,973 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-01-23 12:21:45,973 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-01-23 12:21:45,974 DEBG 'shutdown-script' stdout output:
[info] Signal not specified as parameter 2, assuming signal '15' (sigterm)
[info] Process owner not specified as parameter 3, assuming owner 'nobody'

2022-01-23 12:21:45,975 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN
[debug] Environment variables defined as follows
ADDITIONAL_PORTS=
APPLICATION=qbittorrent
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=([0]="0")
BASH_SOURCE=([0]="/root/start.sh")
BASH_VERSINFO=([0]="5" [1]="1" [2]="12" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
BASH_VERSION='5.1.12(1)-release'
BAZARR_PORT=tcp://10.233.31.184:6767
BAZARR_PORT_6767_TCP=tcp://10.233.31.184:6767
BAZARR_PORT_6767_TCP_ADDR=10.233.31.184
BAZARR_PORT_6767_TCP_PORT=6767
BAZARR_PORT_6767_TCP_PROTO=tcp
BAZARR_SERVICE_HOST=10.233.31.184
BAZARR_SERVICE_PORT=6767
BAZARR_SERVICE_PORT_HTTP=6767
DEBUG=true
DIRSTACK=()
ENABLE_PRIVOXY=no
EUID=0
GROUPS=()
HOME=/home/nobody
HOSTNAME=qbittorrent-binhex-bb985d6df-pc9qp
HOSTTYPE=x86_64
IFS=$' \t\n'
JACKETT_PORT=tcp://10.233.11.223:9117
JACKETT_PORT_9117_TCP=tcp://10.233.11.223:9117
JACKETT_PORT_9117_TCP_ADDR=10.233.11.223
JACKETT_PORT_9117_TCP_PORT=9117
JACKETT_PORT_9117_TCP_PROTO=tcp
JACKETT_SERVICE_HOST=10.233.11.223
JACKETT_SERVICE_PORT=9117
JACKETT_SERVICE_PORT_HTTP=9117
KUBERNETES_PORT=tcp://10.233.0.1:443
KUBERNETES_PORT_443_TCP=tcp://10.233.0.1:443
KUBERNETES_PORT_443_TCP_ADDR=10.233.0.1
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_SERVICE_HOST=10.233.0.1
KUBERNETES_SERVICE_PORT=443
KUBERNETES_SERVICE_PORT_HTTPS=443
LANG=en_GB.UTF-8
LAN_NETWORK=10.233.0.0/17,172.16.0.0/12,192.168.0.0/16
MACHTYPE=x86_64-pc-linux-gnu
NAME_SERVERS=9.9.9.9,1.1.1.1,1.0.0.1
OPTERR=1
OPTIND=1
ORGANIZR_PORT=tcp://10.233.18.99:80
ORGANIZR_PORT_80_TCP=tcp://10.233.18.99:80
ORGANIZR_PORT_80_TCP_ADDR=10.233.18.99
ORGANIZR_PORT_80_TCP_PORT=80
ORGANIZR_PORT_80_TCP_PROTO=tcp
ORGANIZR_SERVICE_HOST=10.233.18.99
ORGANIZR_SERVICE_PORT=80
ORGANIZR_SERVICE_PORT_HTTP=80
OSTYPE=linux-gnu
OS_ARCH=x86-64
OVERSEERR_PORT=tcp://10.233.49.24:5055
OVERSEERR_PORT_5055_TCP=tcp://10.233.49.24:5055
OVERSEERR_PORT_5055_TCP_ADDR=10.233.49.24
OVERSEERR_PORT_5055_TCP_PORT=5055
OVERSEERR_PORT_5055_TCP_PROTO=tcp
OVERSEERR_SERVICE_HOST=10.233.49.24
OVERSEERR_SERVICE_PORT=5055
OVERSEERR_SERVICE_PORT_HTTP=5055
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGID=0
PIPESTATUS=([0]="0")
PLEX_PORT=tcp://10.233.56.101:32400
PLEX_PORT_32400_TCP=tcp://10.233.56.101:32400
PLEX_PORT_32400_TCP_ADDR=10.233.56.101
PLEX_PORT_32400_TCP_PORT=32400
PLEX_PORT_32400_TCP_PROTO=tcp
PLEX_SERVICE_HOST=10.233.56.101
PLEX_SERVICE_PORT=32400
PLEX_SERVICE_PORT_HTTP=32400
PPID=7
PS4='+ '
PUID=0
PWD=/
QBITTORRENT_BINHEX_PORT=tcp://10.233.7.129:8080
QBITTORRENT_BINHEX_PORT_8080_TCP=tcp://10.233.7.129:8080
QBITTORRENT_BINHEX_PORT_8080_TCP_ADDR=10.233.7.129
QBITTORRENT_BINHEX_PORT_8080_TCP_PORT=8080
QBITTORRENT_BINHEX_PORT_8080_TCP_PROTO=tcp
QBITTORRENT_BINHEX_SERVICE_HOST=10.233.7.129
QBITTORRENT_BINHEX_SERVICE_PORT=8080
RADARR_PORT=tcp://10.233.19.203:7878
RADARR_PORT_7878_TCP=tcp://10.233.19.203:7878
RADARR_PORT_7878_TCP_ADDR=10.233.19.203
RADARR_PORT_7878_TCP_PORT=7878
RADARR_PORT_7878_TCP_PROTO=tcp
RADARR_SERVICE_HOST=10.233.19.203
RADARR_SERVICE_PORT=7878
RADARR_SERVICE_PORT_HTTP=7878
SABNZBD_PORT=tcp://10.233.5.240:8080
SABNZBD_PORT_8080_TCP=tcp://10.233.5.240:8080
SABNZBD_PORT_8080_TCP_ADDR=10.233.5.240
SABNZBD_PORT_8080_TCP_PORT=8080
SABNZBD_PORT_8080_TCP_PROTO=tcp
SABNZBD_SERVICE_HOST=10.233.5.240
SABNZBD_SERVICE_PORT=8080
SABNZBD_SERVICE_PORT_HTTP=8080
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SONARR_PORT=tcp://10.233.24.135:8989
SONARR_PORT_8989_TCP=tcp://10.233.24.135:8989
SONARR_PORT_8989_TCP_ADDR=10.233.24.135
SONARR_PORT_8989_TCP_PORT=8989
SONARR_PORT_8989_TCP_PROTO=tcp
SONARR_SERVICE_HOST=10.233.24.135
SONARR_SERVICE_PORT=8989
SONARR_SERVICE_PORT_HTTP=8989
STRICT_PORT_FORWARD=no
SUPERVISOR_ENABLED=1
SUPERVISOR_GROUP_NAME=start-script
SUPERVISOR_PROCESS_NAME=start-script
TAUTULLI_PORT=tcp://10.233.18.95:8181
TAUTULLI_PORT_8181_TCP=tcp://10.233.18.95:8181
TAUTULLI_PORT_8181_TCP_ADDR=10.233.18.95
TAUTULLI_PORT_8181_TCP_PORT=8181
TAUTULLI_PORT_8181_TCP_PROTO=tcp
TAUTULLI_SERVICE_HOST=10.233.18.95
TAUTULLI_SERVICE_PORT=8181
TAUTULLI_SERVICE_PORT_HTTP=8181
TERM=xterm
UID=0
UMASK=000
VPN_CLIENT=wireguard
VPN_CONFIG=/config/wireguard/wg0.conf
VPN_DEVICE_TYPE=wg0
VPN_ENABLED=yes
VPN_INPUT_PORTS=
VPN_OUTPUT_PORTS=50000
VPN_PASS=
VPN_PROV=custom
VPN_REMOTE_PORT=1443
VPN_REMOTE_PROTOCOL=udp
VPN_REMOTE_SERVER=111.111.111.111
VPN_USER=
WEBUI_PORT=8080
_='[debug] Environment variables defined as follows'
[debug] Directory listing of files in /config/wireguard/ as follows

2022-01-23 12:21:45,983 DEBG 'start-script' stdout output:
total 12
drwxrwxr-x 2 root root 4096 Jan 23 12:07 .
drwxrwxr-x 5 root root 4096 Jan 23 10:54 ..
-rwxrwxr-x 1 root root  372 Jan 23 12:19 wg0.conf

2022-01-23 12:21:45,983 DEBG 'start-script' stdout output:
[debug] Contents of WireGuard config file '/config/wireguard/wg0.conf' as follows...

2022-01-23 12:21:45,984 DEBG 'start-script' stdout output:
# TorGuard WireGuard Config
[Interface]
PostUp = '/root/wireguardup.sh'
PostDown = '/root/wireguarddown.sh'
PrivateKey = ...............=
#ListenPort = 51820
DNS = 1.1.1.1
Address = 10.13.128.113/24

[Peer]
PublicKey = Q1iZmHSeJMZzK3nOcnkiA2VoI2I2k8GWbA2foCrQ2UY=
AllowedIPs = 0.0.0.0/0
Endpoint = 111.111.111.111:1443
#PersistentKeepalive = 25

2022-01-23 12:21:45,991 DEBG 'start-script' stdout output:
[info] Adding 9.9.9.9 to /etc/resolv.conf

2022-01-23 12:21:45,996 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf

2022-01-23 12:21:46,003 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf

2022-01-23 12:21:46,010 DEBG 'start-script' stdout output:
111.111.111.111

2022-01-23 12:21:46,019 DEBG 'start-script' stdout output:
[debug] Show name servers defined for container

2022-01-23 12:21:46,020 DEBG 'start-script' stdout output:
nameserver 9.9.9.9
nameserver 1.1.1.1
nameserver 1.0.0.1

2022-01-23 12:21:46,020 DEBG 'start-script' stdout output:
[debug] Show name resolution for VPN endpoint 111.111.111.111

2022-01-23 12:21:46,028 DEBG 'start-script' stdout output:
;; ->>HEADER<<- opcode: QUERY, rcode: NXDOMAIN, id: 42654
;; flags: qr aa rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 
;; QUESTION SECTION:
;; 111.111.111.111. IN  A

;; ANSWER SECTION:

;; AUTHORITY SECTION:
.   86400   IN  SOA a.root-servers.net. nstld.verisign-grs.com. 2022012300 1800 900 604800 86400

;; ADDITIONAL SECTION:

;; Query time: 5 msec
;; SERVER: 1.1.1.1
;; WHEN: Sun Jan 23 12:21:46 2022
;; MSG SIZE  rcvd: 107

2022-01-23 12:21:46,028 DEBG 'start-script' stdout output:
[debug] Show contents of hosts file

2022-01-23 12:21:46,029 DEBG 'start-script' stdout output:
# Kubernetes-managed hosts file.
127.0.0.1   localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
10.233.81.230   qbittorrent-binhex-bb985d6df-pc9qp

2022-01-23 12:21:46,061 DEBG 'start-script' stdout output:
[debug] Docker interface defined as eth0

2022-01-23 12:21:46,069 DEBG 'start-script' stdout output:
[info] Default route for container is 169.254.1.1

2022-01-23 12:21:46,074 DEBG 'start-script' stdout output:
[debug] Docker IP defined as 10.233.81.230

2022-01-23 12:21:46,079 DEBG 'start-script' stdout output:
[debug] Docker netmask defined as 255.255.255.255

2022-01-23 12:21:46,102 DEBG 'start-script' stdout output:
[info] Docker network defined as 

2022-01-23 12:21:46,106 DEBG 'start-script' stdout output:
[info] Adding 10.233.0.0/17 as route via docker eth0

2022-01-23 12:21:46,112 DEBG 'start-script' stdout output:
[info] Adding 172.16.0.0/12 as route via docker eth0

2022-01-23 12:21:46,118 DEBG 'start-script' stdout output:
[info] Adding 192.168.0.0/16 as route via docker eth0

2022-01-23 12:21:46,120 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2022-01-23 12:21:46,121 DEBG 'start-script' stdout output:
default via 169.254.1.1 dev eth0 
10.233.0.0/17 via 169.254.1.1 dev eth0 
169.254.1.1 dev eth0 scope link 
172.16.0.0/12 via 169.254.1.1 dev eth0 
192.168.0.0/16 via 169.254.1.1 dev eth0 
local 10.233.81.230 dev eth0 table local proto kernel scope host src 10.233.81.230 
broadcast 10.233.81.230 dev eth0 table local proto kernel scope link src 10.233.81.230 
broadcast 127.0.0.0 dev lo table local proto kernel scope link src 127.0.0.1 
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1 

2022-01-23 12:21:46,121 DEBG 'start-script' stdout output:
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 
--------------------
[debug] Modules currently loaded for kernel

2022-01-23 12:21:46,125 DEBG 'start-script' stdout output:
Module                  Size  Used by
xt_connmark            16384  2
iptable_mangle         16384  1
wireguard             212992  0
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             20480  1 wireguard
iptable_filter         16384  1
nfsv3                  53248  0
nfs_acl                16384  1 nfsv3
binfmt_misc            20480  1
rpcsec_gss_krb5        40960  0
auth_rpcgss           135168  1 rpcsec_gss_krb5
nfsv4                 831488  0
nfs                   385024  2 nfsv4,nfsv3
lockd                 122880  2 nfsv3,nfs
grace                  16384  1 lockd
fscache               385024  1 nfs
ext4                  761856  10
mbcache                16384  1 ext4
jbd2                  131072  1 ext4
iscsi_tcp              24576  19
libiscsi_tcp           28672  1 iscsi_tcp
libiscsi               61440  2 libiscsi_tcp,iscsi_tcp
rdma_ucm               32768  0
ib_uverbs             159744  1 rdma_ucm
xt_CT                  16384  8
md4                    16384  0
cmac                   16384  1
nls_utf8               16384  12
cifs                 1232896  6
rdma_cm               110592  2 cifs,rdma_ucm
iw_cm                  53248  1 rdma_cm
ib_cm                 114688  1 rdma_cm
ib_core               393216  6 rdma_cm,cifs,iw_cm,rdma_ucm,ib_uverbs,ib_cm
libarc4                16384  1 cifs
dns_resolver           16384  2 cifs,nfsv4
xt_multiport           16384  18
ipt_rpfilter           16384  1
ip_set_hash_ip         36864  1
ip_set_hash_net        36864  2
veth                   28672  0
xt_addrtype            16384  3
xt_set                 16384  16
ip_set_hash_ipportnet    40960  2
ip_set_hash_ipportip    36864  4
ip_set_hash_ipport     36864  16
ip_set_bitmap_port     16384  10
ip_set                 49152  7 ip_set_hash_ipportnet,ip_set_bitmap_port,ip_set_hash_ip,xt_set,ip_set_hash_net,ip_set_hash_ipport,ip_set_hash_ipportip
dummy                  16384  0
ip6t_MASQUERADE        16384  1
ipt_MASQUERADE         16384  3
xt_conntrack           16384  73
xt_comment             16384  673
nft_counter            16384  549
xt_mark                16384  196
nft_compat             20480  998
nft_chain_nat          16384  8
nf_nat                 45056  3 ip6t_MASQUERADE,ipt_MASQUERADE,nft_chain_nat
nf_tables             172032  744 nft_compat,nft_counter,nft_chain_nat
nf_conntrack_netlink    49152  0
nfnetlink              16384  5 nft_compat,nf_conntrack_netlink,nf_tables,ip_set
intel_rapl_msr         16384  0
intel_rapl_common      24576  1 intel_rapl_msr
sb_edac                24576  0
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
scsi_transport_iscsi   122880  4 libiscsi_tcp,iscsi_tcp,libiscsi
ghash_clmulni_intel    16384  0
rapl                   20480  0
vmw_balloon            24576  0
cp210x                 28672  1
pcspkr                 16384  0
joydev                 24576  0
i2c_piix4              24576  0
vsock_loopback         16384  0
overlay               139264  52
vmw_vsock_virtio_transport_common    32768  1 vsock_loopback
vmw_vsock_vmci_transport    32768  1
vsock                  49152  5 vmw_vsock_virtio_transport_common,vsock_loopback,vmw_vsock_vmci_transport
vmw_vmci               86016  2 vmw_balloon,vmw_vsock_vmci_transport
sunrpc                557056  8 nfsv4,auth_rpcgss,lockd,nfsv3,rpcsec_gss_krb5,nfs_acl,nfs
iptable_raw            16384  1
ip_tables              28672  5 iptable_filter,iptable_raw,iptable_mangle
xfs                  1544192  1
sd_mod                 53248  11
t10_pi                 16384  1 sd_mod
sg                     40960  0
ata_generic            16384  0
vmwgfx                368640  1
drm_kms_helper        253952  1 vmwgfx
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
serio_raw              16384  0
fb_sys_fops            16384  1 drm_kms_helper
ttm                    77824  1 vmwgfx
drm                   573440  4 vmwgfx,drm_kms_helper,ttm
vmxnet3                65536  0
vmw_pvscsi             28672  1
ata_piix               36864  0

2022-01-23 12:21:46,126 DEBG 'start-script' stdout output:
libata                270336  2 ata_piix,ata_generic
br_netfilter           24576  0
bridge                200704  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
ip_vs_sh               16384  0
ip_vs_wrr              16384  0
ip_vs_rr               16384  123
ip_vs                 172032  129 ip_vs_rr,ip_vs_sh,ip_vs_wrr
nf_conntrack          172032  8 xt_conntrack,nf_nat,ip6t_MASQUERADE,ipt_MASQUERADE,nf_conntrack_netlink,xt_connmark,xt_CT,ip_vs
nf_defrag_ipv6         20480  2 nf_conntrack,ip_vs
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  5 nf_conntrack,nf_nat,nf_tables,xfs,ip_vs
crc32c_intel           24576  38
fuse                  155648  1

2022-01-23 12:21:46,131 DEBG 'start-script' stdout output:
iptable_mangle         16384  1
ip_tables              28672  5 iptable_filter,iptable_raw,iptable_mangle
[info] iptable_mangle support detected, adding fwmark for tables

2022-01-23 12:21:46,145 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,164 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,172 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,181 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,205 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,226 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,234 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,242 DEBG 'start-script' stderr output:
iptables v1.8.7 (legacy): host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

2022-01-23 12:21:46,249 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2022-01-23 12:21:46,251 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -s 111.111.111.111/32 -i eth0 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 8080 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i wg0 -j ACCEPT
-A OUTPUT -d 111.111.111.111/32 -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --sport 8080 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o wg0 -j ACCEPT

2022-01-23 12:21:46,253 DEBG 'start-script' stdout output:
--------------------

2022-01-23 12:21:46,257 DEBG 'start-script' stdout output:
[info] Attempting to bring WireGuard interface 'up'...

2022-01-23 12:21:46,270 DEBG 'start-script' stderr output:
Warning: `/config/wireguard/wg0.conf' is world accessible

2022-01-23 12:21:46,283 DEBG 'start-script' stderr output:
[#] ip link add wg0 type wireguard

2022-01-23 12:21:46,286 DEBG 'start-script' stderr output:
[#] wg setconf wg0 /dev/fd/63

2022-01-23 12:21:46,288 DEBG 'start-script' stderr output:
[#] ip -4 address add 10.13.128.113/24 dev wg0

2022-01-23 12:21:46,298 DEBG 'start-script' stderr output:
[#] ip link set mtu 1420 up dev wg0

2022-01-23 12:21:46,301 DEBG 'start-script' stderr output:
[#] resolvconf -a wg0 -m 0 -x

2022-01-23 12:21:46,319 DEBG 'start-script' stderr output:
could not detect a useable init system

2022-01-23 12:21:46,375 DEBG 'start-script' stderr output:
[#] wg set wg0 fwmark 51820

2022-01-23 12:21:46,376 DEBG 'start-script' stderr output:
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820

2022-01-23 12:21:46,381 DEBG 'start-script' stderr output:
[#] ip -4 rule add not fwmark 51820 table 51820

2022-01-23 12:21:46,382 DEBG 'start-script' stderr output:
[#] ip -4 rule add table main suppress_prefixlength 0

2022-01-23 12:21:46,387 DEBG 'start-script' stderr output:
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1

2022-01-23 12:21:46,389 DEBG 'start-script' stderr output:
[#] iptables-restore -n

2022-01-23 12:21:46,396 DEBG 'start-script' stderr output:
[#] '/root/wireguardup.sh'

2022-01-23 12:21:46,400 DEBG 'start-script' stdout output:
[debug] Waiting for valid local and gateway IP addresses from tunnel...

2022-01-23 12:21:47,425 DEBG 'start-script' stdout output:
[debug] Valid local IP address from tunnel acquired '10.13.128.113'

2022-01-23 12:21:47,425 DEBG 'start-script' stdout output:
[debug] Checking we can resolve name 'www.google.com' to address...

2022-01-23 12:21:47,440 DEBG 'watchdog-script' stdout output:
[debug] Checking we can resolve name 'www.google.com' to address...

2022-01-23 12:21:47,485 DEBG 'watchdog-script' stdout output:
[debug] DNS operational, we can resolve name 'www.google.com' to address '142.250.184.196'

2022-01-23 12:21:47,489 DEBG 'start-script' stdout output:
[debug] DNS operational, we can resolve name 'www.google.com' to address '142.250.184.196'
[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...

2022-01-23 12:21:47,677 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 111.111.111.111

2022-01-23 12:21:47,678 DEBG 'start-script' stdout output:
[info] Application does not require port forwarding or VPN provider is != pia, skipping incoming port assignment

2022-01-23 12:21:47,680 DEBG 'start-script' stdout output:
[info] WireGuard interface 'up'

2022-01-23 12:21:47,688 DEBG 'watchdog-script' stdout output:
[debug] Waiting for iptables chain policies to be in place...

2022-01-23 12:21:47,701 DEBG 'watchdog-script' stdout output:
[debug] iptables chain policies are in place

2022-01-23 12:21:47,702 DEBG 'watchdog-script' stdout output:
[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.13.128.113 different, marking for reconfigure

2022-01-23 12:21:47,706 DEBG 'watchdog-script' stdout output:
[info] qBittorrent not running

2022-01-23 12:21:47,706 DEBG 'watchdog-script' stdout output:
[info] Removing session lock file (if it exists)...

2022-01-23 12:21:47,716 DEBG 'watchdog-script' stdout output:
[info] Attempting to start qBittorrent...

2022-01-23 12:21:47,740 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process started
[info] Waiting for qBittorrent process to start listening on port 8080...

2022-01-23 12:21:47,863 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process listening on port 8080
[debug] VPN IP is 10.13.128.113
[debug] qBittorrent IP is 10.13.128.113

2022-01-23 12:22:17,870 DEBG 'watchdog-script' stdout output:
[debug] Checking we can resolve name 'www.google.com' to address...

2022-01-23 12:22:17,902 DEBG 'watchdog-script' stdout output:
[debug] DNS operational, we can resolve name 'www.google.com' to address '142.250.184.196'

2022-01-23 12:22:17,903 DEBG 'watchdog-script' stdout output:
[debug] Waiting for iptables chain policies to be in place...

2022-01-23 12:22:17,913 DEBG 'watchdog-script' stdout output:
[debug] iptables chain policies are in place

2022-01-23 12:22:17,918 DEBG 'watchdog-script' stdout output:
[debug] VPN IP is 10.13.128.113
[debug] qBittorrent IP is 10.13.128.113

2022-01-23 12:22:47,926 DEBG 'watchdog-script' stdout output:
[debug] Checking we can resolve name 'www.google.com' to address...

2022-01-23 12:22:47,960 DEBG 'watchdog-script' stdout output:
[debug] DNS operational, we can resolve name 'www.google.com' to address '142.250.184.196'

2022-01-23 12:22:47,961 DEBG 'watchdog-script' stdout output:
[debug] Waiting for iptables chain policies to be in place...

2022-01-23 12:22:47,974 DEBG 'watchdog-script' stdout output:
[debug] iptables chain policies are in place

2022-01-23 12:22:47,979 DEBG 'watchdog-script' stdout output:
[debug] VPN IP is 10.13.128.113
[debug] qBittorrent IP is 10.13.128.113
2022-01-23T11:22:47.979718594Z
Eagleman7 commented 2 years ago

Seems it is exactly 30 seconds, which can be found here: https://github.com/binhex/arch-qbittorrentvpn/blob/e4d2d79b27727b1fee7b08979c6ac92bcbb94f91/run/nobody/watchdog.sh#L33-L34

Eagleman7 commented 2 years ago

These are my env variables:

  ENABLE_PRIVOXY: 'no'
  LAN_NETWORK: 10.233.0.0/17,172.16.0.0/12,192.168.0.0/16
  NAME_SERVERS: 9.9.9.9,1.1.1.1,1.0.0.1
  PGID: '0'
  PUID: '0'
  STRICT_PORT_FORWARD: 'no'
  UMASK: '000'
  DEBUG: 'true'
  VPN_CLIENT: wireguard
  VPN_ENABLED: 'true'
  VPN_OUTPUT_PORTS: '50000'
  VPN_PROV: custom
  WEBUI_PORT: '8080'

Is it possible to disable the check somehow?