Hello. I have recently setup binhex-rtorrentvpn on Unraid and I'm having trouble loading the webgui. I've tried without VPN enabled and it loads fine so it's something with the VPN settings. I've first tried with openvpn and that was a disaster however I see now that pia openvpn might no longer work. I've tried wireguard now with your instructions on GitHub and that will not load webgui either. I have netgate 1100 pfsense on and Eero pro 6 connected via bridge mode using recommended topology. I'm wondering if that might be causing issues. I've tried allowing port 9080 to pass through pfsense firewall and that does not fix it.
Please see container logs:
2022-02-27 08:14:22.392754 [info] Host is running unRAID
2022-02-27 08:14:22.402361 [info] System information Linux 25973257f436 5.10.28-Unraid #1 SMP Wed Apr 7 08:23:18 PDT 2021 x86_64 GNU/Linux
2022-02-27 08:14:22.414314 [info] OS_ARCH defined as 'x86-64'
2022-02-27 08:14:22.425835 [info] PUID defined as '99'
2022-02-27 08:14:22.443384 [info] PGID defined as '100'
2022-02-27 08:14:22.464558 [info] UMASK defined as '000'
2022-02-27 08:14:22.475333 [info] Permissions already set for '/config'
2022-02-27 08:14:22.488843 [info] Deleting files in /tmp (non recursive)...
2022-02-27 08:14:22.503980 [info] VPN_ENABLED defined as 'yes'
2022-02-27 08:14:22.515066 [info] VPN_CLIENT defined as 'wireguard'
2022-02-27 08:14:22.525825 [info] VPN_PROV defined as 'pia'
2022-02-27 08:14:22.900017 [info] WireGuard config file (conf extension) is located at /config/wireguard/wg0.conf
2022-02-27 08:14:22.917065 [info] VPN_REMOTE_SERVER defined as 'nl-amsterdam.privacy.network'
2022-02-27 08:14:22.940200 [info] VPN_REMOTE_PORT defined as '1337'
2022-02-27 08:14:22.949790 [info] VPN_DEVICE_TYPE defined as 'wg0'
2022-02-27 08:14:22.959458 [info] VPN_REMOTE_PROTOCOL defined as 'udp'
2022-02-27 08:14:22.970312 [info] LAN_NETWORK defined as '192.168.1.1/24'
2022-02-27 08:14:22.981309 [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'
2022-02-27 08:14:22.992194 [info] VPN_USER defined as 'xxxxxxxxxx'
2022-02-27 08:14:23.003121 [info] VPN_PASS defined as 'xxxxxxxxxx'
2022-02-27 08:14:23.013975 [info] STRICT_PORT_FORWARD defined as 'yes'
2022-02-27 08:14:23.024909 [info] ENABLE_PRIVOXY defined as 'no'
2022-02-27 08:14:23.037343 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports
2022-02-27 08:14:23.048512 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports
2022-02-27 08:14:23.059521 [info] ENABLE_AUTODL_IRSSI defined as 'no'
2022-02-27 08:14:23.070375 [info] ENABLE_RPC2 defined as 'yes'
2022-02-27 08:14:23.081332 [info] ENABLE_RPC2_AUTH defined as 'yes'
2022-02-27 08:14:23.092266 [info] RPC2_USER defined as 'admin'
2022-02-27 08:14:23.105156 [warn] RPC2_PASS not defined (via -e RPC2_PASS), using randomised password (password stored in '/config/nginx/security/rpc2_pass')
2022-02-27 08:14:23.116528 [info] ENABLE_WEBUI_AUTH defined as 'yes'
2022-02-27 08:14:23.127317 [info] WEBUI_USER defined as 'admin'
2022-02-27 08:14:23.139960 [warn] WEBUI_PASS not defined (via -e WEBUI_PASS), using randomised password (password stored in '/config/nginx/security/webui_pass')
2022-02-27 08:14:23.160532 [info] Starting Supervisor...
2022-02-27 08:14:23,307 INFO Included extra file "/etc/supervisor/conf.d/rtorrent.conf" during parsing
2022-02-27 08:14:23,307 INFO Set uid to user 0 succeeded
2022-02-27 08:14:23,309 INFO supervisord started with pid 7
2022-02-27 08:14:24,310 INFO spawned: 'logrotate-script' with pid 204
2022-02-27 08:14:24,311 INFO spawned: 'pyrocore-script' with pid 205
2022-02-27 08:14:24,312 INFO spawned: 'rutorrent-script' with pid 206
2022-02-27 08:14:24,313 INFO spawned: 'shutdown-script' with pid 207
2022-02-27 08:14:24,313 INFO spawned: 'start-script' with pid 208
2022-02-27 08:14:24,314 INFO spawned: 'watchdog-script' with pid 210
2022-02-27 08:14:24,314 INFO reaped unknown pid 8 (exit status 0)
2022-02-27 08:14:24,316 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN
2022-02-27 08:14:24,316 INFO success: logrotate-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-27 08:14:24,316 INFO success: pyrocore-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-27 08:14:24,316 INFO success: rutorrent-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-27 08:14:24,316 INFO success: shutdown-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-27 08:14:24,316 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-27 08:14:24,316 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-27 08:14:24,317 DEBG 'watchdog-script' stdout output:
[info] rTorrent config file already exists, skipping copy
2022-02-27 08:14:24,317 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf
2022-02-27 08:14:24,319 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf
2022-02-27 08:14:24,320 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf
2022-02-27 08:14:24,322 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf
2022-02-27 08:14:24,323 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf
2022-02-27 08:14:24,324 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf
2022-02-27 08:14:24,415 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 23007805415040 for <Subprocess at 23007805414368 with name pyrocore-script in state RUNNING> (stdout)>
2022-02-27 08:14:24,415 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 23007803828544 for <Subprocess at 23007805414368 with name pyrocore-script in state RUNNING> (stderr)>
2022-02-27 08:14:24,415 INFO exited: pyrocore-script (exit status 0; expected)
2022-02-27 08:14:24,415 DEBG received SIGCHLD indicating a child quit
2022-02-27 08:14:25,059 DEBG 'start-script' stdout output:
[info] Token generated for PIA wireguard authentication
2022-02-27 08:14:25,071 DEBG 'start-script' stdout output:
[info] Trying to connect to the PIA WireGuard API on 'nl-amsterdam.privacy.network'...
2022-02-27 08:14:26,008 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1
2022-02-27 08:14:26,014 DEBG 'start-script' stdout output:
[info] Docker network defined as 172.17.0.0/16
2022-02-27 08:14:26,015 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.1/24 as route via docker eth0
2022-02-27 08:14:26,016 DEBG 'start-script' stderr output:
Error: Invalid prefix for given prefix length.
2022-02-27 08:14:26,016 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------
2022-02-27 08:14:26,016 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.11
2022-02-27 08:14:26,016 DEBG 'start-script' stdout output:
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
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
broadcast 172.17.0.0 dev eth0 table local proto kernel scope link src 172.17.0.11
local 172.17.0.11 dev eth0 table local proto kernel scope host src 172.17.0.11
broadcast 172.17.255.255 dev eth0 table local proto kernel scope link src 172.17.0.11
--------------------
2022-02-27 08:14:26,017 DEBG 'start-script' stdout output:
iptable_mangle 16384 1
ip_tables 28672 4 iptable_filter,iptable_raw,iptable_nat,iptable_mangle
x_tables 28672 17 ip6table_filter,xt_conntrack,iptable_filter,xt_tcpudp,xt_addrtype,xt_CHECKSUM,xt_nat,xt_comment,ip6_tables,ipt_REJECT,xt_connmark,iptable_raw,ip_tables,ip6table_mangle,xt_MASQUERADE,iptable_mangle,xt_mark
2022-02-27 08:14:26,017 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables
2022-02-27 08:14:26,048 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------
2022-02-27 08:14:26,048 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -s 143.244.41.214/32 -i eth0 -j ACCEPT
-A INPUT -s 181.214.206.211/32 -i eth0 -j ACCEPT
-A INPUT -s 212.102.35.154/32 -i eth0 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 9080 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 9080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 9443 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 9443 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 5000 -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 -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -d 143.244.41.214/32 -o eth0 -j ACCEPT
-A OUTPUT -d 181.214.206.211/32 -o eth0 -j ACCEPT
-A OUTPUT -d 212.102.35.154/32 -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 9080 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --sport 9080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 9443 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --sport 9443 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 5000 -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-02-27 08:14:26,049 DEBG 'start-script' stdout output:
--------------------
2022-02-27 08:14:26,050 DEBG 'start-script' stdout output:
[info] Attempting to bring WireGuard interface 'up'...
2022-02-27 08:14:26,054 DEBG 'start-script' stderr output:
Warning: `/config/wireguard/wg0.conf' is world accessible
2022-02-27 08:14:26,057 DEBG 'start-script' stderr output:
[#] ip link add wg0 type wireguard
2022-02-27 08:14:26,057 DEBG 'start-script' stderr output:
[#] wg setconf wg0 /dev/fd/63
2022-02-27 08:14:26,070 DEBG 'start-script' stderr output:
[#] ip -4 address add 10.26.212.38 dev wg0
2022-02-27 08:14:26,072 DEBG 'start-script' stderr output:
[#] ip link set mtu 1420 up dev wg0
2022-02-27 08:14:26,090 DEBG 'start-script' stderr output:
[#] wg set wg0 fwmark 51820
2022-02-27 08:14:26,090 DEBG 'start-script' stderr output:
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
2022-02-27 08:14:26,090 DEBG 'start-script' stderr output:
[#] ip -4 rule add not fwmark 51820 table 51820
2022-02-27 08:14:26,091 DEBG 'start-script' stderr output:
[#] ip -4 rule add table main suppress_prefixlength 0
2022-02-27 08:14:26,092 DEBG 'start-script' stderr output:
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
2022-02-27 08:14:26,093 DEBG 'start-script' stderr output:
[#] iptables-restore -n
2022-02-27 08:14:26,094 DEBG 'start-script' stderr output:
[#] '/root/wireguardup.sh'
2022-02-27 08:14:27,280 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...
2022-02-27 08:14:27,983 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 143.244.41.214
2022-02-27 08:14:27,984 DEBG 'start-script' stdout output:
[info] WireGuard interface 'up'
2022-02-27 08:14:27,984 DEBG 'start-script' stdout output:
[info] Script started to assign incoming port
[info] Port forwarding is enabled
[info] Checking endpoint 'nl-amsterdam.privacy.network' is port forward enabled...
2022-02-27 08:14:29,218 DEBG 'start-script' stdout output:
[info] PIA endpoint 'nl-amsterdam.privacy.network' is in the list of endpoints that support port forwarding
2022-02-27 08:14:29,218 DEBG 'start-script' stdout output:
[info] List of PIA endpoints that support port forwarding:-
2022-02-27 08:14:29,219 DEBG 'start-script' stdout output:
[info] cyprus.privacy.network
[info] israel.privacy.network
[info] italy-2.privacy.network
[info] in.privacy.network
[info] yerevan.privacy.network
[info] bogota.privacy.network
[info] qatar.privacy.network
[info] tr.privacy.network
[info] france.privacy.network
[info] santiago.privacy.network
[info] swiss.privacy.network
[info] hk.privacy.network
[info] zagreb.privacy.network
[info] bahamas.privacy.network
[info] cambodia.privacy.network
[info] sweden-2.privacy.network
[info] denmark.privacy.network
[info] ar.privacy.network
[info] italy.privacy.network
[info] de-frankfurt.privacy.network
[info] nz.privacy.network
[info] uk-southampton.privacy.network
[info] sanjose.privacy.network
[info] lu.privacy.network
[info] ireland.privacy.network
[info] monaco.privacy.network
[info] philippines.privacy.network
[info] denmark-2.privacy.network
[info] mexico.privacy.network
[info] mongolia.privacy.network
[info] montenegro.privacy.network
[info] macau.privacy.network
[info] hungary.privacy.network
[info] dz.privacy.network
[info] al.privacy.network
[info] fi-2.privacy.network
2022-02-27 08:14:29,219 DEBG 'start-script' stdout output:
[info] vietnam.privacy.network
[info] kualalumpur.privacy.network
[info] uk-2.privacy.network
[info] egypt.privacy.network
[info] pt.privacy.network
[info] gr.privacy.network
[info] morocco.privacy.network
[info] austria.privacy.network
[info] aus-melbourne.privacy.network
[info] uk-london.privacy.network
[info] ua.privacy.network
[info] lt.privacy.network
[info] liechtenstein.privacy.network
[info] ca-toronto.privacy.network
[info] nl-amsterdam.privacy.network
[info] venezuela.privacy.network
[info] za.privacy.network
[info] jakarta.privacy.network
[info] fi.privacy.network
[info] japan-2.privacy.network
[info] ad.privacy.network
[info] georgia.privacy.network
[info] kazakhstan.privacy.network
[info] man.privacy.network
[info] ca-vancouver.privacy.network
[info] nigeria.privacy.network
[info] md.privacy.network
[info] sk.privacy.network
[info] brussels.privacy.network
[info] ba.privacy.network
[info] czech.privacy.network
[info] panama.privacy.network
[info] br.privacy.network
[info] greenland.privacy.network
[info] bangladesh.privacy.network
[info] slovenia.privacy.network
[info] rs.privacy.network
[info] saudiarabia.privacy.network
[info] au-sydney.privacy.network
[info] mk.privacy.network
[info] aus-perth.privacy.network
[info] is.privacy.network
[info] sofia.privacy.network
2022-02-27 08:14:29,219 DEBG 'start-script' stdout output:
[info] poland.privacy.network
[info] ca-montreal.privacy.network
[info] ca-ontario.privacy.network
[info] malta.privacy.network
[info] de-berlin.privacy.network
[info] spain.privacy.network
[info] sweden.privacy.network
[info] uk-manchester.privacy.network
[info] taiwan.privacy.network
[info] no.privacy.network
[info] ee.privacy.network
[info] japan.privacy.network
[info] ro.privacy.network
[info] china.privacy.network
[info] srilanka.privacy.network
[info] sg.privacy.network
[info] lv.privacy.network
[info] ae.privacy.network
2022-02-27 08:14:32,187 DEBG 'start-script' stdout output:
[info] Successfully assigned and bound incoming port '41043'
2022-02-27 08:14:32,306 DEBG 'watchdog-script' stdout output:
[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.26.212.38 different, marking for reconfigure
2022-02-27 08:14:32,329 DEBG 'watchdog-script' stdout output:
[info] rTorrent not running
[info] rTorrent incoming port 49160 and VPN incoming port 41043 different, marking for reconfigure
2022-02-27 08:14:32,329 DEBG 'watchdog-script' stdout output:
[info] Removing any rTorrent session lock files left over from the previous run...
2022-02-27 08:14:32,329 DEBG 'watchdog-script' stdout output:
[info] Attempting to start rTorrent...
2022-02-27 08:14:32,330 DEBG 'watchdog-script' stdout output:
Script started, output log file is '/home/nobody/typescript'.
2022-02-27 08:14:32,349 DEBG 'watchdog-script' stdout output:
Script done.
2022-02-27 08:14:43,377 DEBG 'watchdog-script' stdout output:
[warn] Wait for rTorrent process to start aborted, too many retries
[warn] Failed to start rTorrent, skipping initialisation of ruTorrent Plugins...