Instalasi Squid Lusca di Ubuntu 12.04

Instalasi Squid Lusca di Ubuntu 12.04

# sudo apt-get update # sudo apt-get install squid squidclient squid-cgi # sudo apt-get install gcc # sudo apt-get install build-essential # sudo apt-get install sharutils # sudo apt-get install ccze # sudo apt-get install libzip-dev # sudo apt-get install automake1.9 ATAU : # sudo apt-get update # sudo apt-get install -y squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 Download LUSCA # cd /tmp # wget -c http://neolink.googlecode.com/files/LUSCA_HEAD-r14809-patch.tar.bz2 # tar -xvjf LUSCA_HEAD-r14809-patch.tar.bz2 # cd LUSCA_HEAD-r14809 # make clean CONFIGURE # ./configure –prefix=/usr –exec_prefix=/usr –bindir=/usr/sbin –sbindir=/usr/sbin –libexecdir=/usr/lib/squid –sysconfdir=/etc/squid –localstatedir=/var/spool/squid –datadir=/usr/share/squid –enable-async-io=24 –with-aufs-threads=24 –with-pthreads –enable-storeio=aufs –enable-linux-netfilter –enable-arp-acl –enable-epoll –enable-removal-policies=heap –with-aio –with-dl –enable-snmp –enable-delay-pools –enable-htcp –enable-cache-digests –disable-unlinkd –enable-large-cache-files –with-large-files –enable-err-languages=English –enable-default-err-language=English –with-maxfd=65536 INSTALL LUSCA # make # sudo make install DOWNLOAD SERVICE SQUID # cd /etc/init.d/ # mv squid squid.original # wget -c https://neolink.googlecode.com/files/squid.init.ubuntu # mv squid.init.ubuntu squid # sudo chmod +x /etc/init.d/squid # /etc/init.d/squid stop BUAT DIRECTORY TUNNING LUSCA # mkdir -p /usr/local/share/squid # chmod 777 /usr/local/share/squid # cd /usr/local/share/squid # wget http://neolink.googlecode.com/files/storeurl.pl.tar.gz # tar -xvzf storeurl.pl.tar.gz # wget http://neolink.googlecode.com/files/tunning.conf # wget http://neolink.googlecode.com/files/refresh.conf # mv /etc/squid/squid.conf /etc/squid/squid.conf.original # cd /etc/squid # wget http://neolink.googlecode.com/files/squid.conf.ubuntu.zip # unzip squid.conf.ubuntu.zip # mv squid.conf.ubuntu squid.conf # chmod 644 squid.conf CONFIG # vi squid.conf # =========== 20 GB =============== cache_dir aufs /cache1 16357 38 256 cache_dir aufs /cache2 16357 38 256 # =========== 20 GB =============== AKSES SQUID # chown proxy:proxy /cache1 # chown proxy:proxy /cache2 # chmod 777 /cache1 # chmod 777 /cache2 TUNNELING SQUID CACHE # chown proxy:proxy /usr/local/share/squid/tunning.conf # chmod 777 /usr/local/share/squid/tunning.conf # chown proxy:proxy /usr/local/share/squid/storeurl.pl # chmod 777 /usr/local/share/squid/storeurl.pl # chown proxy:proxy /usr/local/share/squid/refresh.conf # chmod 777 /usr/local/share/squid/refresh.conf BUILD & DEBUG SQUID # squid -f /etc/squid/squid.conf -z # sudo /etc/init.d/squid restart # squid -NDd1 # squidclient mgr:info # tail -f /var/log/squid/access.log | ccze RESTART # shutdown -r now # tail -f /var/log/squid/access.log | ccze
Source : http://www.pakirwan.web.id/2012/10/high-performance-lusca-squid-proxy.html

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *