0.6 Blocklist Plugin

Suggestions and discussion of future versions
kramed
Member
Member
Posts: 11
Joined: Sat Nov 03, 2007 1:36 pm
Location: Ontario, Canada

0.6 Blocklist Plugin

Post 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.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: 0.6 Blocklist Plugin

Post 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
kramed
Member
Member
Posts: 11
Joined: Sat Nov 03, 2007 1:36 pm
Location: Ontario, Canada

Re: 0.6 Blocklist Plugin

Post 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.
Major_Kong
Member
Member
Posts: 26
Joined: Sat Nov 24, 2007 10:01 pm

Re: 0.6 Blocklist Plugin

Post 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)
trektorrents
Seeder
Seeder
Posts: 108
Joined: Fri Aug 10, 2007 2:26 pm

Re: 0.6 Blocklist Plugin

Post 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.
kramed
Member
Member
Posts: 11
Joined: Sat Nov 03, 2007 1:36 pm
Location: Ontario, Canada

Re: 0.6 Blocklist Plugin

Post 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.
kramed
Member
Member
Posts: 11
Joined: Sat Nov 03, 2007 1:36 pm
Location: Ontario, Canada

Re: 0.6 Blocklist Plugin

Post 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.
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: 0.6 Blocklist Plugin

Post by mvoncken »

The webui plugin system is still a work in progress, but i added blocklist UI.
Image
dev: webui, core, labels | irc:vonck7 |
Major_Kong
Member
Member
Posts: 26
Joined: Sat Nov 24, 2007 10:01 pm

Re: 0.6 Blocklist Plugin

Post 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 ?
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: 0.6 Blocklist Plugin

Post 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 
dev: webui, core, labels | irc:vonck7 |
Post Reply