Skip to content

Instantly share code, notes, and snippets.

@moosetwin0
moosetwin0 / natpmpc-qbittorrent-update.sh
Last active June 16, 2026 09:25 — forked from pavax/natpmpc-transmission-update.sh
Bash script to open a port using natpmpc and update the opened port in qbittorrent
#!/bin/bash
# The gateway to send the natpmp commands
natpmp_ip="10.2.0.1"
# Path to the lock file
lock_file="/tmp/qbittorrent_update.lock"
# How long to wait for an retry to open the ports
retry_wait_time=5