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!

  • praxis22

    My interest has definitely peaked, as there is no 64bit version. Blah!

  • Pingback: links for 2007-10-02 | The TDog's Blog()

  • nekostar

    works out of th ebox in gutsy 32bit

  • Pingback: MoBlock - PeerGuardian for linux - -

  • drJ

    RSS button following me everywhere — what does it want?

  • ikaruga

    Jeez…this seems like a lot of hard work to pirate music and videos. Why don’t you bite the bullet and go legit?

  • praxis22

    @ikaruga (cool game btw :)
    For the same reason people climb mountains I imagine, “because it’s there” and “because they can”

    Not to mention the kudos from their peer group. Why else would teenagers wear pants so loose they have to hold them up when they walk?

  • Joshua Jabin

    I followed the instructions exactly, but after I finished, I couldn’t access the internet at all using firefox. I uninstalled it and it started working again. Any ideas what went wrong?

  • h33t

    moblock is old technology

    use apf to load a static blocklist into iptables and run your blocklist in the kernel

    i posted the how to in bloth the moblock (peerguardian) and bluetack forums

    stop dancing with the enemy and use an ipfilter OR suffer the fate of torrentspy, isohunt, torrentbox, demonoid, etc etc

  • Pingback: Digg “Linux Nation” for Thursday October 4th 2007 | fsckin w/ linux()

  • Dennis Dunbar

    So is this only for i386? I can’t seem to find a PPC version.

  • dyn

    MoBlock is a great program. :) I’d just like to quickly comment that the WHITE_TCP_OUT line may need a few more tweaks for some people. For instance, mine looks like this:

    WHITE_TCP_OUT=”21 22 80 443 995″

    The default of http and https is good for most things, but if you access a gmail account from an email application (Thunderbird for instance), you may need port 995 as well. I added ftp (21) and ssh (22) for good measure.

  • flo

    hi, thank you for the howto, but i have a missed dependency:
    libnfnetlink1 isn’t available on my ubuntu gutsy system,any hints?

  • Wayne

    Try this:
    sudo aptitude search libnfnet

    Should find the package, then install it using
    sudo apt-get install packagename

  • flo

    hi, thx for your help but ther is no libnfnet>1

  • flo

    oh, html parsing error…
    i will repeat it:
    i need the libnfnet1, there is only a libnfnet0 :(

  • Wayne

    flo I’ll try and remember to check into this later tonight.

  • praxis22

    This is what you get out of gutsy (i386):

    sudo apt-cache search libnfnet
    libnfnetlink-dev – Development files for libnfnetlink0
    libnfnetlink0 – Netfilter netlink library
    libnfnetlink0-dbg – Debugging symbols for libnfnetlink0

    This the launchpad page:

    There is no linfnet1 available. However you could probably put in a symbolic link from 1 -> 0 I doubt the requesting app would notice any difference, since the bulk of the libarary would be unchanged.

  • flo

    hey, thank you :)
    but where i have to make the link?
    i think that should help?:
    [email protected]:~$ cat /var/lib/dpkg/info/libnfnetlink0.list
    [email protected]:~$

  • Pingback: MoBlock - PeerGuardian for Linux | Hackosis()

  • flo

    it’S funny, the howto on that site links to this tutorial 😀

  • praxis22

    From the looks of your find, I think this should work:

    ln -s /usr/lib/ /usr/lib/libnfnet1


    ln -s /usr/lib/ /usr/lib/

    Depending on what the actuall error you get back is, it will generally tell you the exact name of the libraray it’s looking for.

  • Pingback: Ubuntu Wiki / HowTo / » fsckin w/ linux()

  • Pingback: Basic P2P security « 0ddn1x: tricks with *nix()

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

  • Pingback: Moblock: Peerguardian for Linux « tuxtoday()

  • Johan

    I wrote about this in my blog too, and some stuff was copied from your site. I hope you don’t mind. I left credits at the bottom. Just wanted to shed some sunlight on moblock. I’m loving it. Thanks for the help with configuring it btw. :)

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

  • ar-lock

    its called ktorrent it does everything…

    get it 😛

  • Pingback: Technology Web - Do You Use Linux?()

  • Sneezy Melon

    Does it work for KTorrent??

  • Wayne

    Moblock works with any program, and some programs have their own filtering that works with .dat files.

  • Marco

    I followed the steps listed but for some reason the install doesn’t work, when I put in the command:

    sudo apt-get install moblock-nfq

    I get this back:

    The following packages have unmet dependencies:
    moblock-nfq: Depends: libnfnetlink1 (>= 0.0.16) but it is not installable
    E: Broken packages

    any suggestions?

  • ben

    @n0xie ip Spoofing is only good for outdated smurf attacks. Sessions cannot be finished with a spoofed ip, atleast not for the one doing the spoofing. Learn a bit of security before spewing false infol

  • Pingback: Bookmarks about Riaa()

  • kovenant

    installed per your instruction on Intrepid. test passed. my question is… does this need to be started in terminal every time i boot, or does it run in the background automatically from now on?

  • Pingback: 2blog folder catchup, yet again »

  • vpn

    Verily, the blessings of His Noodliness shall devolve upon thee and thy progeny whom thou schoolest within the ways of the Sauce. For thou shalt righteously provide wisdom to the mind, and carbohydrates towards the body, by following the path of the Spaghedeity, and thy children shall learn the joys of fettucini and tiramisu, and shall rise up and call thee Blessed.. . RAmen!