English | 中文
Bash script for blocking bad peers in transmission with iptables and ipset.
transmissionis installed and runningtransmission-remotecommand is availableiptablesis availableipsetpackage is installedcroniepackage is installed (Optional)
This script can be ran manually or you can create a scheduled task with tools like cronie.
- Either download transmission-peer-blocker.sh file only or clone this repo to your Linux machine with
git clone https://github.com/askar882/transmission-peer-blockercommand. - Grant execute permission to the script with
chmod +x transmission-peer-blocker.sh.
Create a scheduled task for root user with sudo crontab -e command and paste the following:
*/5 * * * * /home/user/transmission-peer-blocker/transmission-peer-blocker.sh📝
cronieexecutes/home/user/transmission-peer-blocker/transmission-peer-blocker.shevery 5 minutes. You can create your own scheduled task expression on Crontab.guru. Don't forget to change the scripts path to the real path of it on your machine.