saya anggap anda semua sudah berhasil install ubuntu 12.04.2 lts 64bit di komputer masing-masing
masuk ke rootnya
### update ubuntunya dan install packet2 yang dibutuhkan untuk lusca_fmi
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install squid -y
apt-get install squid squidclient squid-cgi -y
apt-get install gcc -y
apt-get install build-essential -y
apt-get install sharutils -y
apt-get install ccze -y
apt-get install libzip-dev -y
apt-get install automake1.9 -y
apt-get install libfile-readbackwards-perl
### remove squid3 yang ikut terinstall saat update ubuntu
apt-get remove squid3
apt-get remove --purge squid3
### install lusca_fminya
wget http://proxy-ku.googlecode.com/files/LUSCA_FMI.tar.gz
tar xzvf LUSCA_FMI.tar.gz
cd LUSCA_FMI/
make distclean
### compile Lusca_FMInya
./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-http-gzip
--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 && make install
### install perintah squid autostart dan stop
cd /etc/init.d/
wget http://proxy-ku.googlecode.com/files/squid
### beri permision untuk squid autostart dan stopnya
chmod +x /etc/init.d/squid
/etc/init.d/squid stop
### setting squid.conf dan storeurl.pl
cd /etc/squid/
copy squid.conf yang di http://www.facebook.com/download/preview/429491200494513
ambil storeurl.pl nya di https://tempat-sampah.googlecode.com/svn-history/r59/storeurl.pl
### beri permision untuk squid.conf dan storeurl.pl
chown proxy:proxy /etc/squid/squid.conf
chmod 777 /etc/squid/squid.conf
chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl
### beri permision cache nya
chown proxy:proxy /cache
chmod 777 /cache
kalo ada banyak direcktory cachenya tinggal ditambahin aja cache1 atau cache2 dan seterusnya
### buat access.log cache.log dan yt.log nya
cd /var/log/
mkdir squid
cd /var/log/squid/
touch access.log
touch cache.log
touch yt.log
chown proxy:proxy access.log
chown proxy:proxy cache.log
chown proxy:proxy yt.log
chmod 777 access.log
chmod 777 cache.log
chmod 777 yt.log
### build squidnya
squid -f /etc/squid/squid.conf -z
squid -NDd1
/etc/init.d/squid restart
### reboot squidnya
reboot
### setting nat di mikrotiknya
# ip proxy : 192.168.0.2
# ip client/lan : 192.168.1.1/24
/ip firewall address
add list=proxy-list address=192.168.0.0/24 (ip subnet proxy)
/ip firewall nat
add chain=dstnat src-address=192.168.1.0/24 (ip subnet client/lan) protocol=tcp dst-port=80,8080 src-address-list=!proxy action=dst-nat to-address=192.168.0.2 to-port=3128 comment="Direct to Proxy"
/ip firewall mangle
add chain=forward DSCP-Tos=12 action=mark-packet new-packet-mark=Proxy-HIT
/queues
add name=proxy-hit parent=global-out packet-mark=Proxy-HIT queue-type=default priority=3 max-limit=50M
### setelah reboot pc ubuntu cek apakah squid sudah jalan
/etc/init.d/squid status
tail -f /var/log/squid/access.log | ccze
Sunday, 29 September 2013
Install Proxy Lusca di ubuntu 12.04
Posted By: Rufaidah-network - 20:24About Rufaidah-network
Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment
Subscribe to:
Post Comments (Atom)
Popular
Tags
Videos
0 komentar:
Post a Comment