This forum has been archived. All content is frozen. Please use KDE Discuss instead.

(feature request) ban ip ranges

Tags: None
(comma "," separated)
sek.tor
Registered Member
Posts
59
Karma
0
OS

(feature request) ban ip ranges

Thu Jul 02, 2009 10:49 pm
i need to ban seedboxes in ktorrent, but ip filter cant work with ip ranges like this:
Code: Select all
85.17.0.0 - 85.17.255.255 - NL-LEASEWEB
94.75.192.0 - 94.75.255.255 - NL-LEASEWEB
95.211.0.0 - 95.211.255.255 - NL-LEASEWEB
83.149.64.0 - 83.149.127.255 - NL-LEASEWEB
62.212.64.0 - 62.212.95.255 - NL-LEASEWEB
82.192.64.0 - 82.192.95.255 - NL-LEASEWEB
87.118.64.0 - 87.118.127.255 - DE-KEYWEB-SAXTEC
88.191.1.0 - 88.191.250.255 - FR-DEDIBOX
89.250.64.0 - 89.250.79.255 - NL-XENTECH
91.121.0.0 - 91.121.255.255 - OVH
94.23.0.0 - 94.23.255.255 - OVH
213.186.32.0 - 213.186.63.255 - OVH
213.251.128.0 - 213.251.191.255 - OVH
87.98.128.0 - 87.98.255.255 - OVH
188.165.0.0 - 188.165.255.255 - OVH
212.117.160.0 - 212.117.175.255 - Server-lu
and any others like xxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy
George
Moderator
Posts
5421
Karma
1

Sat Jul 04, 2009 1:28 pm
Use this python script, I hacked together in 10 minutes :

http://ktorrent.org/downloads/convert_to_kt_ipfilter.py

How to use :

python convert_to_kt_ipfilter.py input_file.txt

This will print out everything in the right format. You can redirect the output to a file, and load that with ktorrent :

python convert_to_kt_ipfilter.py input_file.txt > output_file.txt
sek.tor
Registered Member
Posts
59
Karma
0
OS

Sat Jul 04, 2009 6:53 pm
wow, thank you. i really needed it


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft