arch-qbittorrentvpn icon indicating copy to clipboard operation
arch-qbittorrentvpn copied to clipboard

Sharing a docker-compose.yaml example for Proton VPN

Open jasonleexp opened this issue 1 year ago • 3 comments

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)

jasonleexp avatar Oct 10 '23 00:10 jasonleexp

Out of curiosity, Is the network_mode: bridge required?

aevans1987 avatar Mar 03 '24 04:03 aevans1987

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 :(

Damien2417 avatar Mar 06 '24 22:03 Damien2417

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

ItsCalebJones avatar Apr 22 '24 03:04 ItsCalebJones