qpsync is a utility to dynamically map the listening port in qBittorrent to the port forwarded by Gluetun VPN client for services like Proton VPN or Private Internet Access.
Rewritten in Golang from this shell script gist by socketbox.
qpsync [options]
Options:
-f Path to config (default "config.yaml")
-i Path to forward port file
-j Run as a job, updating once
-u Update frequency in seconds (default 300)You can sync the forward port from a plain text file by specifying -i <file>. This overrides the default of syncing the port from Gluetun control server.
qpsync can be configured using a YAML config file, see config-example.yaml.
QBITTORRENT_USER: Username for qBittorrent web UIQBITTORRENT_PASS: Password for qBittorrent web UIQBITTORRENT_SERVER: Hostname or IP address for qBittorrent web UIQBITTORRENT_PORT: Port for qBittorrent web UIGLUETUN_SERVER: Hostname or IP address for Gluetun VPN containerGLUETUN_PORT: Port for Gluetun VPN containerUPDATE_FREQ: How often to update port