haugene / vpn-configs-contrib

A collection of configs for various VPN providers
GNU General Public License v3.0
184 stars 749 forks source link

Protonvpn Automatic Port Forwarding Script not working #270

Closed GaretGaret closed 8 months ago

GaretGaret commented 8 months ago

Is there a pinned issue for this?

Is there an existing or similar issue for this?

Is there any comment in the documentation for this?

Is this related to the container/transmission?

Are you using the latest release?

Have you tried using the dev branch latest?

Config used

version: '3.3' services: transmission-openvpn: cap_add:

Current Behavior

New setup using PROTONVPN - Transmission does download, but feels a bit slow. Seeing "the gateway does not support nat-pmp" error message in logs, and am guessing issue might be failed port forwarding set up?

Edit: verified that transmission sees the port as closed.

Appreciate your assistance!

Expected Behavior

Port forwarding automatically happens.

How have you tried to solve the problem?

Turned on uTP in Transmission settings, no help.

Log output

transmission-openvpn-transmission-openvpn-1 | STARTING TRANSMISSION transmission-openvpn-transmission-openvpn-1 | Provider PROTONVPN has a script for automatic port forwarding. Will run it now. transmission-openvpn-transmission-openvpn-1 | If you want to disable this, set environment variable DISABLE_PORT_UPDATER=true transmission-openvpn-transmission-openvpn-1 | Transmission startup script complete. transmission-openvpn-transmission-openvpn-1 | 2024-01-28 19:35:47 Initialization Sequence Completed transmission-openvpn-transmission-openvpn-1 | ------------------------- transmission-openvpn-transmission-openvpn-1 | ProtonVPN Port Forwarding transmission-openvpn-transmission-openvpn-1 | ------------------------- transmission-openvpn-transmission-openvpn-1 | /usr/bin/natpmpc transmission-openvpn-transmission-openvpn-1 | natpmpc installed and executable. transmission-openvpn-transmission-openvpn-1 | initnatpmp() returned 0 (SUCCESS) transmission-openvpn-transmission-openvpn-1 | using gateway : 10.2.0.1 transmission-openvpn-transmission-openvpn-1 | sendpublicaddressrequest returned 2 (SUCCESS) transmission-openvpn-transmission-openvpn-1 | readnatpmpresponseorretry returned -7 (FAILED) transmission-openvpn-transmission-openvpn-1 | readnatpmpresponseorretry() failed : the gateway does not support nat-pmp transmission-openvpn-transmission-openvpn-1 | errno=111 'Connection refused' transmission-openvpn-transmission-openvpn-1 | initnatpmp() returned 0 (SUCCESS) transmission-openvpn-transmission-openvpn-1 | using gateway : 10.2.0.1 transmission-openvpn-transmission-openvpn-1 | sendpublicaddressrequest returned 2 (SUCCESS) transmission-openvpn-transmission-openvpn-1 | readnatpmpresponseorretry returned -7 (FAILED) transmission-openvpn-transmission-openvpn-1 | readnatpmpresponseorretry() failed : the gateway does not support nat-pmp transmission-openvpn-transmission-openvpn-1 | errno=111 'Connection refused' transmission-openvpn-transmission-openvpn-1 | Sun Jan 28 19:35:47 UTC 2024 transmission-openvpn-transmission-openvpn-1 | readnatpmpresponseorretry() failed : the gateway does not support nat-pmp transmission-openvpn-transmission-openvpn-1 | errno=111 'Connection refused' transmission-openvpn-transmission-openvpn-1 | ---------------------------- transmission-openvpn-transmission-openvpn-1 | No port retuned from natpmpc transmission-openvpn-transmission-openvpn-1 | ---------------------------- transmission-openvpn-transmission-openvpn-1 | Sun Jan 28 19:36:32 UTC 2024 transmission-openvpn-transmission-openvpn-1 | readnatpmpresponseorretry() failed : the gateway does not support nat-pmp transmission-openvpn-transmission-openvpn-1 | errno=111 'Connection refused'

Environment

- OS: Synology DSM 7.2.1-69057 Update 3
- Docker: 20.10.23 1437 (Container Manager version #)

Anything else?

No response

GaretGaret commented 8 months ago

Update: did some more searching using error strings, and found this link: https://www.reddit.com/r/ProtonVPN/comments/vnez5y/has_someone_looked_how_to_use_natpmp_with/

With this quote: "Note: OpenVPN is also supported. You just need to add +pmp at the end of your OpenVPN username. Then use a regular NATPMP client to get a port mapping."

And indeed, adding "+pmp" (without quotes) at the end of my OpenVPN username fixed the issue. Just sharing in case this helps anyone else, or you want to add to the documentation. Thanks for your work on this container!