Super Proxy Lusca Squid Ubuntu v3
sudo apt-get updateDonwload LUSCA_HEAD-r14809 + Patch
sudo apt-get install -y squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9
cd /tmpTahap Configure
wget -c http://superproxy.googlecode.com/files/LUSCA_HEAD-r14809-patch.tar.bz2
tar -xvjf LUSCA_HEAD-r14809-patch.tar.bz2
cd LUSCA_HEAD-r14809
make clean
./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=65536Install Lusca Head
makeDownload Service Squid
sudo make install
cd /etc/init.d/Buat direktori tunning lusca squid:
mv squid squid.original
wget -c http://superproxy.googlecode.com/files/squid.init.ubuntu
mv squid.init.ubuntu squid
sudo chmod +x /etc/init.d/squid
/etc/init.d/squid stop
mkdir -p /usr/local/share/squidKonfigurasi cache direktory squid, disini saya menggunakan 19.5 GB untuk masing-masing cache direktory squid maka hiraki folder cache squid adalah dengan rumusan sebagai berikut:
chmod 777 /usr/local/share/squid
cd /usr/local/share/squid
wget http://superproxy.googlecode.com/files/storeurl.pl
wget http://superproxy.googlecode.com/files/tunning.conf
wget http://superproxy.googlecode.com/files/refresh.conf
mv /etc/squid/squid.conf /etc/squid/squid.conf.original
cd /etc/squid
wget http://superproxy.googlecode.com/files/squid.conf
chmod 644 squid.conf
nano squid.confPemberian akses partisi / folder cache untuk squid
# =========== 19.5 GB ==========
cache_dir aufs /cache1 16357 38 256
cache_dir aufs /cache2 16357 38 256
# =========== 19.5 GB ==========
chown proxy:proxy /cache1Tunnelling squid cache
chown proxy:proxy /cache2
chmod 777 /cache1
chmod 777 /cache2
chown proxy:proxy /usr/local/share/squid/tunning.confBuild squid direktori dan debugging squid
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
squid -f /etc/squid/squid.conf -zSelesei...
sudo /etc/init.d/squid restart
squid -NDd1
squidclient mgr:info
tail -f /var/log/squid/access.log | ccze
Restart mesin proxy anda
shutdown -r now
tail -f /cache1/access.log | ccze
0 komentar:
Posting Komentar