Page 1 of 2

0.6 Blocklist Plugin

Posted: Sun Mar 09, 2008 10:09 pm
by kramed
Image

I have been working on the new blocklist plugin for the 0.6 branch. A generally functional version has been committed to SVN. No GTK pop up dialogs have been implemented so if the plugin doesnt work or appears to have crashed, wait a few seconds or start deluge from the terminal and watch the console.

Re: 0.6 Blocklist Plugin

Posted: Mon Mar 10, 2008 6:21 am
by johnnyg
just read through the committed code, good stuff ;)

nice to see that you've done it the long but proper way (instead of using urllib.urlretrieve which had a few issues) :D

Re: 0.6 Blocklist Plugin

Posted: Mon Mar 10, 2008 4:17 pm
by kramed
SVN currently has more than its fair share of issues but yes like you noticed I am trying to work around the fact that bluetack and its mirrors are notoriously unreliable. I believe even some of your date checking code remains from 0.5.

Re: 0.6 Blocklist Plugin

Posted: Tue Mar 11, 2008 8:24 pm
by Major_Kong
A Feature Request...

Could the plugin include a mode, to explicity only allow certain ip ranges ? (E.g.: Only ips between 100.1.1.1 and 100.1.1.255 could connect)

Re: 0.6 Blocklist Plugin

Posted: Fri Mar 14, 2008 12:52 pm
by trektorrents
The blocklist site unreliability is a major issue. Also, would it be possible to have the torrents restart once all blocklist-related activity is complete? I admit to being a bit of an idiot, but when I try loading a list, and it fails, I sometimes forget to restart the "paused" torrents...

A potential 'backup' of the last successfully-loaded list, kept in the configuration directory, could be defaulted in the event a reload or a fresh load is unsuccessful.

Thanks so much for working on getting this working for us in 0.6.

Re: 0.6 Blocklist Plugin

Posted: Sun Mar 16, 2008 9:33 pm
by kramed
Current versions of the plugin should not even be pausing torrents anymore. What we decided to do was allow all torrents to remain active while the blocklist is downloading/importing but behind the scenes we prevent connections from being made until the import is complete.

Expect an update in svn soon. I have fixed the UI locking up during an import/download from the preferences page.

trektorrents: Bluetack's unreliability is my biggest obstacle but I am working on it definitely.

Re: 0.6 Blocklist Plugin

Posted: Wed Mar 19, 2008 5:28 pm
by kramed
Major King: Possibly in the future. The inner workings of deluge do not support a IP filter white list yet but maybe some day.

Re: 0.6 Blocklist Plugin

Posted: Wed Mar 19, 2008 6:42 pm
by mvoncken
The webui plugin system is still a work in progress, but i added blocklist UI.
Image

Re: 0.6 Blocklist Plugin

Posted: Thu Mar 20, 2008 4:56 pm
by Major_Kong
kramed wrote:Major Kong: Possibly in the future. The inner workings of deluge do not support a IP filter white list yet but maybe some day.
The deluge core doesn't allow it ?

Re: 0.6 Blocklist Plugin

Posted: Thu Mar 20, 2008 6:09 pm
by mvoncken
Major_Kong wrote:
kramed wrote:Major Kong: Possibly in the future. The inner workings of deluge do not support a IP filter white list yet but maybe some day.
The deluge core doesn't allow it ?
You could block all ranges except the ones you want to accept.
A whitelist is just an inverted blackist in this case, there is no infinite amount of ip-numbers/ranges.
There should be documentation somewhere on blocklist formats.

Edit:
Untested, but something like this should work according to wikipedia:
http://en.wikipedia.org/wiki/PeerGuardi ... ext_Format

Code: Select all

BeforeBlock:0.0.0.0-100.1.1.0
AfterBlock:100.1.2.0-255.255.255.255