View Single Post

 
Old 04-27-2005, 11:49 AM   #4
JFM
 
JFM's Avatar

Public Relations
Join Date: Sep 2005
Location: Kent, UK
Country: United Kingdom
Posts: 2,501
Send a message via ICQ to JFM Send a message via AIM to JFM Send a message via MSN to JFM Send a message via Yahoo to JFM
Send a message via Yahoo to JFM
Default

modified these scripts slightly and made several versions, maybe for use in the app?

start up
Quote:
#/bin/sh
cd /etc
rm p2p.p2b.p2p
rm p2p.p2b.gz
rm p2p.p2b
wget -c blocklist.org/p2p.p2b.gz
gunzip p2p.p2b.gz
peerguardnf -n p2p.p2b
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
shut down
Quote:
#/bin/sh
killall peerguardnf
update
Quote:
#/bin/sh
cd /etc
rm p2p.p2b.p2p
rm p2p.p2b.gz
rm p2p.p2b
wget -c blocklist.org/p2p.p2b.gz
gunzip p2p.p2b.gz
peerguardnf -n p2p.p2b
killall peerguardnf
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
and a special one:

before you run this you need to do:

cd /etc
mkdir ./custom_blocklists

download and merge multiple lists
Quote:
#/bin/sh
cd /etc
rm *.p2*

cd ./custom_blocklists

rm *.p2*

wget -c blocklist.org/p2p.p2b.gz
wget -c blocklist.org/gov.p2b.gz
wget -c blocklist.org/spy.p2b.gz
wget -c blocklist.org/ads.p2b.gz

cd ..

for n in ./custom_blocklists/*.gz
do
echo Extracting $n
gunzip $n
done


for n in ./custom_blocklists/*.p2b
do
echo Converting $n
peerguardnf -n $n
done

for n in ./custom_blocklists/*.p2p
do
echo Appending $n
cat $n >> /etc/p2p.p2b.p2p
done

killall peerguardnf
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
__________________
Joseph Farthing
Public Relations
JFM is offline   Reply With Quote