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
docker exec gluetun pkill -f wireguard-go
# MUST timeout now
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"