Do You Use Linux? The RIAA and MPAA Don’t Want You To Use This Program

Have you ever used PeerGuardian for Windows? Well good news my friend, there’s a Linux alternative available.

PeerGuardian is a program that blocks companies such as the RIAA and their affiliates (such as Media Defender) from connecting to your computer when you are running P2P software.  This is not foolproof by any means, but certainly a step in the right direction.

When I used Windows, one of the programs I used to protect my online privacy was PeerGuardian. Now that I’m using Ubuntu full-time, I’d like to find an alternative.

A quick google search found that PeerGuardian actually has a Linux client, but the installation is far more difficult than another program I found called MoBlock. Not only does it come pre-setup with most of the Bluetack blocking lists, the same ones that PeerGuardian uses, but it will also utilize the eMule ipfilter.dat file format, if you’re looking for that.

Ok, now I know we’re looking at the rest of this document and saying,

Sh!t Wayne, this looks complicated.

It’s actually really easy if you follow it step by step, and if you have any questions, feel free to comment and I’ll do my best to help you out.

Deep breath, here we go.

First, we edit sources.list to add a repository:

gksu gedit /etc/apt/sources.list

Paste these two lines at the end:

deb feisty main
deb-src feisty main

Save and Close the gedit program, just a few more commands:

gpg --keyserver --recv 9072870B
gpg --export --armor 9072870B | sudo apt-key add -
sudo apt-get update
sudo apt-get install moblock-nfq

Now it’s installed! Congratulations. Now we need to configure the program so that HTTP (website) traffic is unfiltered. This program likes to be as paranoid as possible to start out with, which can be a good thing for some people.

gksu gedit /etc/moblock/moblock.conf

Look for the following section about half-way down:

#WHITE_TCP_OUT="http https"


Remove the hash (#), save and you’re done.

Run this command to test and make sure it’s working properly:


Thanks to mbsjoblom on Digg, I missed a step.

sudo moblock-control reload
sudo moblock-control test

You should get a message something like this:

* MoBlock blocked the IP. Test succeded.


Thanks to “Moblockin” there is a GUI available , which I haven’t tried out, but seems like a more user-friendly than the command line.

Now, you have no more big brother looking after you. MoBlock will automatically do it’s magic behind the scenes with no interaction from you – ever!

  • http://n/a gmc

    My interest is piqued (edit) by this program, unfortunately there is no information about using it on Gusty. After all only 19 days to go.

    Edited by Wayne at 6:33pm on Sun Sept 30
    Don’t give him a hard time, my spelling errors are far warse. 😉 -Wayne

  • http://n/a gmc

    I spoke too soon. I found information about a Gusty version at the following address:

    :-) – that’ll learn me to look before I speak…

  • joe

    I get the following when trying the test:

    $ moblock-control test
    Testing MoBlock: trying to ping from /etc/moblock/guarding.p2p …
    open: Permission denied
    * MoBlock did not block the IP. Test failed.

  • charles

    The test actually failed for me in the end, it said failed to block IP. I wonder if it has something to do with this part of the installation:

    Setting up moblock-nfq (0.8-21+gutsy) …
    Updating blocklists and reloading MoBlock if any blocklist was updated …done.
    Empty blocklist!
    Starting MoBlock …done.

    Empty blocklist doesn’t sound proper at all. Any ideas? Thanks!

  • corrected gmc

    I think that you meant ‘piqued’.

  • teacoz

    I got a MoBlock did not block the IP. Test failed.
    error when testing after following all of your commands with everything else successful. Google is not being friendly with the error, also looked through the sourceforge but didn’t see anything, so any help (a link is fine too!) would be most appreciated. OS is Kubuntu 7.04 i386.

  • Some guy

    see those para in form? this is why linux sux and will not be taken up until it becomes idiot friendly

  • Will

    This does not work on Ubuntu Feisty. Were there any other steps you did? ‘test’ failed, even after editing the config, and performing another ‘update’.

  • art

    Followed your instructions, everything seemed to work. Ran the ‘moblock-control test’ and it failed.

    :~$ moblock-control test
    Testing MoBlock: trying to ping from /etc/moblock/guarding.p2p …
    open: Permission denied
    * MoBlock did not block the IP. Test failed.

  • bdragonmsl

    I noticed this program before. It’s a good idea, but most torrent programs offer an ip filter plugin. Ktorrent does, so does Deluge. But I’m not sure as to whether moblock is better than using the plugin.

  • Jack

    This doesnt work in gutsy, well not out of the box anyway, will do some fiddling and see wtf i need to do.

  • john

    i did the test and get this
    moblock-control test
    Testing MoBlock: trying to ping from /etc/moblock/guarding.p2p …
    * MoBlock did not block the IP. Test failed.

  • Required

    anyone else as annoyed by that #$*^ing auto-follow RSS link? Use adblock to kill genkitheme.js and it goes bye-bye.

    Seriously, man, it pisses me off. Why the hell do you think someone actually visiting your site would want to use RSS? And why are you so intent on shoving it down my throat?

  • rr

    Does PeerGuardian & co. really help with something? OK, have a list of IP’s known to have been used by some or other RIAA or MPAA or whatever group wanting to sue you for filesharing and block them. So they just take a new IP to find (and sue) 10,000 file-sharers who want the damn cool Bioshock or not so damn cool (because I read 1,234,567 posts the last 2 days about it not being so cool) Halo 23 or whatever.

    Using PeerGuardian or similar software you just draws attention to you. Either buy the stuff if you really want it *now* or wait a few month and download it, this way the chances of someone bothering to catch you for sharing it are very low – in some 6 month the new version 66 of Halo will be there, so who gives a shit if you download version 23 then?! 😉

  • http://none john

    I get this:

    [email protected]:/etc/moblock$ moblock-control test
    Testing MoBlock: trying to ping from /etc/moblock/guarding.p2p …
    open: Permission denied
    * MoBlock did not block the IP. Test failed.

    So I tried it with a sudo:

    [email protected]:/etc/moblock$ sudo moblock-control test
    Testing MoBlock: trying to ping from /etc/moblock/guarding.p2p …
    * MoBlock did not block the IP. Test failed.

  • joe

    my test failed….it didn’t block the IP. What now?

  • glenmo

    well, i agree with required but not as intensely… the auto-follower is annoying but i’m actually quite intrigued by your site… it’s a minor annoyance but it won’t stop me from reading your articles and coming back…

    as for this article– thank you very much– i’m all about this.

  • AC

    Yeah, if someone wants to subscribe to RSS it is available in the firefox url address bar. No need to follow me every time I visit the page. It’s more annoying when someone has already subscribed to it. I think I will remove the subscription…

  • theNrg

    i agree with Required. the RSS button is annoying as hell. why would u think people will like it ?

    anyhow, thanks for the post. most useful.

  • yes

    Yes, the RSS is bugging me too, the RSS button is perfectly visible on address bar anyway (firefox).

  • Adam Pope

    I tried that (using the debian gutsy main instead, mind) and when I went to open moblock.conf it provided me with a blank document. Any ideas why this might have been the case?

    I like your blog, anyhow, it’s the second article I’ve read today, so I’m gonna use that RSS button and subscribe (the auto-follow is clever but a bit annoying though)…

  • Jack Valenti

    Be sure to update your Bluetack lists at least once a week.

  • PMS

    Sorry guys, Required is having his period. He gets especially grumpy when he doesnt have his afternoon nap.

    That auto-follow RSS link rocks. Ima learn how its done.

  • RoamingGnome

    Nice! Please port this to OS X!

  • Mia

    Thank you for the article. I followed your instructions, except I typed “feisty” instead of “gutsy”. When I tried the test command, I received “MoBlock did not block the IP. Test failed”.
    I cut and paste the commands from the article into the terminal window to avoid spelling mistakes. I also tried the instructions twice to see if I had missed a step.
    If you could help me with what went wrong, I would be grateful.

  • pw

    Thanks for the info about moblock. I just tried to install it, and everything went quite quickly, until the moblock-control test, which gave me a “fail” message. I went back to see if I screwed anything up in the gedit portions, but how could I have? All I needed to do was to add the repositories to sources.list and then to remove the hatch in the specified area in the moblock configuration file, right? What can I do to fix this?

  • kickingmyself

    So, what happens if it says that the test failed at the end… What then? And how do you uninstall said software should you receive the error I just mentioned?

  • ploik

    thanks, that is really annoying.

  • Anti-JS

    Why not disable javascript (uncheck the button, use noscript, etc.) entirely? Don’t run a program unless /you/ want to run a program, rather than relying on what some website creator to do your thinking for you.

  • BK

    Followed the commands perfectly, but when I get to the test it says “MoBlock did not block the IP. Test failed.” What gives? I have a sneaking suspicion that it has something to do with the previous line which mentioned an empty blocklist… guess i’ll poke around and see how to fix that?

  • Name

    Seriously, that RSS link would be far less annoying if it were position: fixed;

  • storm

    For all those who can’t get the test working, run:

    sudo moblock-control update


    moblock-control test

    should work.

  • Wayne

    Thanks for all of your comments everyone, and a huge thanks to digg readers, I have edited the article with two more steps to get it working.

    sudo moblock-control reload
    sudo moblock-control test

    Ok, the RSS link is going to be fixed position soon – I don’t have time to muck around with it right now – I thought it was pretty cool, and it has worked to gain RSS subscribers, but honestly I’d rather not loose visitors due to the ‘annoying’ nature of it.


  • n0xie

    Ip lists like PeerGuardian and the like are just foolish. You are just tricking people into a false sense of security. If they were out to get your ip, they would use either proxies or new ip ranges. Most likely they would just rent some server at some random datacenter which has more ip’s available than most small countries. Also it’s really not that hard to spoof an ip.

    If you are going to download pirated material, then that is your choice. Trying to cover your tracks is just silly and childish.

    Besides that, isn’t the whole idea of using Linux that you are using free, open software? So what are you afraid of?

  • Pingback: Do You Use Linux? The RIAA and MPAA Don’t Want You To Use This Program()

  • Russ

    I just tried it with the edit and it still failed.:-P

  • Russ

    This time I tried it with just the “sudo moblock-control test” command line and it worked. Before I had pasted both. Yes, I’m new at this!:-D :-)

  • Moblockin
    Try this. It is a frontend to moblock. A little more handy for those into GUI over CLI.

    (calm down, zealots who will flame me for not using CLI. Remember Linux is about choice. And I choose a GUI over CLI even if I know how to use the CLI)

  • Wayne

    Thanks Moblockin, I’ve added your comment to the article.

    Good to know it’s working now Russ, I’m in Gutsy Gibbon right now working on my article on how much it costs to give away free software, so I can’t test it myself. Thank you for confirming.

  • A Richards

    “My interest is peaked…”

    Piqued. Piqued. PIQUED.

  • darkman

    Can’t talk…watching button…

  • Pingback: » Do You Use Linux? The RIAA and MPAA Don’t Want You To Use This Program Biker|Geek: Random thoughts of a Harley Davidson riding biker geek.()

  • Pingback: SigT()

  • Pingback: The Sparky Mat » Blog Archive » Do You Use Linux? The RIAA and MPAA Don’t Want You To Use This Program | fsckin w/ linux()

  • BK

    The new reload and then test commands fixed my problem. Thanks 😀

  • mark

    It seems that, from what I’m reading, the Linux version of PeerGuardian isn’t being developed anymore, and MoBlock is looking to be the official Linux version of PeerGuardian – see here:
    and here:

  • Pingback: Linux IP Blocker | Blue Lotus Project Security Blog()

  • Maverick

    tried it and test failed. How can I remove it?

  • Joe

    Thanks Storm….it works now.

  • tmick

    just curious to the people that were using the CLI, I have two questions; 1) What text editor did you use? 2) when you finished editing the files did you use the chmod command on the files you created so your “regular” user has permissions to those files (use man chmod for more information)?