I run qbittorrent in a Docker container on my Synology NAS, with VPN configured at the Synology system level (Control Panel -> Network -> Network Interface) rather than the container level. For setup instructions, you can follow this guide.

Even with killswitch enabled, I wanted to verify beyond the UI’s “Firewalled” status that my torrent traffic was actually routing through the VPN.

To check this, SSH into your Synology NAS and run:

sudo docker exec qbittorrent curl ifconfig.me

This command retrieves the container’s public IP address. If it matches your VPN IP address rather than your real IP, you’ve confirmed that the container’s traffic is properly routing through the VPN.