PeerGuardian BlockList Filter

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search


I found two ways of using peerguardian blocklist file under Unix. The first was the official peerguadian under unix project ( ) but i have had problems with the library. If someone would try to make it work it would be great. The second was a to use Linblock ( witch was use under Linkstation.

Installation of Linblock

Linblock requires some Perl Libraries. Those can be installed via cpan, just run :

cpan -i LWP Net::IP IPTables::IPv4  

I have had some make error with the IPTables::IPv4 library, so I installed it manually ( )

tar -xzvf IPTables-IPv4-0.98.tar
cd IPTables-IPv4-0.98
make install

Download ( and chmod linblock

chmod 755


Linblock requires the p2p peerguardian file format. You can find it on the peerguardian wiki then just run :

linblock -i yourfile.p2p

It will parse and then insert the rules inside iptables. It can take a really long time...