Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

lersveen/qpsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qpsync – qBittorrent Port Sync

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.

Usage

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.

Configuration

qpsync can be configured using a YAML config file, see config-example.yaml.

Environment variables

  • QBITTORRENT_USER: Username for qBittorrent web UI
  • QBITTORRENT_PASS: Password for qBittorrent web UI
  • QBITTORRENT_SERVER: Hostname or IP address for qBittorrent web UI
  • QBITTORRENT_PORT: Port for qBittorrent web UI
  • GLUETUN_SERVER: Hostname or IP address for Gluetun VPN container
  • GLUETUN_PORT: Port for Gluetun VPN container
  • UPDATE_FREQ: How often to update port

About

Sync Gluetun VPN forwarded port to qBittorrent

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors