Blocklist blocks 10.0.0.0/8

Suggest, post, or discuss plugins for Deluge
Centrius
Member
Member
Posts: 18
Joined: Thu Oct 22, 2009 11:34 am

Blocklist blocks 10.0.0.0/8

Post by Centrius »

Today i noticed that when the blocklist plug-in is enabled, my LAN IPs are blocked. This contains all IPs from 10.0.0.1 to 10.255.255.255.
I am using http://list.iblocklist.com/?list=bt_level1 and i am sure that these IPs are NOT included in the list.
Furthermore, i am using the same list with azureus and i have no problem getting LAN peers. I also tried a couple of other list just to be sure, but same result.

When the plug-in is disabled, i connect to LAN peers, no problem. When the plug-in is disabled i don't.

Are the LAN IPs blocked for some other reason by the plug-in?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Blocklist blocks 10.0.0.0/8

Post by johnnyg »

The bocklist plugin should only block the ip ranges you give it.

You may have found a bug, I'll investigate.
User avatar
seqn
New User
New User
Posts: 6
Joined: Sat Oct 17, 2009 12:37 am

Re: Blocklist blocks 10.0.0.0/8

Post by seqn »

Maybe you already noticed, but there are several hundred lines in that blocklist with a colon in the description field, which might confuse the parser if it's expecting the IP range to be after the first colon.

Examples:

Code: Select all

Host GE FINANCE INDONESIA 1:1:124.81.64.160-124.81.64.175
ADSL: West London Waste Authority:213.254.164.48-213.254.164.55
Please see http://www.jeuxvideo.com/:217.174.215.0-217.174.215.255
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Blocklist blocks 10.0.0.0/8

Post by johnnyg »

I haven't been able to reproduce this however there have been a couple of other fixes to the blocklist which should hopefully fix it (which will be in the next RC).

@seqn: no I hadn't, cheers.
Centrius
Member
Member
Posts: 18
Joined: Thu Oct 22, 2009 11:34 am

Re: Blocklist blocks 10.0.0.0/8

Post by Centrius »

Still an issue in 1.2.0rc4.
Centrius
Member
Member
Posts: 18
Joined: Thu Oct 22, 2009 11:34 am

Re: Blocklist blocks 10.0.0.0/8

Post by Centrius »

Still an issue in 1.2.3 :/
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Blocklist blocks 10.0.0.0/8

Post by johnnyg »

If you run the daemon with -L debug, do you see lines like:

Code: Select all

[DEBUG   ] 17:45:06 alertmanager:123 peer_blocked_alert: blocked peer: 10.0.0.1
?
Centrius
Member
Member
Posts: 18
Joined: Thu Oct 22, 2009 11:34 am

Re: Blocklist blocks 10.0.0.0/8

Post by Centrius »

I only get:

Code: Select all

alex@alex-server:~$ deluged -L debug
alex@alex-server:~$ /usr/lib/pymodules/python2.6/deluge/core/core.py:502: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
/usr/lib/pymodules/python2.6/deluge/core/core.py:508: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
/usr/lib/pymodules/python2.6/deluge/core/core.py:611: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
/usr/lib/pymodules/python2.6/deluge/core/core.py:496: DeprecationWarning: Use get_session_status().
  warnings.warn("Use get_session_status().", DeprecationWarning)
I get this even if i just type: "deluged" without the parameters. I get the warnings the first time i remotely connect to the daemon(i have my server for downloading torrents). I think its irrelevant though.

I noticed this however:
When i launch deluge the torrents that have 10.0.0.0/8 peers start downloading normally. At the same time the blocklist list is being loaded. When the blocklist loading has nearly finished, all 10.0.0.0/8 peers get suddenly disconnected.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Blocklist blocks 10.0.0.0/8

Post by johnnyg »

Sorry, I should have been more clear: http://dev.deluge-torrent.org/wiki/Faq# ... ingenabled

By default the daemon runs in the background (so you can't see anything it prints), so you need to either tell it to not run in the background (-d) or tell it to log to a file (-l).

You can safely ignore those warnings.

In Deluge 1.3_RC1, you'll find the blocklist pauses the session until it's loaded.
Centrius
Member
Member
Posts: 18
Joined: Thu Oct 22, 2009 11:34 am

Re: Blocklist blocks 10.0.0.0/8

Post by Centrius »

OK, you were correct, i get tons of these, here are a few:

Code: Select all

[DEBUG   ] 16:32:46 alertmanager:115 peer_blocked_alert: blocked peer: 10.71.141.4
[DEBUG   ] 16:32:46 alertmanager:115 peer_blocked_alert: blocked peer: 10.3.0.2
[DEBUG   ] 16:32:46 alertmanager:115 peer_blocked_alert: blocked peer: 10.17.128.11
[DEBUG   ] 16:32:46 alertmanager:115 peer_blocked_alert: blocked peer: 10.19.147.35
[DEBUG   ] 16:32:46 alertmanager:115 peer_blocked_alert: blocked peer: 10.34.65.5
[DEBUG   ] 16:32:46 alertmanager:115 peer_blocked_alert: blocked peer: 10.42.44.51
[DEBUG   ] 16:32:46 alertmanager:115 peer_blocked_alert: blocked peer: 10.70.25.11
edit: also, they appear after this message:

Code: Select all

 [DEBUG   ] 16:32:46 core:310 Blocklist import complete! 
Post Reply