Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing a docker-compose.yaml example for Proton VPN #201

Open
jasonleexp opened this issue Oct 10, 2023 · 3 comments
Open

Sharing a docker-compose.yaml example for Proton VPN #201

jasonleexp opened this issue Oct 10, 2023 · 3 comments

Comments

@jasonleexp
Copy link

jasonleexp commented Oct 10, 2023

Looks like ProtonVPN is now officially supported, but I didn't see any official documentation or examples of how to run the container with it.

Sharing my docker-compose.yaml in case anyone needs it in the future:

version: '3.9'
services:
    arch-qbittorrentvpn:
        image: binhex/arch-qbittorrentvpn
        container_name: qbittorrentvpn
        volumes:
            - '/volume1/docker/qbittorrentvpn/config:/config'
            - '/volume1/media/downloads:/data'
            - '/etc/localtime:/etc/localtime:ro'
        ports:
            - '49550:49550'
            - '49551:8118'
        environment:
            - VPN_ENABLED=yes
            - VPN_PROV=protonvpn
            - VPN_CLIENT=openvpn
            - VPN_USER=yourprotonvpnusernamehere+pmp
            - VPN_PASS=yourprotonvpnpasswordhere
            - STRICT_PORT_FORWARD=yes
            - 'NAME_SERVERS=84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1'
            - LAN_NETWORK=192.168.1.0/24
            - ENABLE_PRIVOXY=yes
            - PUID=1060
            - PGID=65536
            - WEBUI_PORT=49550
            - UMASK=000
            - DEBUG=false
        cap_add:
            - NET_ADMIN
        network_mode: bridge
        restart: unless-stopped

Notes:

  • You must append +pmp at the end of your username to indicate you want port forwarding enabled by ProtonVPN as shown in their official documentation
  • You'll need to change LAN_NETWORK to be your LAN network IP range (obviously). I used this site to convert to CIDR notation.
  • I personally changed the WEBUI_PORT to be something other than the default port 8080 was already taken by another app. If you do this, you'll have to set the environment variable e.g., like I did, using WEBUI_PORT=49550. Also be sure to change your port mapping e.g., like I do to be 49550:49550.
  • You'll need to change your PUID and PGID to be whatever local user and/or group you want it to be. I personally set the user to be ''1060'' and grant permissions to the /config directory on my machine.
  • I enabled Privoxy and set the port to be 49551 (again, just personal preference)
@aevans1987
Copy link

Out of curiosity, Is the network_mode: bridge required?

@Damien2417
Copy link

anyone can help me how to port forward properly ? I mean I've added the +pmp, added my port in qbittorrent, and then ? my port seem still closed :(

@ItsCalebJones
Copy link

I've tried a half dozen other docker images as well ^ having the same issue using ProtonVPN - everything SEEMS okay but no upload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants