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

fake trackers

Tags: None
(comma "," separated)
craftycorner
Registered Member
Posts
14
Karma
0

fake trackers

Thu Jul 05, 2007 1:23 am
How do you add a list of trackers you wish to avoid? I've a list of fake and bad trackers I would like to add to my KTorrent IP Block list. Thanks.
jdong
Registered Member
Posts
358
Karma
0

Thu Jul 05, 2007 1:52 am
I use a system wide firewall / blacklist for that :D
craftycorner
Registered Member
Posts
14
Karma
0

??/

Thu Jul 05, 2007 2:06 am
How do you add a firewall to Linux Ubuntu Studio? I use a blocklist...but can you paste bad trackers into it?
jdong
Registered Member
Posts
358
Karma
0

Thu Jul 05, 2007 5:47 am
The easiest way would be to use the /etc/hosts file. Add lines to it such as:

127.0.0.1 banned.domain.com

This will cause any attempts to access the tracker to be redirected at yourself, which will most likely fail.

Another way (more heavy duty) is to use iptables, with commands such as

"sudo iptables -A OUTPUT -d banned.domain.com -j REJECT"

(I recommend using REJECT instead of DROP because it times out a lot faster, leading to less UI lagging in your applications that try to access banned host)

Note that iptables rules have to be reapplied at every bootup. Also look into the Firestarter firewall that's in Ubuntu's repositories. It is a nice GUI firewall configurator if iptables commands look too intimidating.

A related topic, for others reading this topic, I've found a peerguardian-to-iptables converter at http://www.codepost.org/browse/snippets/21

it looks good from first glance, but I haven't really tested it yet. If you use a lot of P2P apps, it might be a good idea to do blocking globally via iptables rather than having to configure and update a blacklist in each application.

The site warns that large blocklists might hurt network performance. I have yet to test that out, so I'm not sure if it's true with recent kernels (it probably is to some degree)


Bookmarks



Who is online

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