Difference between revisions of "Instalasi SquidGuard"

From OnnoWiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
* [[Instalasi Squid | Squid]].
 
* [[Instalasi Squid | Squid]].
* Berkeley DB. Di Ubuntu biasanya sudah terinstal Berkeley DB. Untuk menambahkan dukungan untuk development dapat di check menggunakan
+
* Bison
 +
* Flex
 +
* Berkeley DB. Di Ubuntu biasanya sudah terinstal Berkeley DB untuk xserver.
 +
 
 +
Sebaiknya kita [[Instalasi Berkeley DB | 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
 +
 
  
# apt-get install libdb4.5 libdb4.5-dev
 
  
 
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
  
  # cd squidGuard-1.3.tar.gz /usr/local/src
+
  # cd squidGuard-1.3-beta.tar.gz /usr/local/src
 
  # cd /usr/local/src
 
  # cd /usr/local/src
  # tar xvzf squidGuard-1.3.tar.gz
+
  # tar xvzf squidGuard-1.3-beta.tar.gz
  
  
 
Compile
 
Compile
  
  # cd squidGuard-1.3
+
  # cd squidGuard-1.3-beta
  # ./configure
+
  # ./configure --squiduser=proxy
 
  # make
 
  # make
  
Line 30: Line 38:
  
 
  # ./configure  --with-db=/directory/of/BerkeleyDB/installation
 
  # ./configure  --with-db=/directory/of/BerkeleyDB/installation
 +
 +
atau, misalnya,
 +
 +
# ./configure --with-db=/usr/local/BerkeleyDB.4.6/
  
  
Line 36: Line 48:
 
  $ su -
 
  $ su -
 
  # make install
 
  # 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==
  
  
Line 54: Line 84:
 
* [[Teknik Memblok Situs Tidak Baik]]
 
* [[Teknik Memblok Situs Tidak Baik]]
 
* [[Linux Howto]]
 
* [[Linux Howto]]
 +
 +
 +
[[Category: Internet Sehat]]
 +
[[Category: Proxy]]

Latest revision as of 12:28, 11 May 2010

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


Pranala Menarik