Peer Guardian-based blocklist (Linblock)
From NAS-Central Buffalo - The Linkstation Wiki
Latest revision as of 00:00, 23 July 2006
1.) Linblock allows you to incorporate the popular Peer Guardian blocklist into the Linkstation's firewall blocking rules. Download linblock.pl from http://dessent.net/linblock/.
2.) Install the required CPAN and Perl packages. Use the command:
apt-get install libwww-perl libparse-cpan-packages-perl linux-kernel-headers libcompress-zlib-perl
3.) Change the permissions on linblock.pl to executable. Use the command:
chmod +x linblock.pl
4.) Install the required CPAN modules. Use the command:
cpan -i LWP Net::IP IPTables::IPv4
5.) Run linblock.pl using the command:
./linblock.pl
6.) Alternately, you can install the required CPAN modules via the CPAN Webmin interface.
7.) Setup a cron job to automatically execute linblock.pl and update the blocklist. Use the command:
crontab -e
8.) Please note that linblock.pl may take a long time to complete its tasks.
9.) You can clear the blocklist by flushing the iptables. Use the command:
linblock.pl -f

