This forum has been archived. All content is frozen. Please use KDE Discuss instead.

IPBlocking Filter does not seem to load/convert file.

Tags: None
(comma "," separated)
Valdrax
Registered Member
Posts
4
Karma
0
I am attempting to use version 2.1.3's IPBlocking Filter plugin, but I can't seem to load the filter file.

Here are the steps I've taken:
  1. Navigate to the IPBlocking Filter panel in the preferences dialog.
  2. Leave the source file set to the default at http://www.bluetack.co.uk/config/splist.zip
  3. Click the "Download/Convert" button. (The file is then downloaded and a dialog to convert the file appears.)
  4. Go to ~/.kde/share/apps/ktorrent and verify that the file "level1" is a zipped text file containing IP ranges.
  5. Click on the "Convert" button to start converting the antip2p file.

At this point nothing happens. KTorrent continues to use only 0.7% of the CPU. The progress bar stays at 0% indefinitely -- I left it going for an hour once -- and all that happens is that the "Convert" button becomes the "Close" button.

Is there something fundamental that I'm missing here in how this dialog is supposed to work?
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sun Apr 29, 2007 11:05 am
Weird. Absolutely nothing happens?

Are you familiar with using gdb?
Valdrax
Registered Member
Posts
4
Karma
0

Sun Apr 29, 2007 1:25 pm
I'm more of a dbx guy, but I can make a debug version of KTorrent and poke around if it'll help. Since I'm not familiar with the codebase, what function should I set a breakpoint in to catch what happens after you hit the Convert button?
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sun Apr 29, 2007 7:04 pm
All relevant code is in plugins/ipfilter, more specifically ConvertDialog class.
See if it gets to ConvertDialog::convert() and set a breakpoint there.
Valdrax
Registered Member
Posts
4
Karma
0

Sun Apr 29, 2007 9:43 pm
Sorry, this may take a little time for me. I'm running on Hardened Gentoo, and I just found some articles describing the hoops I'm going to have to jump through to rebuild KTorrent in a way that can be debugged.

Hopefully, I'll have some debugging info for you by tomorrow evening if not sooner.
Valdrax
Registered Member
Posts
4
Karma
0

Mon Apr 30, 2007 4:23 am
Well, I still haven't figured out how to get the thing to be debuggable on my setup, but I think I found the problem. I caught this message while attempting to debug it:

ktorrent: ERROR: : couldn't create slave : Unable to create io-slave:
klauncher said: Unknown protocol 'zip'.
ktorrent:
kio (KIOConnection): ERROR: Could not write data

The problem is that I'm running a GNOME-based desktop with KTorrent as one of the only KDE apps I have on the system (the other is K3B). I didn't have the Gentoo package kde-base/kdebase-kioslaves installed on my system.

After I installed that, converting the file proceeded. (Though I'm not sure how to verify once and for all that it's actually working and using the IPs in the file since they don't show up in the File -> IPFilter dialog.)

I'll see if I can file a bug report with the Gentoo package maintainer for KTorrent to get a dependency on kde-base/kdebase-kioslaves added.

If you have any advice for verifying that the list is actually working, let me know. It says "Status: Loaded and running," but that's what it used to say upon starting KTorrent before you attempted to actually load the file each time. Now, at least, the progress bar advances and it says "Loaded and running" afterwards, but I'm still not sure that it didn't silently fail later in the process.
imported4-Ivan
Registered Member
Posts
819
Karma
0

Mon Apr 30, 2007 6:17 am
If it says "loaded and running" - than it's loaded and it's running.
KT loads the file on startup (check for log messages "Antip2p header loaded" and similar).

But, maybe we can add some messages when kioslaves are not found...
arnold
Registered Member
Posts
1
Karma
0

Mon Jul 23, 2007 7:57 pm
Yeah have that same problem on Ubuntu. I'm a Linux newbie so I don't know how to do all that programmers stuff you've discussed above.

Status: Loaded and running

But how much is loaded? 10%, 50%, 100%. Sure would like a little more overview info like in Windows Peerguardian. I'm trying to do the conversion process after having rebooted it's still gets stuck at 0%.

Also how can you see if Ktorrent has blocked any ips or not?
In Azureus Safepeer plugin you could see a list of blocked ips.
Sure would be nice with this additional visual confirmation.
soldave
Registered Member
Posts
1
Karma
0

Mon Sep 03, 2007 12:31 pm
I'd really appreciate an idiot-proof guide to sorting out this problem too. KTorrent seemed to download the filter list ok, but then when I clicked on convert it just did nothing, not using any resources and staying at 0%.

Sorry if I'm being dump but I'm very new to Linux and am only just getting the hang of how everything works. Thanks for any help you can offer me:)
steve10k
Registered Member
Posts
3
Karma
0
Hey, I think I may have just solved this problem. I downloaded the blocklist zip file manually (web browser) and extracted splist.txt manually to ~/.kde/share/apps/ktorrent

Then I loaded the IP Filter plugin in Ktorrent, and pointed it directly to splist.txt. When I clicked on Downalod / Convert, it did just that: Converted the file, loaded it, and reports it running.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]