Video Performa Mikrotik

Install Ubuntu Proxy Lusca Head 32

Make sure the following packages have been installed in your ubuntu 32

apt-get install squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9
And download the source lusca_fmi to ubuntu 32 belong to you


cd /usr/src

wget http://lusca-cache.googlecode.com/files/LUSCA_HEAD-r14809.tar.gz

Extract proxy Lusca his head

tar -zxvf LUSCA_HEAD-r14809.tar.gz Compile Lusca, enter the directory with the command LUSCA_HEAD-r14809

cd /usr/src/LUSCA_HEAD-r14809

./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

Then build Lusca proxy Head

Make && make install

Turn off the squid is running

squid -k shutdown

or

squid stop

or

service squid stop

or

/etc/init.d/squid stop

Change configurasinya with the configuration that has been in the optimization, and customize to your network.

cd /etc/squid

wget http://nst.web.id/squid.conf

Then grab the file also storeurl.pl put in /etc/squid

wget http://nst.web.id/storeurl.txt storeurl.txt be renamed in his way storeurl.pl
mv /etc/squid/storeurl.txt /etc/squid/storeurl.pl

Change permisionnya

chown proxy:proxy /etc/squid/storeurl.pl

chmod 777 /etc/squid/storeurl.pl

chmod 600 /etc/squid/squid.conf

Change the cache directory permition

chmod 777 /cache

chown proxy:proxy /cache

Make Swap for cache_dir

squid -z

or with the command

squid -f /etc/squid/squid.conf -z

Run squid

squid-N-d 1-D

0 komentar:

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More