tl;dr
find your provider and set up your docker-compose.yml
accordingly
do NOT use network_mode: "service: gluetun"
services:
stash:
environment:
- HTTP_PROXY="http://gluetun:8888"
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=STASHAPP_GLUETUN_WIREGUARD_PRIVATE_KEY_0000=
- SERVER_COUNTRIES=Netherlands
- HTTPPROXY=on
- HTTPPROXY_STALTH=on
Shut down stash and add proxy: http://gluetun:8888
to your stash’s config.yml
Detailed Guide
[!TIP]
ProtonVPN free is not actually recommended since it only has servers in the Netherlands, Japan, Romania, Poland and the US.
Canada is recommended for people in the US since it’s geographically close and lacks most geo-blocks
- Follow the steps in the gluetun wiki for your provider of choice
- Set up gluetue accordingly but add support for the HTTP proxy (docs)
services:
...
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=STASHAPP_GLUETUN_WIREGUARD_PRIVATE_KEY_0000=
- SERVER_COUNTRIES=Netherlands
- HTTPPROXY=on
- HTTPPROXY_STALTH=on
...
a. We do not add network_mode: "service: gluetun"
since it uses port 9999
for healthchecks. This complicates the networking in general.
- Shut down your stash instance and add
proxy: http://gluetun:8888
to yourconfig.yml
file. This is unfortunately not supported in environment variables - As an extra precaution, add
HTTP_PROXY="http://gluetun:8888"
to your environment variables so that any script that respects it also uses gluetun
a mirror of github