haugene/vpn-configs-contrib

Protonvpn Automatic Port Forwarding Script not working

GaretGaret opened this issue · 1 comments

Is there a pinned issue for this?

  • I have read the pinned issues

Is there an existing or similar issue for this?

  • I have searched the existing issues

Is there any comment in the documentation for this?

  • I have read the documentation, especially the FAQ and Troubleshooting parts

Is this related to the container/transmission?

  • I have checked the container repo for issues

Are you using the latest release?

  • I am using the latest release

Have you tried using the dev branch latest?

  • I have tried using dev branch

Config used

version: '3.3'
services:
transmission-openvpn:
cap_add:
- NET_ADMIN
volumes:
- /volume1/docker/transmission-openvpn/data:/data
- /volume1/docker/transmission-openvpn/config:/config
environment:
- OPENVPN_PROVIDER=PROTONVPN
- OPENVPN_CONFIG=is.protonvpn.net.udp,is.protonvpn.net.tcp
- OPENVPN_USERNAME=XXX
- OPENVPN_PASSWORD=XXX
- LOCAL_NETWORK=192.168.1.0/24
logging:
driver: json-file
options:
max-size: 10m
ports:
- '9091:9091'
image: haugene/transmission-openvpn

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

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!