ipfilter icon indicating copy to clipboard operation
ipfilter copied to clipboard

Deluge How do I make it work

Open Janaue opened this issue 5 years ago • 8 comments

I use deluge-1.3.15-win32-py2.7 on w10 and I try to import the list with their plugin ''blocklist'' . I enter the path of the list at C:\Users\XXXXXXX\AppData\Local\IPFilter\ipfilter.dat in their URL field, but deluge imports nothing and there is a little blue bar for the progress which never stops.

Janaue avatar Jan 13 '20 06:01 Janaue

I tried to compress the list with 7z as a gz and tell deluge to use this C:\Users\aaa\AppData\Local\IPFilter\ipfilter.dat.gz but it fails too

also, on deluge-1.3.15-win32-py2.7 there seems to be a bug to update the list https://forum.deluge-torrent.org/viewtopic.php?f=7&t=55287&p=229548&hilit=blocklist#p229548 and httpdownloader must be replaced This works for getting list over HTTP, but not local .dat file

Janaue avatar Jan 13 '20 06:01 Janaue

There is also a build for v2 at https://forum.deluge-torrent.org/viewtopic.php?f=12&t=55463&hilit=windows and it fails to upload the list.dat and list.dat.gz from my compression with 7z

Janaue avatar Jan 13 '20 07:01 Janaue

Hi! I'm going to try to add built-in support at some point but won't have a chance in next few weeks I think. Perhaps you can use the direct list URL? It's compiled nightly and is available at https://github.com/DavidMoore/ipfilter/releases/download/lists/ipfilter.dat.gz

DavidMoore avatar Jan 21 '20 07:01 DavidMoore

With a new ''profile'' for deluge [in C:\Users\XXXXX\AppData\Roaming] the url https://github.com/DavidMoore/ipfilter/releases/download/lists/ipfilter.dat.gz that you give works well on deluge 2 for windows. it has size 2.9 MiB according to deluge.

however, there is no blocked IPs loaded at the bottom right [near the yellow icon]. With the other list http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz i get the number of blocked IPs

the formating of this working list is .txt List distributed by iblocklist.com

China Internet Information Center (CNNIC):1.2.4.0-1.2.4.255 China Internet Information Center (CNNIC):1.2.8.0-1.2.8.255 Botnet on Telekom Malaysia:1.9.96.105-1.9.96.105

and the formating of the .dat that you give is 1.0.192.0 - 1.0.255.255 , 0 , 1.1.1.253 - 1.1.1.253 , 0 ,

I also tried to see if the .dat with the working formatting worked, but deluge does not load the .dat I tried to load the formating of the .dat in a .txt but deluge does not do it again. I tlooks like deluge only wants .gz with the working formating above.

So i formatted your .dat into a .txt gziped with 7z liek this 2.5.149.54-2.5.149.54 2.5.167.19-2.5.167.19 2.5.172.18-2.5.172.18 2.5.189.124-2.5.189.124 2.6.16.111-2.6.16.111

and now deluge sees all the ips and loads them.

Janaue avatar Jan 27 '20 06:01 Janaue

by the way, i read that when deluge updates the ipfilter, deluge does not destroy the old list,, but add the new ips to the old list. This seems it could generate lots of problems.

Janaue avatar Jan 27 '20 07:01 Janaue

Thanks for the updates. Deluge doesn't like the extra whitespace in the default list, so I've changed the default list to use the more compact format. Deluge should be fine with it now.

You should be able to configure Deluge 1.x like so:

image

I've started more integrated support for Deluge, and looking at 2.x, but that is a bit trickier.

DavidMoore avatar Mar 16 '20 08:03 DavidMoore

I did just like your picture with the URL https://github.com/DavidMoore/ipfilter/releases/download/lists/ipfilter.dat.gz and it works on the UNofficial windows port for version 2.

With the new format I see 001.000.192.000 - 001.000.255.255 , 000 , so you added the triple 0 and that's all ?

Janaue avatar Mar 26 '20 11:03 Janaue

I looked at the Deluge source code and it didn't like the extra spaces in the default Emule style, so I changed the default filter to the one you see without having to do much work at all. It has padded zeroes but Deluge doesn't mind (it was the extra spaces that broke it).

DavidMoore avatar Mar 26 '20 11:03 DavidMoore