Selasa, 26 Maret 2013
Super Proxy Lusca Squid Ubuntu v3
1
2
| sudo apt-get update sudo apt-get install -y squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 |
1
2
3
4
5
6
| cd /tmp 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 |
1
2
| ./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 |
1
2
3
| make sudo make install |
1
2
3
4
5
6
| cd /etc/init.d/ 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 |
1
2
3
4
5
6
7
8
9
10
11
| mkdir -p /usr/local/share/squid 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 |
1
2
3
4
5
6
| nano squid.conf # =========== 19.5 GB ========== cache_dir aufs /cache1 16357 38 256 cache_dir aufs /cache2 16357 38 256 # =========== 19.5 GB ========== |
1
2
3
4
5
| chown proxy:proxy /cache1 chown proxy:proxy /cache2 chmod 777 /cache1 chmod 777 /cache2 |
1
2
3
4
5
6
7
| 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 |
1
2
3
4
5
6
| 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 mesin proxy anda
1
2
3
| shutdown -r now tail -f /cache1/access.log | ccze |
Selasa, 05 Maret 2013
| ||||||||||||
|
Langganan:
Postingan (Atom)
Blog Archive
About Me
- Unknown
Selamat Datang Di_Blog Ini
Diberdayakan oleh Blogger.