Skip to content

askar882/transmission-peer-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

transmission-peer-blocker

English | 中文

Description

Bash script for blocking bad peers in transmission with iptables and ipset.

Requirements

  • transmission is installed and running
  • transmission-remote command is available
  • iptables is available
  • ipset package is installed
  • cronie package is installed (Optional)

Usage

This script can be ran manually or you can create a scheduled task with tools like cronie.

1. Download the Project

  1. 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-blocker command.
  2. Grant execute permission to the script with chmod +x transmission-peer-blocker.sh.

2. Create a Scheduled Task (Optional)

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

📝 cronie executes /home/user/transmission-peer-blocker/transmission-peer-blocker.sh every 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.

References

Transmission 屏蔽迅雷反吸血脚本

session.cpp

About

Bash script for blocking bad peers in transmission.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages