March 20Mar 20 Hi,I know this is not specifically about Unraid, but it is related. How does Gluetun actually work?I have set up a container stack in Unraid that includes Gluetun. For the other container in the same stack, I have specified the network like this: network_mode: service:gluetun.From what I understand, Gluetun establishes a VPN connection to the VPN provider, gets a different public IP address, and then routes the traffic from all other containers in the stack that are configured to use Gluetun through that connection. Is that correct?This is one of my stacks:version: "3" services: gluetun: image: qmcgaw/gluetun cap_add: - NET_ADMIN devices: - /dev/net/tun:/dev/net/tun environment: - VPN_SERVICE_PROVIDER=[VPN provider] - VPN_TYPE=wireguard - WIREGUARD_PRIVATE_KEY=[Password] - WIREGUARD_ADDRESSES=[IP] - SERVER_COUNTRIES=[Country] - SERVER_CITIES=[City] - SERVER_CONNECTION_PROTOCOL=ipv4 - HTTP_CONTROL_SERVER_AUTH=basic - HTTP_CONTROL_SERVER_USERNAME=vpn - HTTP_CONTROL_SERVER_PASSWORD=[Password] ports: - 8012:8012 - 9526:9526 - 8666:8666 - 7232:7232 volumes: - /mnt/user/appdata/gluetun:/gluetun healthcheck: test: ["CMD-SHELL", "wget -qO- https://test.net/ | grep -q 'You are connected'"] interval: 10s timeout: 5s retries: 30 start_period: 20s restart: unless-stopped qbittorrent: image: lscr.io/linuxserver/qbittorrent:latest container_name: qbittorrent network_mode: service:gluetun depends_on: gluetun: condition: service_healthy environment: - PUID=252 - PGID=123 - TZ=[] - WEBUI_PORT=8034 volumes: - /mnt/user/appdata/qbittorrent:/config - /mnt/user/downloads:/downloads restart: unless-stopped networks: {}Is this the correct way to set it up, and how can I verify that the container is actually using the VPN?Will this also work as a secure kill switch if the VPN connection goes down?Regards
March 21Mar 21 Hiya, this video from SpaceInvaderOne may well answer your questions...https://www.youtube.com/watch?v=hgcFdUIOf5M
March 21Mar 21 GitHubGitHub - qdm12/gluetun-wiki: Home to the Markdown Wiki pa...Home to the Markdown Wiki page for Gluetun. Contribute to qdm12/gluetun-wiki development by creating an account on GitHub.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.