PIA: automatically update forwarded port in qBittorrent or Deluge with shell + inotifywait #809
Replies: 2 comments 2 replies
-
this is a couple of years old but I was looking for this - PIA seems to be fine with holding on to your ports for a long time but it seems protonvpn changes my ports frequently (multiple times a day). until now, I've just been manually changing it occasionally but having an automated way to do this would be nice! glad that I was able to come across this on google; I know this is an old post but I'll update this comment when I get around to testing it since others might come here from google as well |
Beta Was this translation helpful? Give feedback.
-
This works for me -- I run it via cron and have it output to a log file (for some reason it seems ProtonVPN servers go down a lot! Not sure if I can pass a list into Gluetun but that's unrelated) (also please don't judge me too harshly I threw this together in 15 minutes and it seems to work fine): my container names are
|
Beta Was this translation helpful? Give feedback.
-
Assuming you have something like this in your gluetun
docker-compose.yml
:nano set_port.sh && chmod +x set_port.sh
alongside the docker-compose.yml:for qBittorent (change
torrent
,/path/to/
and8532
according to your system):for deluge (change
torrent
and/path/to/
according to your system):(if you don't have inotifywait do
sudo apt install inotify-tools
crontab -e
make a new line (change
/path/to
according to your system)This will start the monitoring after reboot. To start the monitoring immediately without having to reboot do this (I think) :
when the file changes the script will read the new port number and run the script to change it in torrent client
Beta Was this translation helpful? Give feedback.
All reactions