Kamis, 14 Juni 2012

Super Proxy Lusca Ubuntu 12.04 LTS



# sudo apt-get update
# sudo apt-get install squid
# sudo apt-get install squid squidclient squid-cgi
# sudo apt-get install gcc
# sudo apt-get install build-essential
# sudo apt-get install sharutils
# sudo apt-get install ccze
# sudo apt-get install libzip-dev
# sudo apt-get install automake1.
 
Download LUSCA_HEAD-r14809:

# cd /tmp
# wget http://my-bima-firewall.googlecode.com/files/LUSCA_HEAD-r14940.tar.gz
# tar xvf  LUSCA_HEAD-r14940.tar.gz
# cd LUSCA_HEAD-r14940
 
Compile, configure dan install Lusca Squid dengan perintah berikut:
 
./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
 
# make
# sudo make install
 
Konfigurasi dan Tunnelling Lusca Squid
 
# cd /etc/squid
# mv squid.conf squid.conf.original
# wget http://my-bima-firewall.googlecode.com/files/squid.conf
# wget http://my-bima-firewall.googlecode.com/files/storeurl.pl
# wget http://my-bima-firewall.googlecode.com/files/tunning.conf
 
# chown proxy:proxy /cache1
# chown proxy:proxy /cache2
# chmod 777 /cache1
# chmod 777 /cache2
# chown proxy:proxy /etc/squid/storeurl.pl
# chmod 777 /etc/squid/storeurl.pl
 
Membuat folder-folder swap/cache di dalam folder cache yang telah ditentukan dengan perintah:

# squid -f /etc/squid/squid.conf -z
 
Membuat service controller Lusca Squid

# cd /etc/init.d
# mv squid squid.init.original
# wget http://my-bima-firewall.googlecode.com/files/squid
# sudo chmod +x /etc/init.d/squid 
# chmod 777 squid
 



Jika tidak terdapat error jalankan squid:

# sudo /etc/init.d/squid restart

Periksa konfigurasi squid

# squid -NDd1 &

Reboot/restart CPU Ubuntu anda...

# shutdown -r now  
sumber :  http://brotherdotcom.blogspot.com/2012/05/super-proxy-lusca-ubuntu-1204-lts.html

Related Posts Plugin for WordPress, Blogger...

Berita Populer