# Test Gluetuns ip connection  | cut the connection in Docker

### Version 1

\# Should show IVPN IP

```bash
docker exec qbittorrent curl -m 10 https://ifconfig.co
```

\# Kill the tunnel (this should auto reconnect if your settings are set up that way)

```bash
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.

```bash
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

```bash
docker exec gluetun /bin/sh -c "kill \$(cat /tmp/wireguard.pid)"
```

Now bring the VPN (Gluetun) back up:

```bash
docker exec gluetun /bin/sh -c "wg-quick up wg0"
```