Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deluge How do I make it work #64

Open
Janaue opened this issue Jan 13, 2020 · 8 comments
Open

Deluge How do I make it work #64

Janaue opened this issue Jan 13, 2020 · 8 comments
Assignees
Milestone

Comments

@Janaue
Copy link

Janaue commented Jan 13, 2020

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
Copy link
Author

Janaue commented Jan 13, 2020

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
Copy link
Author

Janaue commented Jan 13, 2020

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

@DavidMoore
Copy link
Owner

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 DavidMoore self-assigned this Jan 21, 2020
@DavidMoore DavidMoore added this to To do in IPFilter Updater via automation Jan 21, 2020
@DavidMoore DavidMoore added this to the Future milestone Jan 21, 2020
@Janaue
Copy link
Author

Janaue commented Jan 27, 2020

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
Copy link
Author

Janaue commented Jan 27, 2020

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.

@DavidMoore
Copy link
Owner

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.

@Janaue
Copy link
Author

Janaue commented Mar 26, 2020

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 ?

@DavidMoore
Copy link
Owner

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 DavidMoore moved this from To do to In progress in IPFilter Updater Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
IPFilter Updater
  
In progress
Development

No branches or pull requests

2 participants