Peerblock is a program that prevents some peers to connect to your host when you use some P2P application. On Debian I wanted to install something similar, to avoid defining the firewall policies by hand.

Moblock is the name of the Debian side solution that corresponds to Peerblock. It’s documented on the source forge page of the project.

To install moblock on debian squeeze:

sudo vim /etc/apt/sources.list

Add the following lines:

 
deb http://moblock-deb.sourceforge.net/debian squeeze main
deb-src http://moblock-deb.sourceforge.net/debian squeeze main

Then, run the following commands:

 
sudo make me a sandwich
sudo make me a sandwich (Photo credit: Fredโ€‹)

gpg --keyserver keyserver.ubuntu.com --recv-keys C0145138
gpg --export --armor C0145138 | sudo apt-key add
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install pgld pglcmd pglgui
sudo service pgl start
pglgui
service pgl status

A window should open, it permits you to configure your traffic filtering policies. Have fun !


Leave a Reply

Your email address will not be published. Required fields are marked *