Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### if squid running, stop it with :
- service squid stop
- ### delete all squid log in /var/log/squid
- ### delete cache in /cache
- wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.20-20160724-r14069.tar.gz
- tar xzvf squid-3.5.20-20160724-r14069.tar.gz
- wget -O squid_forgery.patch http://www.squid-cache.org/mail-archive/squid-users/201404/att-0240/squid_forgery.patch.txt
- cd squid-3.5.20-20160724-r14069
- patch -p0 <../squid_forgery.patch
- ./configure --prefix=/usr \
- --bindir=/usr/bin \
- --sbindir=/usr/sbin \
- --libexecdir=/usr/lib/squid \
- --sysconfdir=/etc/squid \
- --localstatedir=/var \
- --libdir=/usr/lib \
- --includedir=/usr/include \
- --datadir=/usr/share/squid \
- --mandir=/usr/share/man \
- --with-logdir=/var/log/squid \
- --with-pid-file=/var/run/squid.pid \
- --with-openssl \
- --enable-ssl-crtd \
- --enable-icmp \
- --enable-wccp \
- --enable-wccpv2 \
- --disable-kqueue \
- --disable-esi \
- --disable-arch-native \
- --disable-ipv6 \
- --enable-poll \
- --enable-ident-lookups \
- --enable-storeio=aufs,diskd,ufs,rock \
- --enable-underscores \
- --enable-http-violations \
- --enable-removal-policies=heap,lru \
- --enable-delay-pools \
- --enable-linux-netfilter \
- --enable-snmp \
- --enable-auth \
- --enable-auth-basic \
- --enable-auth-digest \
- --enable-auth-negotiate \
- --enable-auth-ntlm \
- --enable-log-daemon-helpers \
- --enable-url-rewrite-helpers \
- --enable-storeid-rewrite-helpers \
- --enable-build-info \
- --enable-eui \
- --enable-async-io=16 \
- --enable-unlinkd \
- --enable-internal-dns \
- --enable-epoll \
- --enable-select \
- --enable-cache-digests \
- --enable-forw-via-db \
- --enable-htcp \
- --enable-kill-parent-hack \
- --enable-icap-client \
- --enable-ecap \
- --enable-zph-qos \
- --with-dl \
- --with-filedescriptors=65536 \
- --with-large-files
- make
- make install
- chown -R nobody /var/log/squid
- chown -R nobody /cache
- wget http://www.measurement-factory.com/tmp/ecap/ecap_adapter_sample-1.0.0.tar.gz
- tar xzvf ecap_adapter_sample-1.0.0.tar.gz
- cd ecap_adapter_sample-1.0.0
- ### edit adapter_async.cc , find sleep(delay), replace with // sleep(delay) and save
- ./configure && make && make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement