Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qBitTorrent automatic update port #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

madeofstown
Copy link

No description provided.

Update qBitTorrent client listen_port using the web api
@FingerlessGlov3s
Copy link
Owner

I have a similar script to update transmissions peer port, which runs on the client running Transmission. I personally don't want the script on OPNsense doing it.

I have thought about creating a helper-scripts folder, then have some scripts for qbittorrent, transmissions, etc. Which you run on the devices running the torrent client, which use the https://opnsense.lan/wg0_port.txt to get the current port. It's also more secure doing it this way, as you don't then store more credentials in plain text on your router, and you can leave qbittorrent listening on localhost. The opnsense script won't start erroring if it can't reach qbittorrent for some reason.

This is my transmissions script, it checks if the port is open and then attempts updating if its not. Then you run this every, 5-10 minutes.
https://gist.github.com/FingerlessGlov3s/b5bd192d6503738ed1f51b30adf15a3f

@madeofstown
Copy link
Author

I prefer having all my port changes/updates happening in a single script and I don't really see it as any more of a security issue if HTTPS is used. If OPNsense is good enough to store your PIA credentials in plaintext it should certainly be good enough to store your BitTorrent clients credentials that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants