Skip to main content

Automatic port mapper for qBittorrent with ProtonVPN

Project description

qb-ptmap

Automatic port mapper for qBittorrent with ProtonVPN

Documentation work in progress

Prerequisites

  • qBittorrent/qBittorrent-nox;
  • Enabled qBittorrent webui;
  • natpmpc (debian, arch);
  • Wireguard or protonvpn installed.

Wireguard configuration

If you are using the proton vpn GUI you can skip this step.

Generate a Wireguard configuration for Linux and be sure to enable "NAT-PMP (Port Forwarding)".

Not mandatory but recommended

Install uv from the official source.

Installation

Install tool (recommended)

uv tool install  qb-ptmap

From source

Clone the repository:

git clone https://github.com/SimoneFelici/qb-ptmap.git

Generate the environment:

cd qb-ptmap && uv sync
source .venv/bin/activate

Usage

Wireguard

Move your wireguard configuration in /etc/wireguard/
Start wireguard with your proton config:

sudo wg-quick up proton

If you installed the recommended way:

qb-ptmap

Else:
Enter the environment and run the script:

source .venv/bin/activate
uv run src/qb_ptmap/qb_ptmap.py

ProtonVPN GUI

Connect to a server with port forwarding.
If you installed the recommended way:

qb-ptmap

Else:
Enter the environment and run the script:

source .venv/bin/activate

Configuration

At the first run the tool will generate the configuration file at ~/.local/share/qb-ptmap/config.toml You can then edit:

  • Webui url;
  • User;
  • Password.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qb_ptmap-1.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qb_ptmap-1.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file qb_ptmap-1.0.1.tar.gz.

File metadata

  • Download URL: qb_ptmap-1.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qb_ptmap-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c114164a8716e928c60c1d1966c0628d6ce77f6fd88e0669b234599065e6700b
MD5 bf40559178e85c4c5b20098f7e21dc62
BLAKE2b-256 725f9f3e8ed31d600251d893d36c5c009ac37225d65b1d9ca7cd4a25c33b9220

See more details on using hashes here.

Provenance

The following attestation bundles were made for qb_ptmap-1.0.1.tar.gz:

Publisher: python-publish.yml on SimoneFelici/qb-ptmap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qb_ptmap-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: qb_ptmap-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qb_ptmap-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7246b168ebcaab169b1bbc5538c165bbe0571f4c63c6514af4553dd8175b0408
MD5 557dbf2c9ad17547ed87db7503254994
BLAKE2b-256 2b79f701fce18a10d778f73e5ea292f93615de0f0b040842ab1ff66d4061a908

See more details on using hashes here.

Provenance

The following attestation bundles were made for qb_ptmap-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on SimoneFelici/qb-ptmap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page