Important
Update 23 March 2025: This script is redudent if you use Gluetun VPN because it supports a post port forwarding script. See details here with a qBittorrent example.
A qBittorrent script that takes advantage of the docker healthcheck ability to do a few things every x seconds:
- Check if qBitorrent is up
- If yes, check if the configured listening port is the same as the forwarded port of the VPN provider.