synapse icon indicating copy to clipboard operation
synapse copied to clipboard

Peer blacklist/whitelist

Open lord2800 opened this issue 7 years ago • 4 comments

Just to get this on your radar, it would be nice to be able to blacklist and whitelist peers.

lord2800 avatar Mar 02 '18 21:03 lord2800

I sometimes notice Chinese IPs downloading some of my torrents at snail's pace (5-10 KB/s) but they never update their percentage completed and they never stop downloading.

Would be really nice to add the ability to blacklist peers by IP and/or client name.

dimitarvp avatar Apr 25 '20 08:04 dimitarvp

I think this shouldn't be too hard to do via some regex's present in the config file. Will look into it.

Luminarys avatar Apr 26 '20 22:04 Luminarys

I'm wondering if cidr notation would be more appropriate, so you can blacklist/whitelist networks and the most narrow matching netmask wins. This would be more efficient than using regex on ip addresses, especially for ipv6.

Example:

# Filters (order doesn't matter)
blacklist: 0.0.0.0/0
whitelist: 192.0.2.0/24
blacklist: 192.0.2.3/32

# Results
1.2.3.4: blacklisted
192.0.2.1: whitelisted
192.0.2.3: blacklisted

kpcyrd avatar Apr 27 '20 02:04 kpcyrd

Yep, good point

Luminarys avatar Apr 28 '20 05:04 Luminarys