binhex / arch-qbittorrentvpn

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

ProtonVPN NAT-PMP stops to work after a while and network become firewalled #255

Open lukkas-diabolito opened 2 months ago

lukkas-diabolito commented 2 months ago

Full log:

2024-07-10 17:19:01,226 DEBG 'start-script' stderr output:
[#] ip link delete dev wg0

2024-07-10 17:19:01,389 DEBG 'start-script' stderr output:
[#] resolvconf -d wg0 -f

2024-07-10 17:19:01,430 DEBG 'start-script' stderr output:
could not detect a useable init system

2024-07-10 17:19:01,562 DEBG 'start-script' stderr output:
[#] iptables-restore -n

2024-07-10 17:19:01,579 DEBG 'start-script' stderr output:
[#] '/root/wireguarddown.sh'

2024-07-10 17:19:01,603 DEBG 'start-script' stdout output:
[info] WireGuard interface 'down'

2024-07-10 17:19:01,616 DEBG 'start-script' stdout output:
[info] Configuring WireGuard...

2024-07-10 17:19:01,668 DEBG 'start-script' stdout output:
[info] Attempting to bring WireGuard interface 'up'...

2024-07-10 17:19:01,692 DEBG 'start-script' stderr output:
Warning: `/config/wireguard/wg0.conf' is world accessible

2024-07-10 17:19:01,715 DEBG 'start-script' stderr output:
[#] ip link add wg0 type wireguard

2024-07-10 17:19:01,720 DEBG 'start-script' stderr output:
[#] wg setconf wg0 /dev/fd/63

2024-07-10 17:19:01,724 DEBG 'start-script' stderr output:
[#] ip -4 address add 10.2.0.2/32 dev wg0

2024-07-10 17:19:01,744 DEBG 'start-script' stderr output:
[#] ip link set mtu 1420 up dev wg0

2024-07-10 17:19:01,752 DEBG 'start-script' stderr output:
[#] resolvconf -a wg0 -m 0 -x

2024-07-10 17:19:01,774 DEBG 'start-script' stderr output:
could not detect a useable init system

2024-07-10 17:19:01,918 DEBG 'start-script' stderr output:
[#] wg set wg0 fwmark 51820

2024-07-10 17:19:01,922 DEBG 'start-script' stderr output:
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820

2024-07-10 17:19:01,930 DEBG 'start-script' stderr output:
[#] ip -4 rule add not fwmark 51820 table 51820

2024-07-10 17:19:01,936 DEBG 'start-script' stderr output:
[#] ip -4 rule add table main suppress_prefixlength 0

2024-07-10 17:19:01,947 DEBG 'start-script' stderr output:
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1

2024-07-10 17:19:01,953 DEBG 'start-script' stderr output:
[#] iptables-restore -n

2024-07-10 17:19:01,959 DEBG 'start-script' stderr output:
[#] '/root/wireguardup.sh'

2024-07-10 17:19:04,069 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...

2024-07-10 17:19:04,237 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 149.88.27.229

2024-07-10 17:19:04,238 DEBG 'start-script' stdout output:
[info] Script started to assign incoming port for 'protonvpn'

2024-07-10 17:19:04,242 DEBG 'start-script' stdout output:
[info] WireGuard interface 'up'

2024-07-10 17:19:07,121 DEBG 'start-script' stdout output:
initnatpmp() returned 0 (SUCCESS)
using gateway : 10.2.0.1
sendpublicaddressrequest returned 2 (SUCCESS)
readnatpmpresponseorretry returned -100 (TRY AGAIN)
readnatpmpresponseorretry returned -100 (TRY AGAIN)
readnatpmpresponseorretry returned 0 (OK)
Public IP address : 149.88.27.229
epoch = 2851428
closenatpmp() returned 0 (SUCCESS)
mfoti commented 1 month ago

any news on this? :(

bastienlg commented 1 month ago

I have the exact same error and happy to find this issue. When starting the docker, it start all the configuration and port forwarding. Then after about 5 minutes, it stops seeding nearly completely (appart from peers that have port forwarded that are pretty rare)