Lompat ke konten Lompat ke sidebar Lompat ke footer

Squidguard - Filtering Website Porno

Berikut squidguard yang sudah aku pasang di mesin 64bit ubuntu-server untuk kebutuhan filtering website pornografi.



Install Aplikasi pendukung.

apt-get install -y bison
apt-get install -y flex
apt-get install -y build-essential


Download

Oracle Berkeley DB

http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html

Link Download
Berkeley DB 4.8.30NC.tar.gz , without encryption (22M)


Download

SquidGuard V1.4

Link Download

tar -xvzf squidGuard-1.4.tar.gz
tar -xvzf db-4.8.30.NC.tar.gz



Install OracleBerkeley DB versi 4.8.30.NC

cd db-4.8.30 
cd build_unix
../dist/configure
make
sudo make install

Install SquidGuard versi 1.4

cd squidGuard-1.4
./configure --with-db=/usr/local/BerkeleyDB.4.8 --with-squiduser=proxy
make
sudo make install

Download Daftar List Blacklist

tar xvfz blacklists.tar.gz
mv blacklist/* cd /usr/local/squidGuard/db
chow -R proxy:proxy /usr/local/squidGuard/db/*
sudo tar -xvf blacklists.tar.gz

Configurasi file squidGuard yang ada di /usr/local/squidGuard/squidGuard.conf dan jalankan command berikut.

squidGuard -d
squidGuard -d -C all


-------------------------
source : http://www.danscourses.com/Linux-Fundamentals/install-a-configure-squidguard-in-ubuntu.html
-------------------------

Note 1:
* Jika ketika menjalankan command squidGuard -d muncul message error yang menjelaskan file libdb-4.8.so tidak ditemukan, jalankan command berikut.

cd /usr/lib/x86_64-linux-gnu/
ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so ./

Note 2:
* Jika ketika menjalankan command squidGuard -d -C all muncul message error yang menjelaskan "BDB1565 DB->put: method not permitted before handle's open method"

# squidGuard -d -C all 
2014-05-03 13:07:38 [1940] New setting: dbhome: /usr/local/squidGuard/db
2014-05-03 13:07:38 [1940] New setting: logdir: /usr/local/squidGuard/log
BDB1565 DB->put: method not permitted before handle's open method

Pastikan BerkeleyDB yang anda gunakan Versi 4.8, alasannya aku mencoba Versi 6.0.30 tidak running, dan terakhir aku downgrade ke versi 4.8, belum tau apa penyebabnya.

Note 3:
* SquidGuard yang dipasang dikombinasikan dengan squid3, dan ada beberapa perubahan yang signifikan dengan squid3, misalnya adalah
http_port 3128 transparent
dirubah menjadi
http_port 3128 accel vhost allow-direct
Done.

Posting Komentar untuk "Squidguard - Filtering Website Porno"