Difference between revisions of "Instalasi SquidGuard"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 16: | Line 16: | ||
Ambil source code SquidGuard dari | Ambil source code SquidGuard dari | ||
− | http://www.squidguard.org/Downloads/squidGuard-1.3.tar.gz | + | http://www.squidguard.org/Downloads/Devel/squidGuard-1.3-beta.tar.gz |
Buka source code squidGuard | Buka source code squidGuard |
Revision as of 15:01, 2 April 2008
Untuk menginstalasi SquidGuard anda membutuhkan software pendukung seperti
- Squid.
- Bison
- Flex
- Berkeley DB. Di Ubuntu biasanya sudah terinstal Berkeley DB untuk xserver.
Sebaiknya kita install Berkeley DB dari Source Code. Instruksi Instalasi Berkeley DB dari Source Code bisa di baca di Instalasi Berkeley DB.
Siapkan bison dan flex
# apt-get install bison flex
Ambil source code SquidGuard dari
http://www.squidguard.org/Downloads/Devel/squidGuard-1.3-beta.tar.gz
Buka source code squidGuard
# cd squidGuard-1.3-beta.tar.gz /usr/local/src # cd /usr/local/src # tar xvzf squidGuard-1.3-beta.tar.gz
Compile
# cd squidGuard-1.3-beta # ./configure --squiduser=proxy # make
Jika tidak ada error maka squidGuard terinstalasi di /usr/local/. Pilihan lain untuk melakukan ./configure. Jika squidGuard di instal di directory lain,
# ./configure --prefix=/some/other/directory
Jika BerkeleyDB tidak berada di /usr/local/BerkeleyDB
# ./configure --with-db=/directory/of/BerkeleyDB/installation
atau, misalnya,
# ./configure --with-db=/usr/local/BerkeleyDB.4.6/
Install squidGuard
$ su - # make install
Akan keluar message berikut
Installing squidGuard Done. Installing configuration file Created directory /usr/local/squidGuard/db Assigned /usr/local/squidGuard/db to user proxy Created directory /usr/local/squidGuard/log Assigned /usr/local/squidGuard/log to user proxy Copied sample squidGuard.conf /usr/local/squidGuard/squidGuard.conf is now readable The initial configuration is complete.
Congratulation. SquidGuard is sucessfully installed.
Instalasi Database Blacklist
Instal blacklists, default menggunakan /usr/local/squidGuard/db. Pastikan anda mempunya permission untuk menulis ke directory tersebut, lakukan,
# cp /path/to/your/blacklist.tar.gz /usr/local/squidGuard/db # cd /usr/local/squidGuard/db # gzip -d blacklist.tar.gz # tar xfv blacklist.tar
Sekarang blacklist siap digunakan