# 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.9
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
Copyright 2010 BROTHER DOT COM
Theme designed by Bima Firewall
Blogger Templates by Blogger Template Place | supported by Bima
13 comments:
gak bisa om ...
gak bisa di mana A?
install berhasil bos, hanya ketika kita play video youtube, akan kita play lagi tidak HIT tapi seperti dari awal lagi, dan ketika kita tangkep pake IDM proses downloadnya dari awal biasanya klo HIT kan klik link download IDM langsung finish download karena ngambilnya dari cache... ada saran?
[code]
[1] 23280
echo@Alfidaa-Server:/etc/init.d$ 2012/07/08 11:23:59| strtokFile: /etc/squid/listblok.txt not found
2012/07/08 11:23:59| aclParseAclLine: WARNING: empty ACL: acl listblok url_regex -i "/etc/squid/listblok.txt"
2012/07/08 11:23:59| Starting Squid Cache version LUSCA_HEAD-r14940 for i686-pc-linux-gnu...
2012/07/08 11:23:59| Process ID 23281
2012/07/08 11:23:59| NOTICE: Could not increase the number of filedescriptors
2012/07/08 11:23:59| With 1024 file descriptors available
2012/07/08 11:23:59| Using epoll for the IO loop
2012/07/08 11:23:59| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2012/07/08 11:23:59| helperOpenServers: Starting 1 'storeurl.pl' processes
2012/07/08 11:23:59| logfileOpen: opening log /cache1/access.log
2012/07/08 11:23:59| Swap maxSize 10240000 + 8192 KB, estimated 788322 objects
2012/07/08 11:23:59| Target number of buckets: 39416
2012/07/08 11:23:59| Using 65536 Store buckets
2012/07/08 11:23:59| Max Mem size: 8192 KB
2012/07/08 11:23:59| Max Swap size: 10240000 KB
2012/07/08 11:23:59| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/07/08 11:23:59| Store logging disabled
2012/07/08 11:23:59| AUFS: /cache1: log '/cache1/swap.state' opened on FD 11
2012/07/08 11:23:59| AUFS: /cache1: tmp log /cache1/swap.state.new opened on FD 11
2012/07/08 11:23:59| Rebuilding storage in /cache1 (DIRTY)
2012/07/08 11:23:59| AUFS: /cache2: log '/cache2/swap.state' opened on FD 13
2012/07/08 11:23:59| AUFS: /cache2: tmp log /cache2/swap.state.new opened on FD 13
2012/07/08 11:23:59| Rebuilding storage in /cache2 (DIRTY)
2012/07/08 11:23:59| Using Least Load store dir selection
2012/07/08 11:23:59| Set Current Directory to /cache2/
2012/07/08 11:23:59| Loaded Icons.
2012/07/08 11:23:59| commBind: Cannot bind socket FD 15 family 2 to 192.168.2.1 port 3128: (98) Address already in use
FATAL: Cannot open HTTP Port
[/code]
apa yang belum bener ? mohon bantuannya
Punya saya kok ga bisa di make om. /tmp/LUSCA_HEAD-r14940$ make all
make: *** No rule to make target `all'. Stop.
tutor ini sudah saya test... dan berjalan normal pak... ga ada masalah.. coba di teliti lagi...
kenapa ya muncul keterangan seperti ini ...
oot@proxyku:/var/log/squid# 2012/08/29 17:02:13| Starting Squid Cache version LUSCA_HEAD-r14940 for x86_64-unknown-linux-gnu...
2012/08/29 17:02:13| Process ID 21303
2012/08/29 17:02:13| NOTICE: Could not increase the number of filedescriptors
2012/08/29 17:02:13| With 1024 file descriptors available
2012/08/29 17:02:13| Using epoll for the IO loop
2012/08/29 17:02:13| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2012/08/29 17:02:13| helperOpenServers: Starting 1 'storeurl.pl' processes
2012/08/29 17:02:13| logfileOpen: opening log /var/log/squid/access.log
2012/08/29 17:02:13| Swap maxSize 15360000 + 524288 KB, estimated 1221868 objects
2012/08/29 17:02:13| Target number of buckets: 61093
2012/08/29 17:02:13| Using 65536 Store buckets
2012/08/29 17:02:13| Max Mem size: 524288 KB
2012/08/29 17:02:13| Max Swap size: 15360000 KB
2012/08/29 17:02:13| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/08/29 17:02:13| Store logging disabled
2012/08/29 17:02:13| AUFS: /cache1: log '/cache1/swap.state' opened on FD 11
2012/08/29 17:02:13| AUFS: /cache1: tmp log /cache1/swap.state.new opened on FD 11
2012/08/29 17:02:13| Rebuilding storage in /cache1 (DIRTY)
2012/08/29 17:02:13| Using Least Load store dir selection
2012/08/29 17:02:13| Current Directory is /var/log/squid
2012/08/29 17:02:13| Loaded Icons.
2012/08/29 17:02:13| commBind: Cannot bind socket FD 13 family 2 to 0.0.0.0 port 3128: (98) Address already in use
FATAL: Cannot open HTTP Port
mas pas di cek keluar begini FATAL: Cannot open HTTP Port yg harus di edit dibagian man??
HTTP Port defaultnya 3128 jadi bila cannot open HTTP port di ganti 8080
HTTP port default'y 3128, jadi bila error cannot open http port di ubah saja ke port 8080 dan jangan di lupa pakai transparan... OK
diatas dah beres mas sekarang tinggl ini tiap cek log kok masih banyak TCP_MISS/ saranya dong mas??? ym jamilmu@yahoo.com
pake IP berapa ya gan.........
setelah saya coba ikuti panduan dari awal sampai akhir saat saya cek terjadi kejadian yang sama dengan Comment mas Minggu Dijanuary, yaitu terjadi FATAL: Cannot open HTTP Port. saya dah coba ganti dengan 8080 tapi masih terjadi FATAl. kira-kira apa yang mesti di lakukan ya mas..atau saya salah mengantinya...?
Post a Comment