Friday, 11 October 2013

Install Squid 3 di ubuntu dan debian

Posted By: Rufaidah-network - 23:45

Share

& Comment



apt-get update -y
apt-get install squid squidclient squid-cgi -y
apt-get install gcc -y
apt-get install build-essential -y
apt-get install sharutils -y
apt-get install ccze -y
apt-get install libzip-dev -y
apt-get install automake1.9 -y
apt-get install acpid -y
apt-get install unzip -y
apt-get install libfile-readbackwards-perl -y
apt-get install devscripts openssl libssl-dev fakeroot libcppunit-dev libsasl2-dev cdbs -y

# Berikutnya Instalasi squid3-HEAD
*download dahulu squid-3 HEAD pada link berikut:
*http://www.4shared.com/archive/yrfRplU4/squid-3HEAD-20130911-r13002tar.html
*kemudian buka winscp dan login sebagai root.
*buka directory /tmp, kemudian drag&drop squid -3 HEAD yg sudah didownload tadi ke directori /tmp.
*ketikkan pada terminal putty cd /tmp
*kemudian tar -xvzf squid-3.HEAD-20130911-r13002.tar.gz
*cd squid-3.HEAD-20130911-r13002
*./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --sysconfdir=/etc/squid --datadir=/usr/share/squid --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib/squid --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib --enable-shared=yes --enable-static=no --enable-carp --enable-storeio=aufs,ufs --enable-removal-policies=heap,lru --disable-icmp --disable-delay-pools --disable-esi --enable-icap-client --enable-useragent-log --enable-referer-log --disable-wccp --enable-wccpv2 --disable-kill-parent-hack --enable-snmp --enable-cachemgr-hostname=localhost --enable-arp-acl --disable-htcp --disable-forw-via-db --enable-follow-x-forwarded-for --enable-cache-digests --disable-poll --enable-epoll --enable-linux-netfilter --disable-ident-lookups --enable-default-hostsfile=/etc/hosts --with-default-user=squid --with-large-files --enable-mit=/usr --with-logdir=/var/log/squid --enable-http-violations --enable-zph-qos --with-filedescriptors=65536 --enable-gnuregex --enable-async-io=64 --with-aufs-threads=64 --with-pthreads --with-aio --enable-default-err-languages=English --enable-err-languages=English --disable-hostname-checks --enable-underscores --enable-ssl --enable-linux-netfilter --enable-pf-transparent
*make, make install.

*buka directory /etc/squid
*backup file squid.conf dan masukkan squid.conf dari link ini http://www.4shared.com/file/KLURKs-T/squid.html
*jangan lupa download file store-id.pl http://www.4shared.com/file/RHATtSUj/store-id.html dan letakkan pada directory /etc/squid

# Generate ssl
*mkdir /etc/squid/cert
*openssl genrsa 4096 > /etc/squid/cert/private.pem
*openssl req -new -x509 -days 3650 -key /etc/squid/cert/private.pem -out /etc/squid/cert/public.pem
*openssl x509 -in /etc/squid/cert/public.pem -outform DER -out /etc/squid/cert/user.der
*ketikkan di putty /usr/lib/squid/ssl_crtd -c -s /etc/squid/ssl_db
*chown -Rf proxy.proxy /etc/squid/ssl_db

*chown proxy:proxy /etc/squid/store-id.pl
*chmod 777 /etc/squid/store-id.pl
*chown proxy:proxy /cache1
*chmod 777 /cache1
*squid -f /etc/squid/squid.conf -z

*/etc/init.d/squid restart
*squid -NCd10 Jika tidak terjadi error, maka squid sudah berjalan normal dan dapat digunakan.

About Rufaidah-network

Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment

0 komentar:

Post a Comment

Copyright © Pembelajaran IT ™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.