Replies: 2 comments 3 replies
-
Definitely, that's what I do and it works without issue. Note that containers are not VMs though 😉 See https://github.com/qdm12/gluetun/wiki/Connect-to-gluetun to connect other Containers or machines to gluetun. A small tip, you should have separate directories for each region so for example Finally the Docker pull command downloads the docker image (=the gluetun program with dependencies such as openvpn) which you run as a container with the Docker run command. You can also re-pull the image to get updates or use tagged images such as |
Beta Was this translation helpful? Give feedback.
-
Yes you need to create each directory (empty) with for example mkdir -p /regions/california-gluetun
mkdir -p /regions/vancouver-gluetun When running the container, it will write persistent information to them (server information and port forwarded if you use that feature).
Now I noticed you publish ports 9001, 9002 and 9003 but nothing is listening there. You could then have the two commands: docker run -d --name pia_california --cap-add=NET_ADMIN -e REGION="US California" -v /regions/california-gluetun:/gluetun -p 8388:8388/tcp -p 8388:8388/udp -e SHADOWSOCKS=on qmcgaw/gluetun
docker run -d --name pia_vancouver --cap-add=NET_ADMIN -e REGION="CA Vancouver" -v /regions/vancouver-gluetun:/gluetun -p 8389:8388/tcp -p 8389:8388/udp -e SHADOWSOCKS=on qmcgaw/gluetun Where you can connect over Shadowsocks to california on port 8388 and to Vancouver on port 8389. |
Beta Was this translation helpful? Give feedback.
-
Hi, would it be possible to create multiple containers for multiple regions?
Something like this (Done on a VM)
I already have the env variables VPNSP, OPENVPN_USER and OPENVPN_PASSWORD set.
Then from my host machine I can use the VM's IP and 9001, 9002 or 9003 as proxy to connect to the containers?
Also I'm not 100% sure what to do with the
-v /yourpath:/gluetun qmcgaw/gluetun
part.I've done
docker pull qmcgaw/gluetun
but not sure to where that's saved.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions