2
0
Fork 0

update: README.md - include more info regarding variables; having post-rules.txt on gluetun no longer needed

This commit is contained in:
soxfor 2023-03-18 01:55:11 +00:00
parent 77246524a7
commit 3aa9c7a434
1 changed files with 15 additions and 7 deletions

View File

@ -2,12 +2,20 @@
Docker container to maintain and update the NAT-PMP/UPnP forwarded port to qBittorrent.
Tested with Gluetun using ProtonVPN (Wireguard) and qBittorrent, it assumes that on the VPN container there's the following rules:
```console
# cat iptables/post-rules.txt
iptables -A INPUT -i tun0 -s 0.0.0.0/0 -d 0.0.0.0/0 -p tcp --dport 10000:65535 -j ACCEPT
iptables -A INPUT -i tun0 -s 0.0.0.0/0 -d 0.0.0.0/0 -p udp --dport 10000:65535 -j ACCEPT
```
Tested with Gluetun using ProtonVPN (Wireguard) and qBittorrent.
This solution can probably need a few tweaks and error handling, also some work in opening only the needed port on the VPN container.
In the repo a sample docker-compose.yml can be found.
The following variables can be set:
- QBITTORRENT_SERVER (Default: <not set>)*
- QBITTORRENT_PORT (Default: 8080)
- QBITTORRENT_USER (Default: admin)
- QBITTORRENT_PASS (Default: adminadmin)
- VPN_CT_NAME (Default: gluetun)
- VPN_IF_NAME (Default: tun0)
- VPN_GATEWAY* (Default: <not set>)*
- CHECK_INTERVAL (Default: 300s)
- NAT_LEASE_TIME (Default: 300s)