Selasa, 25 Juni 2013

Cara compile Squid Cache Version 3.2.0.17 di ubuntu 11.10

Bagi teman2 yang mengalami kesulitan untuk mengkompilasi squid versi 3.2.7 sampai versi terbaru saat ini yaitu 3.2.0.17 di ubuntu server khususnya. dikarenakan untuk mengkompile squid versi 3.2.7 s/d 3.2.0.17 saat ini memerlukan lib openssl pada proses kompilasi. Sehingga kita perlu menginstall terlebih dahulu beberapa paket (libldap2-dev libpam0g-dev libdb-dev dpatch cdbs libsasl2-dev debhelper libcppunit-dev libkrb5-dev comerr-dev libcap2-dev libexpat1-dev libxml2-dev libcap2-dev dpkg-dev curl libssl-dev libssl0.9.8 libssl0.9.8-dbg libcurl4-openssl-dev) dengan cara mengetikkan perintah:
root@ProxyServer:/home/hong# apt-get install build-essential libldap2-dev libpam0g-dev libdb-dev dpatch cdbs libsasl2-dev debhelper libcppunit-dev libkrb5-dev comerr-dev libcap2-dev libexpat1-dev libxml2-dev libcap2-dev dpkg-dev curl libssl-dev libssl0.9.8 libssl0.9.8-dbg libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcap-dev' instead of 'libcap2-dev'
Note, selecting 'libcap-dev' instead of 'libcap2-dev'
The following extra packages will be installed:
autoconf automake autotools-dev binutils cpp cpp-4.6 dh-translations fakeroot g++ g++-4.6 gcc gcc-4.6 gettext html2text intltool
intltool-debian krb5-multidev libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libc-dev-bin libc6-dev libcap2
libcppunit-1.12-1 libcroco3 libcurl3 libdb5.1-dev libdpkg-perl libencode-locale-perl libfile-listing-perl libfont-afm-perl libgomp1
libgssrpc4 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libidn11-dev libio-socket-ssl-perl libkadm5clnt-mit8
libkadm5srv-mit8 libkdb5-5 liblwp-mediatypes-perl liblwp-protocol-https-perl libmail-sendmail-perl libmailtools-perl libmpc2 libmpfr4
libnet-http-perl libnet-ssleay-perl libquadmath0 libssl-doc libstdc++6-4.6-dev libsys-hostname-long-perl libunistring0 liburi-perl
libwww-perl libwww-robotrules-perl libxml-parser-perl linux-libc-dev m4 make manpages-dev patchutils pkg-config po-debconf python-scour
zlib1g-dev
Suggested packages:
autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool binutils-doc devscripts doc-base cpp-doc gcc-4.6-locales dh-make
debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg gcc-multilib automake1.9 flex bison gdb gcc-doc gcc-4.6-multilib
libmudflap0-4.6-dev libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold gettext-doc krb5-doc glibc-doc
libqttestrunner1c2a libcppunit-doc libcurl3-dbg db5.1-doc krb5-user libdata-dump-perl libio-socket-inet6-perl libcrypt-ssleay-perl
libstdc++6-4.6-doc libauthen-ntlm-perl make-doc libmail-box-perl python-rsvg
The following NEW packages will be installed:
autoconf automake autotools-dev binutils build-essential cdbs comerr-dev cpp cpp-4.6 curl debhelper dh-translations dpatch dpkg-dev fakeroot
g++ g++-4.6 gcc gcc-4.6 gettext html2text intltool intltool-debian krb5-multidev libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libc-dev-bin libc6-dev libcap-dev libcap2 libcppunit-1.12-1 libcppunit-dev libcroco3 libcurl3 libcurl4-openssl-dev
libdb-dev libdb5.1-dev libdpkg-perl libencode-locale-perl libexpat1-dev libfile-listing-perl libfont-afm-perl libgomp1 libgssrpc4
libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libidn11-dev libio-socket-ssl-perl libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-5
libkrb5-dev libldap2-dev liblwp-mediatypes-perl liblwp-protocol-https-perl libmail-sendmail-perl libmailtools-perl libmpc2 libmpfr4
libnet-http-perl libnet-ssleay-perl libpam0g-dev libquadmath0 libsasl2-dev libssl-dev libssl-doc libssl0.9.8 libssl0.9.8-dbg
libstdc++6-4.6-dev libsys-hostname-long-perl libunistring0 liburi-perl libwww-perl libwww-robotrules-perl libxml-parser-perl libxml2-dev
linux-libc-dev m4 make manpages-dev patchutils pkg-config po-debconf python-scour zlib1g-dev
0 upgraded, 94 newly installed, 0 to remove and 2 not upgraded.
Need to get 48.0 MB of archives.
After this operation, 148 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libgssrpc4 i386 1.9.1+dfsg-1ubuntu2.2 [61.2 kB]
Get:2 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libkadm5clnt-mit8 i386 1.9.1+dfsg-1ubuntu2.2 [37.6 kB]
Get:3 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libkdb5-5 i386 1.9.1+dfsg-1ubuntu2.2 [36.1 kB]
Get:4 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libkadm5srv-mit8 i386 1.9.1+dfsg-1ubuntu2.2 [53.3 kB]
Get:5 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcurl3 i386 7.21.6-3ubuntu3.2 [236 kB]
Get:6 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libgomp1 i386 4.6.1-9ubuntu3 [28.3 kB]
Get:7 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libquadmath0 i386 4.6.1-9ubuntu3 [195 kB]
Get:8 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/universe libssl0.9.8 i386 0.9.8o-7ubuntu1.2 [868 kB]
Get:9 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libcap2 i386 1:2.21-2 [12.5 kB]
Get:10 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main m4 i386 1.4.16-1 [195 kB]
Get:11 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main autoconf all 2.68-1ubuntu1 [560 kB]
Get:12 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main autotools-dev all 20110511.1 [44.7 kB]
Get:13 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main automake all 1:1.11.1-1ubuntu1 [544 kB]
Get:14 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main binutils i386 2.21.53.20110810-0ubuntu5.1 [2,383 kB]
Get:15 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libc-dev-bin i386 2.13-20ubuntu5.1 [77.5 kB]
Get:16 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main linux-libc-dev i386 3.0.0-20.34 [827 kB]
Get:17 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libc6-dev i386 2.13-20ubuntu5.1 [5,038 kB]
Get:18 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libmpfr4 i386 3.0.1-5 [188 kB]
Get:19 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libmpc2 i386 0.9-3 [37.3 kB]
Get:20 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main cpp-4.6 i386 4.6.1-9ubuntu3 [4,642 kB]
Get:21 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main cpp i386 4:4.6.1-2ubuntu5 [28.0 kB]
Get:22 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main gcc-4.6 i386 4.6.1-9ubuntu3 [7,519 kB]
Get:23 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main gcc i386 4:4.6.1-2ubuntu5 [5,118 B]
Get:24 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libstdc++6-4.6-dev i386 4.6.1-9ubuntu3 [1,589 kB]
Get:25 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main g++-4.6 i386 4.6.1-9ubuntu3 [6,187 kB]
Get:26 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main g++ i386 4:4.6.1-2ubuntu5 [1,434 B]
Get:27 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main make i386 3.81-8.1ubuntu1 [116 kB]
Get:28 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libdpkg-perl all 1.16.0.3ubuntu5.1 [172 kB]
Get:29 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main dpkg-dev all 1.16.0.3ubuntu5.1 [474 kB]
Get:30 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main build-essential i386 11.5ubuntu1 [5,920 B]
Get:31 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main html2text i386 1.3.2a-15 [101 kB]
Get:32 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libcroco3 i386 0.6.2-1 [92.5 kB]
Get:33 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libunistring0 i386 0.9.3-4 [431 kB]
Get:34 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main gettext i386 0.18.1.1-3ubuntu1 [1,180 kB]
Get:35 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main intltool-debian all 0.35.0+20060710.1 [31.6 kB]
Get:36 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main po-debconf all 1.0.16+nmu1 [212 kB]
Get:37 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main debhelper all 8.9.0ubuntu1 [487 kB]
Get:38 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main liburi-perl all 1.58-1 [89.8 kB]
Get:39 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libencode-locale-perl all 1.02-1 [11.8 kB]
Get:40 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-date-perl all 6.00-1 [10.1 kB]
Get:41 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libfile-listing-perl all 6.01-1 [8,988 B]
Get:42 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-tagset-perl all 3.20-2 [13.5 kB]
Get:43 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-parser-perl i386 3.68-1build1 [98.8 kB]
Get:44 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-tree-perl all 4.2-1 [205 kB]
Get:45 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main liblwp-mediatypes-perl all 6.01-1 [17.5 kB]
Get:46 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-message-perl all 6.01-1 [77.6 kB]
Get:47 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-cookies-perl all 6.00-2 [23.3 kB]
Get:48 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-negotiate-perl all 6.00-2 [13.4 kB]
Get:49 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libnet-http-perl all 6.01-1 [20.5 kB]
Get:50 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libnet-ssleay-perl i386 1.36-3 [206 kB]
Get:51 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libio-socket-ssl-perl all 1.43-1 [47.2 kB]
Get:52 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main liblwp-protocol-https-perl all 6.02-1 [6,746 B]
Get:53 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libwww-robotrules-perl all 6.01-1 [14.1 kB]
Get:54 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libwww-perl all 6.02-1ubuntu1 [155 kB]
Get:55 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libxml-parser-perl i386 2.41-1 [272 kB]
Get:56 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main intltool all 0.41.1-2 [99.7 kB]
Get:57 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main dh-translations all 104 [19.6 kB]
Get:58 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main python-scour all 0.26-1 [46.2 kB]
Get:59 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main cdbs all 0.4.94ubuntu1 [48.5 kB]
Get:60 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main curl i386 7.21.6-3ubuntu3.2 [134 kB]
Get:61 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main dpatch all 2.0.31 [88.4 kB]
Get:62 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main fakeroot i386 1.17-1 [81.6 kB]
Get:63 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main comerr-dev i386 2.1-1.41.14-1ubuntu3 [41.5 kB]
Get:64 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main krb5-multidev i386 1.9.1+dfsg-1ubuntu2.2 [89.8 kB]
Get:65 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libalgorithm-diff-perl all 1.19.02-2 [50.7 kB]
Get:66 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libalgorithm-diff-xs-perl i386 0.04-1build1 [13.8 kB]
Get:67 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libalgorithm-merge-perl all 0.08-2 [12.7 kB]
Get:68 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libcap-dev i386 1:2.21-2 [24.4 kB]
Get:69 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libcppunit-1.12-1 i386 1.12.1-3 [98.2 kB]
Get:70 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libcppunit-dev i386 1.12.1-3 [202 kB]
Get:71 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main zlib1g-dev i386 1:1.2.3.4.dfsg-3ubuntu3 [160 kB]
Get:72 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libssl-dev i386 1.0.0e-2ubuntu4.6 [1,399 kB]
Get:73 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main pkg-config i386 0.26-1ubuntu1 [40.3 kB]
Get:74 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libidn11-dev i386 1.22-2 [635 kB]
Get:75 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libkrb5-dev i386 1.9.1+dfsg-1ubuntu2.2 [12.4 kB]
Get:76 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libldap2-dev i386 2.4.25-1.1ubuntu4.1 [913 kB]
Get:77 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libcurl4-openssl-dev i386 7.21.6-3ubuntu3.2 [1,024 kB]
Get:78 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libexpat1-dev i386 2.0.1-7ubuntu3 [211 kB]
Get:79 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libfont-afm-perl all 1.20-1 [14.3 kB]
Get:80 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-form-perl all 6.00-1 [22.8 kB]
Get:81 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-format-perl all 2.10-1 [40.6 kB]
Get:82 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-daemon-perl all 6.00-1 [16.7 kB]
Get:83 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libsys-hostname-long-perl all 1.4-2 [11.4 kB]
Get:84 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libmail-sendmail-perl all 0.79.16-1 [26.5 kB]
Get:85 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libmailtools-perl all 2.08-1 [84.0 kB]
Get:86 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libpam0g-dev i386 1.1.3-2ubuntu2.1 [118 kB]
Get:87 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libsasl2-dev i386 2.1.24~rc1.dfsg1+cvs2011-05-23-4ubuntu2 [305 kB]
Get:88 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libssl-doc all 1.0.0e-2ubuntu4.6 [1,033 kB]
Get:89 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/main libxml2-dev i386 2.7.8.dfsg-4ubuntu0.3 [760 kB]
Get:90 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main manpages-dev all 3.27-1ubuntu2 [1,627 kB]
Get:91 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main patchutils i386 0.3.2-1 [88.4 kB]
Get:92 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libdb5.1-dev i386 5.1.25-11 [852 kB]
Get:93 http://sg.archive.ubuntu.com/ubuntu/ oneiric/main libdb-dev all 5.1.4 [2,132 B]
Get:94 http://sg.archive.ubuntu.com/ubuntu/ oneiric-updates/universe libssl0.9.8-dbg i386 0.9.8o-7ubuntu1.2 [1,573 kB]
Fetched 48.0 MB in 26min 4s (30.7 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously deselected package libgssrpc4.
(Reading database ... 28213 files and directories currently installed.)
Unpacking libgssrpc4 (from .../libgssrpc4_1.9.1+dfsg-1ubuntu2.2_i386.deb) ...
Selecting previously deselected package libkadm5clnt-mit8.
Unpacking libkadm5clnt-mit8 (from .../libkadm5clnt-mit8_1.9.1+dfsg-1ubuntu2.2_i386.deb) ...
Selecting previously deselected package libkdb5-5.
Unpacking libkdb5-5 (from .../libkdb5-5_1.9.1+dfsg-1ubuntu2.2_i386.deb) ...
Selecting previously deselected package libkadm5srv-mit8.
Unpacking libkadm5srv-mit8 (from .../libkadm5srv-mit8_1.9.1+dfsg-1ubuntu2.2_i386.deb) ...
Selecting previously deselected package libcurl3.
Unpacking libcurl3 (from .../libcurl3_7.21.6-3ubuntu3.2_i386.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.6.1-9ubuntu3_i386.deb) ...
Selecting previously deselected package libquadmath0.
Unpacking libquadmath0 (from .../libquadmath0_4.6.1-9ubuntu3_i386.deb) ...
Selecting previously deselected package libssl0.9.8.
Unpacking libssl0.9.8 (from .../libssl0.9.8_0.9.8o-7ubuntu1.2_i386.deb) ...
Selecting previously deselected package libcap2.
Unpacking libcap2 (from .../libcap2_1%3a2.21-2_i386.deb) ...
Selecting previously deselected package m4.
Unpacking m4 (from .../archives/m4_1.4.16-1_i386.deb) ...
Selecting previously deselected package autoconf.
Unpacking autoconf (from .../autoconf_2.68-1ubuntu1_all.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20110511.1_all.deb) ...
Selecting previously deselected package automake.
Unpacking automake (from .../automake_1%3a1.11.1-1ubuntu1_all.deb) ...
Selecting previously deselected package binutils.
Unpacking binutils (from .../binutils_2.21.53.20110810-0ubuntu5.1_i386.deb) ...
Selecting previously deselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.13-20ubuntu5.1_i386.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_3.0.0-20.34_i386.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.13-20ubuntu5.1_i386.deb) ...
Selecting previously deselected package libmpfr4.
Unpacking libmpfr4 (from .../libmpfr4_3.0.1-5_i386.deb) ...
Selecting previously deselected package libmpc2.
Unpacking libmpc2 (from .../libmpc2_0.9-3_i386.deb) ...
Selecting previously deselected package cpp-4.6.
Unpacking cpp-4.6 (from .../cpp-4.6_4.6.1-9ubuntu3_i386.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.6.1-2ubuntu5_i386.deb) ...
Selecting previously deselected package gcc-4.6.
Unpacking gcc-4.6 (from .../gcc-4.6_4.6.1-9ubuntu3_i386.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.6.1-2ubuntu5_i386.deb) ...
Selecting previously deselected package libstdc++6-4.6-dev.
Unpacking libstdc++6-4.6-dev (from .../libstdc++6-4.6-dev_4.6.1-9ubuntu3_i386.deb) ...
Selecting previously deselected package g++-4.6.
Unpacking g++-4.6 (from .../g++-4.6_4.6.1-9ubuntu3_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.6.1-2ubuntu5_i386.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../make_3.81-8.1ubuntu1_i386.deb) ...
Selecting previously deselected package libdpkg-perl.
Unpacking libdpkg-perl (from .../libdpkg-perl_1.16.0.3ubuntu5.1_all.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.16.0.3ubuntu5.1_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.5ubuntu1_i386.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-15_i386.deb) ...
Selecting previously deselected package libcroco3.
Unpacking libcroco3 (from .../libcroco3_0.6.2-1_i386.deb) ...
Selecting previously deselected package libunistring0.
Unpacking libunistring0 (from .../libunistring0_0.9.3-4_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.18.1.1-3ubuntu1_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.16+nmu1_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_8.9.0ubuntu1_all.deb) ...
Selecting previously deselected package liburi-perl.
Unpacking liburi-perl (from .../liburi-perl_1.58-1_all.deb) ...
Selecting previously deselected package libencode-locale-perl.
Unpacking libencode-locale-perl (from .../libencode-locale-perl_1.02-1_all.deb) ...
Selecting previously deselected package libhttp-date-perl.
Unpacking libhttp-date-perl (from .../libhttp-date-perl_6.00-1_all.deb) ...
Selecting previously deselected package libfile-listing-perl.
Unpacking libfile-listing-perl (from .../libfile-listing-perl_6.01-1_all.deb) ...
Selecting previously deselected package libhtml-tagset-perl.
Unpacking libhtml-tagset-perl (from .../libhtml-tagset-perl_3.20-2_all.deb) ...
Selecting previously deselected package libhtml-parser-perl.
Unpacking libhtml-parser-perl (from .../libhtml-parser-perl_3.68-1build1_i386.deb) ...
Selecting previously deselected package libhtml-tree-perl.
Unpacking libhtml-tree-perl (from .../libhtml-tree-perl_4.2-1_all.deb) ...
Selecting previously deselected package liblwp-mediatypes-perl.
Unpacking liblwp-mediatypes-perl (from .../liblwp-mediatypes-perl_6.01-1_all.deb) ...
Selecting previously deselected package libhttp-message-perl.
Unpacking libhttp-message-perl (from .../libhttp-message-perl_6.01-1_all.deb) ...
Selecting previously deselected package libhttp-cookies-perl.
Unpacking libhttp-cookies-perl (from .../libhttp-cookies-perl_6.00-2_all.deb) ...
Selecting previously deselected package libhttp-negotiate-perl.
Unpacking libhttp-negotiate-perl (from .../libhttp-negotiate-perl_6.00-2_all.deb) ...
Selecting previously deselected package libnet-http-perl.
Unpacking libnet-http-perl (from .../libnet-http-perl_6.01-1_all.deb) ...
Selecting previously deselected package libnet-ssleay-perl.
Unpacking libnet-ssleay-perl (from .../libnet-ssleay-perl_1.36-3_i386.deb) ...
Selecting previously deselected package libio-socket-ssl-perl.
Unpacking libio-socket-ssl-perl (from .../libio-socket-ssl-perl_1.43-1_all.deb) ...
Selecting previously deselected package liblwp-protocol-https-perl.
Unpacking liblwp-protocol-https-perl (from .../liblwp-protocol-https-perl_6.02-1_all.deb) ...
Selecting previously deselected package libwww-robotrules-perl.
Unpacking libwww-robotrules-perl (from .../libwww-robotrules-perl_6.01-1_all.deb) ...
Selecting previously deselected package libwww-perl.
Unpacking libwww-perl (from .../libwww-perl_6.02-1ubuntu1_all.deb) ...
Selecting previously deselected package libxml-parser-perl.
Unpacking libxml-parser-perl (from .../libxml-parser-perl_2.41-1_i386.deb) ...
Selecting previously deselected package intltool.
Unpacking intltool (from .../intltool_0.41.1-2_all.deb) ...
Selecting previously deselected package dh-translations.
Unpacking dh-translations (from .../dh-translations_104_all.deb) ...
Selecting previously deselected package python-scour.
Unpacking python-scour (from .../python-scour_0.26-1_all.deb) ...
Selecting previously deselected package cdbs.
Unpacking cdbs (from .../cdbs_0.4.94ubuntu1_all.deb) ...
Selecting previously deselected package curl.
Unpacking curl (from .../curl_7.21.6-3ubuntu3.2_i386.deb) ...
Selecting previously deselected package dpatch.
Unpacking dpatch (from .../archives/dpatch_2.0.31_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.17-1_i386.deb) ...
Selecting previously deselected package comerr-dev.
Unpacking comerr-dev (from .../comerr-dev_2.1-1.41.14-1ubuntu3_i386.deb) ...
Selecting previously deselected package krb5-multidev.
Unpacking krb5-multidev (from .../krb5-multidev_1.9.1+dfsg-1ubuntu2.2_i386.deb) ...
Selecting previously deselected package libalgorithm-diff-perl.
Unpacking libalgorithm-diff-perl (from .../libalgorithm-diff-perl_1.19.02-2_all.deb) ...
Selecting previously deselected package libalgorithm-diff-xs-perl.
Unpacking libalgorithm-diff-xs-perl (from .../libalgorithm-diff-xs-perl_0.04-1build1_i386.deb) ...
Selecting previously deselected package libalgorithm-merge-perl.
Unpacking libalgorithm-merge-perl (from .../libalgorithm-merge-perl_0.08-2_all.deb) ...
Selecting previously deselected package libcap-dev.
Unpacking libcap-dev (from .../libcap-dev_1%3a2.21-2_i386.deb) ...
Selecting previously deselected package libcppunit-1.12-1.
Unpacking libcppunit-1.12-1 (from .../libcppunit-1.12-1_1.12.1-3_i386.deb) ...
Selecting previously deselected package libcppunit-dev.
Unpacking libcppunit-dev (from .../libcppunit-dev_1.12.1-3_i386.deb) ...
Selecting previously deselected package zlib1g-dev.
Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3ubuntu3_i386.deb) ...
Selecting previously deselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_1.0.0e-2ubuntu4.6_i386.deb) ...
Selecting previously deselected package pkg-config.
Unpacking pkg-config (from .../pkg-config_0.26-1ubuntu1_i386.deb) ...
Selecting previously deselected package libidn11-dev.
Unpacking libidn11-dev (from .../libidn11-dev_1.22-2_i386.deb) ...
Selecting previously deselected package libkrb5-dev.
Unpacking libkrb5-dev (from .../libkrb5-dev_1.9.1+dfsg-1ubuntu2.2_i386.deb) ...
Selecting previously deselected package libldap2-dev.
Unpacking libldap2-dev (from .../libldap2-dev_2.4.25-1.1ubuntu4.1_i386.deb) ...
Selecting previously deselected package libcurl4-openssl-dev.
Unpacking libcurl4-openssl-dev (from .../libcurl4-openssl-dev_7.21.6-3ubuntu3.2_i386.deb) ...
Selecting previously deselected package libexpat1-dev.
Unpacking libexpat1-dev (from .../libexpat1-dev_2.0.1-7ubuntu3_i386.deb) ...
Selecting previously deselected package libfont-afm-perl.
Unpacking libfont-afm-perl (from .../libfont-afm-perl_1.20-1_all.deb) ...
Selecting previously deselected package libhtml-form-perl.
Unpacking libhtml-form-perl (from .../libhtml-form-perl_6.00-1_all.deb) ...
Selecting previously deselected package libhtml-format-perl.
Unpacking libhtml-format-perl (from .../libhtml-format-perl_2.10-1_all.deb) ...
Selecting previously deselected package libhttp-daemon-perl.
Unpacking libhttp-daemon-perl (from .../libhttp-daemon-perl_6.00-1_all.deb) ...
Selecting previously deselected package libsys-hostname-long-perl.
Unpacking libsys-hostname-long-perl (from .../libsys-hostname-long-perl_1.4-2_all.deb) ...
Selecting previously deselected package libmail-sendmail-perl.
Unpacking libmail-sendmail-perl (from .../libmail-sendmail-perl_0.79.16-1_all.deb) ...
Selecting previously deselected package libmailtools-perl.
Unpacking libmailtools-perl (from .../libmailtools-perl_2.08-1_all.deb) ...
Selecting previously deselected package libpam0g-dev.
Unpacking libpam0g-dev (from .../libpam0g-dev_1.1.3-2ubuntu2.1_i386.deb) ...
Selecting previously deselected package libsasl2-dev.
Unpacking libsasl2-dev (from .../libsasl2-dev_2.1.24~rc1.dfsg1+cvs2011-05-23-4ubuntu2_i386.deb) ...
Selecting previously deselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-doc_1.0.0e-2ubuntu4.6_all.deb) ...
Selecting previously deselected package libxml2-dev.
Unpacking libxml2-dev (from .../libxml2-dev_2.7.8.dfsg-4ubuntu0.3_i386.deb) ...
Selecting previously deselected package manpages-dev.
Unpacking manpages-dev (from .../manpages-dev_3.27-1ubuntu2_all.deb) ...
Selecting previously deselected package patchutils.
Unpacking patchutils (from .../patchutils_0.3.2-1_i386.deb) ...
Selecting previously deselected package libdb5.1-dev.
Unpacking libdb5.1-dev (from .../libdb5.1-dev_5.1.25-11_i386.deb) ...
Selecting previously deselected package libdb-dev.
Unpacking libdb-dev (from .../libdb-dev_5.1.4_all.deb) ...
Selecting previously deselected package libssl0.9.8-dbg.
Unpacking libssl0.9.8-dbg (from .../libssl0.9.8-dbg_0.9.8o-7ubuntu1.2_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up libgssrpc4 (1.9.1+dfsg-1ubuntu2.2) ...
Setting up libkadm5clnt-mit8 (1.9.1+dfsg-1ubuntu2.2) ...
Setting up libkdb5-5 (1.9.1+dfsg-1ubuntu2.2) ...
Setting up libkadm5srv-mit8 (1.9.1+dfsg-1ubuntu2.2) ...
Setting up libcurl3 (7.21.6-3ubuntu3.2) ...
Setting up libgomp1 (4.6.1-9ubuntu3) ...
Setting up libquadmath0 (4.6.1-9ubuntu3) ...
Setting up libssl0.9.8 (0.9.8o-7ubuntu1.2) ...
Setting up libcap2 (1:2.21-2) ...
Setting up m4 (1.4.16-1) ...
Setting up autoconf (2.68-1ubuntu1) ...
Setting up autotools-dev (20110511.1) ...
Setting up automake (1:1.11.1-1ubuntu1) ...
update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.
Setting up binutils (2.21.53.20110810-0ubuntu5.1) ...
Setting up libc-dev-bin (2.13-20ubuntu5.1) ...
Setting up linux-libc-dev (3.0.0-20.34) ...
Setting up libc6-dev (2.13-20ubuntu5.1) ...
Setting up libmpfr4 (3.0.1-5) ...
Setting up libmpc2 (0.9-3) ...
Setting up cpp-4.6 (4.6.1-9ubuntu3) ...
Setting up cpp (4:4.6.1-2ubuntu5) ...
Setting up gcc-4.6 (4.6.1-9ubuntu3) ...
Setting up gcc (4:4.6.1-2ubuntu5) ...
Setting up make (3.81-8.1ubuntu1) ...
Setting up libdpkg-perl (1.16.0.3ubuntu5.1) ...
Setting up dpkg-dev (1.16.0.3ubuntu5.1) ...
Setting up html2text (1.3.2a-15) ...
Setting up libcroco3 (0.6.2-1) ...
Setting up libunistring0 (0.9.3-4) ...
Setting up gettext (0.18.1.1-3ubuntu1) ...
Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.16+nmu1) ...
Setting up debhelper (8.9.0ubuntu1) ...
Setting up liburi-perl (1.58-1) ...
Setting up libencode-locale-perl (1.02-1) ...
Setting up libhttp-date-perl (6.00-1) ...
Setting up libfile-listing-perl (6.01-1) ...
Setting up libhtml-tagset-perl (3.20-2) ...
Setting up libhtml-parser-perl (3.68-1build1) ...
Setting up libhtml-tree-perl (4.2-1) ...
Setting up liblwp-mediatypes-perl (6.01-1) ...
Setting up libhttp-message-perl (6.01-1) ...
Setting up libhttp-cookies-perl (6.00-2) ...
Setting up libhttp-negotiate-perl (6.00-2) ...
Setting up libnet-http-perl (6.01-1) ...
Setting up libnet-ssleay-perl (1.36-3) ...
Setting up libio-socket-ssl-perl (1.43-1) ...
Setting up libwww-robotrules-perl (6.01-1) ...
Setting up python-scour (0.26-1) ...
Setting up curl (7.21.6-3ubuntu3.2) ...
Setting up dpatch (2.0.31) ...
Setting up fakeroot (1.17-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
Setting up comerr-dev (2.1-1.41.14-1ubuntu3) ...
Setting up krb5-multidev (1.9.1+dfsg-1ubuntu2.2) ...
Setting up libalgorithm-diff-perl (1.19.02-2) ...
Setting up libalgorithm-diff-xs-perl (0.04-1build1) ...
Setting up libalgorithm-merge-perl (0.08-2) ...
Setting up libcap-dev (1:2.21-2) ...
Setting up libcppunit-1.12-1 (1.12.1-3) ...
Setting up libcppunit-dev (1.12.1-3) ...
Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu3) ...
Setting up libssl-dev (1.0.0e-2ubuntu4.6) ...
Setting up pkg-config (0.26-1ubuntu1) ...
Setting up libidn11-dev (1.22-2) ...
Setting up libkrb5-dev (1.9.1+dfsg-1ubuntu2.2) ...
Setting up libldap2-dev (2.4.25-1.1ubuntu4.1) ...
Setting up libcurl4-openssl-dev (7.21.6-3ubuntu3.2) ...
Setting up libexpat1-dev (2.0.1-7ubuntu3) ...
Setting up libfont-afm-perl (1.20-1) ...
Setting up libhtml-form-perl (6.00-1) ...
Setting up libhtml-format-perl (2.10-1) ...
Setting up libhttp-daemon-perl (6.00-1) ...
Setting up libsys-hostname-long-perl (1.4-2) ...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Setting up libmailtools-perl (2.08-1) ...
Setting up libpam0g-dev (1.1.3-2ubuntu2.1) ...
Setting up libsasl2-dev (2.1.24~rc1.dfsg1+cvs2011-05-23-4ubuntu2) ...
Setting up libssl-doc (1.0.0e-2ubuntu4.6) ...
Setting up libxml2-dev (2.7.8.dfsg-4ubuntu0.3) ...
Setting up manpages-dev (3.27-1ubuntu2) ...
Setting up patchutils (0.3.2-1) ...
Setting up libdb5.1-dev (5.1.25-11) ...
Setting up libdb-dev (5.1.4) ...
Setting up libssl0.9.8-dbg (0.9.8o-7ubuntu1.2) ...
Setting up libstdc++6-4.6-dev (4.6.1-9ubuntu3) ...
Setting up liblwp-protocol-https-perl (6.02-1) ...
Setting up g++-4.6 (4.6.1-9ubuntu3) ...
Setting up g++ (4:4.6.1-2ubuntu5) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.
Setting up build-essential (11.5ubuntu1) ...
Setting up libwww-perl (6.02-1ubuntu1) ...
Setting up libxml-parser-perl (2.41-1) ...
Setting up intltool (0.41.1-2) ...
Setting up dh-translations (104) ...
Setting up cdbs (0.4.94ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@ProxyServer:/home/hong#
Kemudian download dan ekstrak squid versi 3.2.0.17:
root@ProxyScan:/home/hong# wget http://www.squid-cache.org/Versions/v3/3.2/squid-3.2.0.17.tar.gz
--2012-06-03 08:14:01-- http://www.squid-cache.org/Versions/v3/3.2/squid-3.2.0.17.tar.gz
Resolving www.squid-cache.org... 198.186.193.234, 209.169.10.131
Connecting to www.squid-cache.org|198.186.193.234|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4092684 (3.9M) [application/x-gzip]
Saving to: `squid-3.2.0.17.tar.gz'
 
100%[==========================================================================================================>] 4,092,684 81.2K/s in 42s
 
2012-06-03 08:14:44 (94.2 KB/s) - `squid-3.2.0.17.tar.gz' saved [4092684/4092684]
root@ProxyScan:/home/hong#
Kemudian ekstrak:
root@ProxyScan:/home/hong# tar xvf squid-3.2.0.17.tar.gz
squid-3.2.0.17/
......
squid-3.2.0.17/acinclude/lib-checks.m4
root@ProxyScan:/home/hong#
Kemudian Compile dengan menggunakan config:
CHOST=”i686-pc-linux-gnu”
CFLAGS=”-march=pentium4 -O2 -pipe -fomit-frame-pointer”
CXXFLAGS=”${CFLAGS}”
./configure \
–prefix=/usr \
–includedir=${prefix}/include \
–mandir=${prefix}/share/man \
–infodir=${prefix}/share/info \
–sysconfdir=/etc \
–localstatedir=/var \
–libexecdir=${prefix}/lib/squid \
–disable-maintainer-mode \
–disable-dependency-tracking \
–srcdir=. \
–datadir=/usr/share/squid \
–sysconfdir=/etc/squid \
–mandir=/usr/share/man \
–enable-inline \
–enable-async-io=24 \
–enable-storeio=aufs \
–enable-removal-policies=”lru,heap” \
–enable-delay-pools \
–enable-cache-digests \
–enable-underscores \
–enable-kill-parent-hack \
–enable-icap-client \
–with-dl \
–with-aio \
–enable-zph-qos \
–disable-ipv6 \
–disable-unlinkd \
–disable-wccp \
–disable-wccpv2 \
–disable-ident-lookups \
–disable-auth \
–enable-follow-x-forwarded-for \
–enable-arp-acl \
–enable-esi \
–disable-translation \
–with-logdir=/var/log/squid \
–with-pidfile=/var/run/squid.pid \
–with-filedescriptors=65536 \
–with-large-files \
–with-default-user=proxy \
–enable-ltdl-convenience
Parameter “CFLAGS” silahkan disesuaikan dengan jenis prosesor yang kalian gunakan. silahkan kunjungi infonya Disini.
Setelah di configure, lalu dilanjukan dengan perintah make dan make install
root@ProxyScan:/home/hong# squid -v
Squid Cache: Version 3.2.0.17
configure options: '--prefix=/usr' '--includedir=/include' '--mandir=/share/man' '--infodir=/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/lib/squid' '--disable-maintainer-mode' '--disable-dependency-tracking' '--srcdir=.' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--mandir=/usr/share/man' '--enable-inline' '--enable-async-io=24' '--enable-storeio=aufs' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-kill-parent-hack' '--enable-icap-client' '--with-dl' '--with-aio' '--enable-zph-qos' '--disable-ipv6' '--disable-unlinkd' '--disable-wccp' '--disable-wccpv2' '--disable-ident-lookups' '--disable-auth' '--enable-follow-x-forwarded-for' '--enable-arp-acl' '--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-ltdl-convenience'
root@ProxyScan:/home/hong#
Konfigurasi squid.conf
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
 
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 182 # uploadic
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localnet
http_access deny manager
http_access allow purge localnet
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 8080
 
hierarchy_stoplist (afs.dat|update.txt|version.list|vdf.info.gz|captcha|reset.css|gamenotice|patchinfo.bin|latest-version.xml|start*.txt|server_patch.cfg.iop|patchinfo.xml|PatchTimeCheck.dat|PatchPath.dat)
acl QUERY urlpath_regex -i \.(ini|ui|lst|inf|mh-|sc-)
acl QUERY urlpath_regex -i (afs.dat|captcha|reset.css|update.txt|version.list|gamenotice|vdf.info.gz|patchinfo.bin|latest-version.xml|start*.txt|server_patch.cfg.iop|patchinfo.xml|PatchTimeCheck.dat|PatchPath.dat)
cache deny QUERY
 
#================================================= ========
# TAG: Refresh Pattern
#================================================= ========
# 1 year = 525600 mins, 1 month = 43200 mins, 1 day = 1440
#================================================= ========
 
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 1440 90% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 1440 90% 43200 ignore-no-cache ignore-no-store ignore-private override-expire override-lastmod reload-into-ims store-stale
 
refresh_pattern \.(ico|video-stats) 1440 90% 43200 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate store-stale
refresh_pattern \.etology\? 1440 90% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 1440 90% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 1440 90% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern patch.gemscool.*\.npz\? 1440 90% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*cp.*GrandChase/.* 43200 100% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private store-stale
refresh_pattern \.adtology\? 1440 90% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern fetch\.softnyx\.co\.id\/fetch.dll\? 1440 90% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.gstatic.com\/images\?*\.(jpg|jpeg|tiff|bmp|gif|png) 1440 90% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 43200 20% 43200 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale max-stale=10
refresh_pattern ^.*safebrowsing.*google 1440 90% 43200 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk|\.id) 1440 90% 43200 override-expire ignore-reload ignore-private store-stale
refresh_pattern ytimg\.com.*\.jpg 1440 90% 43200 override-expire ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 1440 90% 43200 override-expire ignore-reload store-stale
refresh_pattern garena\.com 1440 90% 43200 override-expire reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 1440 90% 43200 override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 1440 90% 43200 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 1440 90% 43200 reload-into-ims override-expire ignore-private store-stale
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 1440 90% 43200 reload-into-ims ignore-no-cache ignore-reload override-expire store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 1440 90% 43200 reload-into-ims ignore-no-cache ignore-reload override-expire store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 1440 90% 43200 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod store-stale
 
# ANTI VIRUS
refresh_pattern guru.avg.com/.*\.(bin) 1440 90% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern (avgate|avira).*(idx|gz)$ 1440 90% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky.*\.avc$ 1440 90% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern kaspersky 1440 90% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.nai.com/.*\.(gem|zip|mcs) 1440 90% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern ^http:\/\/liveupdate.symantecliveupdate.com.*\(zip) 1440 90% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
 
#Windows Update
refresh_pattern windowsupdate.com/.*\.(cab|exe) 10080 90% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern update.microsoft.com/.*\.(cab|exe) 10080 90% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
refresh_pattern download.microsoft.com/.*\.(cab|exe) 10080 90% 43200 ignore-no-cache ignore-no-store ignore-reload reload-into-ims store-stale
 
#images facebook
refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 1440 90% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 1440 90% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 1440 90% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 1440 90% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
 
#games facebook
refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 90% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.zynga.com.*\/ 10080 90% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.farmville.com.*\/ 10080 90% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.ninjasaga.com.*\/ 10080 90% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.mafiawars.com.*\/ 10080 90% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.crowdstar.com.*\/ 10080 90% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.popcap.com.*\/ 10080 90% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
 
#banner IIX
refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 1440 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/ads(1|2|3).kompas.com.*\/ 43200 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern kaskus\.co\.id*\.(jp(e?g|e|2)|gif|png|swf) 43200 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/img.kaskus.co.id.*\.(jpg|gif|png|swf) 43200 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
 
#IIX DOWNLOAD
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 90% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale ignore-auth
 
#All File
refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt|kom) 1440 90% 43200 ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 1440 90% 43200 ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 1440 999999% 43200 ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 1440 90% 43200 ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 1440 999999% 43200 ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
 
#ONLINE GAMES
 
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 10080 95% 43200 override-lastmod reload-into-ims store-stale
refresh_pattern . 0 95% 43200 override-lastmod reload-into-ims store-stale
 
#THE CACHE 40GB MAX
cache_dir aufs /var/spool/squid 40000 32 512
pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid
error_directory /usr/share/squid/errors/id-id
icon_directory /usr/share/squid/icons
mime_table /etc/squid/mime.conf
visible_hostname Hong.web.id
cache_mgr Ricky@net
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
cache_mem 8 MB
maximum_object_size 200 MB
maximum_object_size_in_memory 32 KB
quick_abort_min 0 KB
quick_abort_max 0 KB
range_offset_limit 0
icap_206_enable off
quick_abort_pct 100
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
pipeline_prefetch on
shutdown_lifetime 1 second
 
 
#DELAY-POOL
acl download src 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11 192.168.0.12 192.168.0.13 192.168.0.14 192.168.0.15 192.168.0.100
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_class 2 2
delay_parameters 2 -1/128000 19200/128000
delay_access 2 allow download
delay_access 2 deny all
delay_access 1 deny download
delay_access 1 allow all
 
#TIMEOUT
request_timeout 1 minute
negative_ttl 2 minutes
 
cache_effective_user proxy
cache_effective_group proxy
Jangan lupa tambahkan script di /etc/init.d/squid untuk memudahkan menjalankan squid (start|stop|restart)
root@ProxyServer:/home/hong# service squid stop
* Stopping Squid HTTP proxy squid * Waiting… * … [ OK ]
[ OK ]
root@ProxyServer:/home/hong# service squid start
* Starting Squid HTTP proxy squid 2012/06/04 20:43:17| WARNING: -D command-line option is obsolete.
[ OK ]
root@ProxyServer:/home/hong#
Ketik : vi /etc/init.d/squid dan copy & paste script dibawah ini:
#! /bin/sh
#
# squid Startup script for the SQUID HTTP proxy-cache.
#
# Version: @(#)squid.rc 2.20 01-Oct-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: squid
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Squid HTTP Proxy
### END INIT INFO
 
NAME=squid
DAEMON=/usr/sbin/squid
LIB=/usr/lib/squid
PIDFILE=/var/run/$NAME.pid
SQUID_ARGS="-D -YC"
 
[ ! -f /etc/default/squid ] || . /etc/default/squid
 
. /lib/lsb/init-functions
 
PATH=/bin:/usr/bin:/sbin:/usr/sbin
 
[ -x $DAEMON ] || exit 0
 
grepconf () {
w=" " # space tab
sq=/etc/squid/squid.conf
# sed is cool.
res=`sed -ne '
s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
t end;
d;
:end q' < $sq`
[ -n "$res" ] || res=$2
echo "$res"
}
 
grepconf2 () {
w=" " # space tab
sq=/etc/squid/$NAME.conf
# sed is cool.
res=`sed -ne '
s/^'$1'['"$w"']\+[^'"$w"']\+['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
t end;
d;
:end q' < $sq`
[ -n "$res" ] || res=$2
echo "$res"
}
 
#
# Try to increase the # of filedescriptors we can open.
#
maxfds () {
[ -n "$SQUID_MAXFD" ] || return
[ -f /proc/sys/fs/file-max ] || return 0
global_file_max=`cat /proc/sys/fs/file-max`
minimal_file_max=$(($SQUID_MAXFD + 4096))
if [ "$global_file_max" -lt $minimal_file_max ]
then
echo $minimal_file_max > /proc/sys/fs/file-max
fi
ulimit -n $SQUID_MAXFD
}
 
start () {
cdr=`grepconf2 cache_dir /var/spool/$NAME`
ctp=`grepconf cache_dir ufs`
 
case "$cdr" in
[0-9]*)
log_failure_msg "squid: squid.conf contains 2.2.5 syntax
- not starting!"
log_end_msg 1
exit 1
;;
esac
 
#
# Create spool dirs if they don't exist.
#
if [ -d "$cdr" -a ! -d "$cdr/00" ] || [ "$ctp" = "coss" -a ! -f "$cdr" ]
then
log_warning_msg "Creating squid cache structure"
$DAEMON $SQUID_ARGS -z
fi
 
if [ "$CHUID" = "" ]; then
CHUID=root
fi
 
maxfds
umask 027
start-stop-daemon --quiet --start \
--pidfile $PIDFILE \
--chuid $CHUID \
--exec $DAEMON -- $SQUID_ARGS < /dev/null
return $?
}
 
stop () {
PID=`cat $PIDFILE 2>/dev/null`
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name squid
#
# Now we have to wait until squid has _really_ stopped.
#
sleep 2
if test -n "$PID" && kill -0 $PID 2>/dev/null
then
log_action_begin_msg " Waiting"
cnt=0
while kill -0 $PID 2>/dev/null
do
cnt=`expr $cnt + 1`
if [ $cnt -gt 24 ]
then
log_action_end_msg 1
return 1
fi
sleep 5
log_action_cont_msg ""
done
log_action_end_msg 0
return 0
else
return 0
fi
}
 
case "$1" in
start)
log_daemon_msg "Starting Squid HTTP proxy" "squid"
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
stop)
log_daemon_msg "Stopping Squid HTTP proxy" "squid"
if stop ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
reload|force-reload)
log_action_msg "Reloading Squid configuration files"
$DAEMON -k reconfigure
;;
restart)
log_daemon_msg "Restarting Squid HTTP proxy" "squid"
stop
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
status)
status_of_proc -p "$PIDFILE" "$DAEMON" squid && exit 0 || exit $?
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart|s
tatus}"
exit 3
;;
esac
 
exit 0
Demikian sekedar catatan ringan saya mengenai cara install squid versi terbaru (3.2.0.17)
Catatan: sebelum menjalankan perintah2 diatas, pastikan ubuntu servernya sudah diupdate! (apt-get update & apt-get upgrade)

Tidak ada komentar:

Posting Komentar