Test Gluetuns ip connection | cut the connection in Docker
Version 1
# Should show IVPN IP
docker exec qbittorrent curl -m 10 https://ifconfig.co
# Kill the tunnel (this should auto reconnect if your settings are set up that way)
docker exec gluetun pkill -f wireguard-go
# MUST timeout now: this shows your connection. If it connects REALLY fast, you may not notice that it ever got cut.
docker exec qbittorrent curl -m 10 https://ifconfig.co || echo "KILL-SWITCH 100% WORKING — NO LEAK"
Version 2
Cut the vpn connection from Gluetun to your other apps
docker exec gluetun /bin/sh -c "kill \$(cat /tmp/wireguard.pid)"
Now bring the VPN (Gluetun) back up:
docker exec gluetun /bin/sh -c "wg-quick up wg0"
No Comments