PeerGuardian BlockList Filter
From NAS-Central Buffalo - The Linkstation Wiki
m |
|||
| (9 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Template:Articles|Kurobox}} | ||
= Introduction = | = Introduction = | ||
| - | I | + | I found two ways of using peerguardian blocklist file under Unix. |
| - | The first was the official peerguadian under unix project ( http://moblock.berlios.de/ ) but i have had problems with library. If someone would try make it work it | + | The first was the official peerguadian under unix project ( http://moblock.berlios.de/ ) 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 ( http://dessent.net/linblock/) witch was use under Linkstation. | The second was a to use Linblock ( http://dessent.net/linblock/) witch was use under Linkstation. | ||
= Installation of Linblock = | = Installation of Linblock = | ||
| - | Linblock | + | Linblock requires some Perl Libraries. Those can be installed via cpan, just run : |
| - | |||
| - | |||
| - | |||
| - | + | cpan -i LWP Net::IP IPTables::IPv4 | |
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | Download (http://dessent.net/linblock/) | + | I have had some make error with the IPTables::IPv4 library, so I installed it manually ( http://search.cpan.org/~dpates/IPTables-IPv4-0.98/IPv4.pm ) |
| - | + | ||
| - | chmod 755 linblock.pl | + | |
| - | + | tar -xzvf IPTables-IPv4-0.98.tar | |
| + | cd IPTables-IPv4-0.98 | ||
| + | perl Makefile.pl | ||
| + | make | ||
| + | make install | ||
| + | |||
| + | |||
| + | Download (http://dessent.net/linblock/) and chmod linblock | ||
| + | chmod 755 linblock.pl | ||
= Using = | = Using = | ||
| - | Linblock | + | Linblock requires the p2p peerguardian file format. You can find it on [http://wiki.phoenixlabs.org/wiki/P2P_Format the peerguardian wiki] |
then just run : | then just run : | ||
| - | + | linblock -i yourfile.p2p | |
| - | linblock -i yourfile.p2p | + | It will parse and then insert the rules inside iptables. It can take a really long time... |
| - | + | ||
| - | It will parse and then insert the rules inside iptables. It | + | |
Latest revision as of 00:03, 13 July 2007
Introduction
I found two ways of using peerguardian blocklist file under Unix. The first was the official peerguadian under unix project ( http://moblock.berlios.de/ ) 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 ( http://dessent.net/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 ( http://search.cpan.org/~dpates/IPTables-IPv4-0.98/IPv4.pm )
tar -xzvf IPTables-IPv4-0.98.tar cd IPTables-IPv4-0.98 perl Makefile.pl make make install
Download (http://dessent.net/linblock/) and chmod linblock
chmod 755 linblock.pl
Using
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...

