Trace: squid_proxy

squid cache peer

cache_peer xx.xx.x.x parent 3128 7 no-query no-digest no-netdb-exchange round-robin

squid cache peer menggunakan autentikasi

cache_peer xx.xx.x.x parent 3128 7 login=username:password no-query no-digest no-netdb-exchange round-robin

keterangan :

  • cache_peer : opsi untuk squid forwarding
  • xx.xxx.x : alamat ip atau domain cache peer
  • parent : typenya parent (parent, sibling)
  • 3128 : proxy port
  • 7 : icp port
  • login : username login di parent squid
  • no-query : supaya tidak mengirimkan icp query
  • no-digest : supaya tidak mengirimkan cache digest
  • no-netdb-exchange : disable ICMP TTR request
  • round-robin : menggunakan logika round robin

Lebih lengkapnya silahkan di googling

Squid Ldap CentOS

Kebutuhan paket tambahan untuk install squid dari source

cyrus-sasl libtool perl compat-openldap cyrus-sasl-ldap nss_ldap openldap openldap-clients openldap-devel

kemudian install dengan opsi berikut

'--enable-auth=basic,digest' '--enable-basic-auth-helpers=NCSA,LDAP' '--enable-digest-auth-helpers=password,ldap' '--enable-external-acl-helpers=ldap_group' '--enable-gnuregex' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--with-aio' '--with-dl' '--enable-storeio=aufs,ufs' '--enable-removal-policies=lru,heap' '--enable-icmp' '--enable-delay-pools' '--disable-wccp' '--disable-wccpv2' '--enable-cache-digests' '--enable-err-languages=English' '--enable-linux-netfilter' '--disable-ident-lookups' '--datadir=/usr/local/etc/squid' '--localstatedir=/var/squid' '--prefix=/usr/local/' '--bindir=/usr/local/sbin' '--sysconfdir=/usr/local/etc' '--mandir=/usr/local/man' '--infodir=/usr/local/info' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include'

Lightsquid CentOS

Install httpd dan php

yum install php php-cli php-common php-gd

Lanjut.., download lightsquid

http://optusnet.dl.sourceforge.net/sourceforge/lightsquid/

ekstrak di direktori web server, kl saya masuk di /var/www/cgi-bin/ aja :D

tar xvzf lightsquid-1.8.tgz -C /var/www/cgi-bin

Set kepemilikanya ke user yang menjalankan apache, sekalian di rename, biar gampang manggilnya

chown -R apache.apache /var/www/cgi-bin/lightsquid-1.8
mv lightsquid-1.8 lightsquid
<code>
buat alias di httpd
<code>
Alias /squidmon "/var/www/cgi-bin/lightsquid"

<Directory "/var/www/cgi-bin/lightsquid/">
    Options Indexes MultiViews +ExecCGI
    DirectoryIndex index.cgi
    AddHandler cgi-script .cgi
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

restart httpdnya dan panggil dengan alamat http://server_name/squid/

terakhir, tambahkan di crontab

*/30    *       *       *       *       /var/www/cgi-bin/lightsquid/lightparser.pl
  • ACL Time
acl jam_kerja time MTWHF 07:00-12:00, 13:00-17:00
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki