Install & Config squid-2.7.STABLE9 UbunSer 12.04

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 01 Jan 2014, 01:55

SELAMAT TAHUN BARU 2014 untuk teman-teman FUI semua khusuunya yg Online saat ini :)
Topik Pertanyaan Pertama Tahun 2014
Saya memcoba Install squid-2.7.STABLE9 di Ubuntu Server 12.04.3 LTS
dan terkendala dalam kelanjutan konfigurasinya, saya harap teman2 dan master2 FUI bersedia membantu karna kepercayaan saya soal tukar pendapat masalah Ubuntu cuma di Forum ini :blush:

saya memulai dari sini setelah semua update yg diperlukan sudah selesai
Tampilkan
# apt-get install gcc build-essential
# wget http://www.squid-cache.org/Versions/v2/ ... E9.tar.bz2
# tar xvf squid-2.7.STABLE9.tar.bz2 && cd squid-2.7.STABLE9
#

sampai disini sukses sepertinya

mesin yg sy gunakan AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
dengan compile seperti dibawah ini
Tampilkan
CHOST="x86_64-pc-linux-gnu"CFLAGS="-march=k8 -O2 -pipe"CXXFLAGS="${CFLAGS}" \
./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-gnuregex --enable-async-io=24 --with-aufs-threads=24 \
--with-pthreads --with-aio --with-dl --enable-storeio=aufs,null \
--enable-removal-policies=heap --enable-icmp --enable-delay-pools --disable-wccp \
--enable-snmp --enable-cache-digests --enable-default-err-language=English \
--enable-err-languages=English --enable-linux-netfilter --disable-ident-lookups \
--with-maxfd=65535 --enable-follow-x-forwarded-for --enable-large-cache-files \
--with-large-files --enable-referer-log

dan juga tidak ada error

lanjut saya lakukan
Tampilkan
make
make install

dan sepertinya tdk ada masalah :)
squid -v hasinya
Tampilkan
root@proxy:~# squid -v
Squid Cache: Version 2.7.STABLE9
configure options: '-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-gnuregex' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--with-aio' '--with-dl' '--enable-storeio=aufs,null' '--enable-removal-policies=heap' '--enable-icmp' '--enable-delay-pools' '--disable-wccp' '--enable-snmp' '--enable-cache-digests' '--enable-default-err-language=English' '--enable-err-languages=English' '--enable-linux-netfilter' '--disable-ident-lookups' '--with-maxfd=65535' '--enable-follow-x-forwarded-for' '--enable-large-cache-files' '--with-large-files' '--enable-referer-log'

setelah itu saya sangat ragu untuk melanjutkan karna tidak memahami perintah2 selanjutnya
dengan Pengaturan HDD, pengaturan cache seperti dibawah ini

Tampilkan
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 30G 1.7G 27G 6% /
udev 3.7G 4.1k 3.7G 1% /dev
tmpfs 1.5G 254k 1.5G 1% /run
none 5.3M 0 5.3M 0% /run/lock
none 3.8G 0 3.8G 0% /run/shm
/dev/sda1 496M 51M 421M 11% /boot
/dev/sdb5 45G 58k 43G 1% /cache4
/dev/sdb6 45G 58k 43G 1% /cache5
/dev/sdb7 45G 58k 43G 1% /cache6
/dev/sda9 45G 58k 43G 1% /cache2
/dev/sdb8 45G 58k 43G 1% /cache7
/dev/sda10 45G 58k 43G 1% /cache3
/dev/sda6 30G 578M 28G 3% /home
/dev/sda8 45G 58k 43G 1% /cache1


Mohon bantuan pada teman2 dan Mater2 FUI semua langkah selanjutnya yang harus saya lakukan :)
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 01 Jan 2014, 03:36

akhirnya salah juga :confused:
Tampilkan
2014/01/01 03:32:40| Creating Swap Directories
FATAL: Failed to make swap directory /cache1/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache2/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache3/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache4/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache5/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache6/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache7/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
root@proxy:~#

dimana salahnya Teman ??
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby nif » 01 Jan 2014, 06:28

ini om;
bellec wrote:FATAL: Failed to make swap directory ... : (13) Permission denied

silahkan diteliti lagi pengaturan permission-nya.
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 01 Jan 2014, 12:41

Terimakasih untuk responnya Mas Nif
saya sudah coba untuk pengaturan permission-nya.
seperti topik kasus di FUI ini juga disini saya coba
Tampilkan
root@proxy:~# ls -la /cache1
total 8
dr-xr-xr-x 1 proxy proxy 0 Jan 1 1970 .
drwxr-xr-x 29 root root 4096 Dec 31 10:07 ..
root@proxy:~#

dan permissionnya
Tampilkan
chown -R proxy.proxy /cache1
chown -R proxy.proxy /cache2
chown -R proxy.proxy /cache3
chown -R proxy.proxy /cache4
chown -R proxy.proxy /cache5
chown -R proxy.proxy /cache6
chown -R proxy.proxy /cache7

dan
Tampilkan
chmod +x /cache1
chmod +x /cache2
chmod +x /cache3
chmod +x /cache4
chmod +x /cache5
chmod +x /cache6
chmod +x /cache7


dan masih belum bisa, mohon bantuan untuk langkah2 saya selanjutnya :confused:
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby nif » 01 Jan 2014, 13:56

kalo chmod +x itu untuk menambah permission eksekusi om.
untuk permission write, gunakan chmod +w

cmiiw
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 01 Jan 2014, 16:35

Terimakasih Mas Nif
sekarang sudah bisa dengan mencoba panduan Mas,
Tampilkan
root@proxy:~# chmod +w /cache1
root@proxy:~# chmod +w /cache2
root@proxy:~# chmod +w /cache3
root@proxy:~# chmod +w /cache4
root@proxy:~# chmod +w /cache5
root@proxy:~# chmod +w /cache6
root@proxy:~# chmod +w /cache7
root@proxy:~# squid -z
2014/01/01 16:22:55| Creating Swap Directories
root@proxy:~# service squid start
* Starting Squid HTTP proxy squid [ OK ]
root@proxy:~#


tapi permasalahannya tidak bisa Inet melalui Proxy, kalau didisable di pengaturan NAT mikrotik baru bisa ?
langkah selanjutnya config apa Mas nif untuk saya catat dan pelajari
agar inet bisa melalui squid proxy ? :confused:
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby nif » 02 Jan 2014, 08:07

bagus kalo masalah permission sudah solved.
tapi mengenai konfigurasi squid, itu bukan bidang saya. jadi nanti biar dijawab oleh yang lebih tau :)
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 02 Jan 2014, 12:04

Ok mas sudah bisa, tapi hny dgn config squid sprti ini
Tampilkan
strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
logformat squid1 %{Referer}>h %ru
access_log /var/log/squid/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
storeurl_access deny reddeny

http_port 3128 transparent
strip_query_terms off
cache_mem 20 MB
server_http11 on
maximum_object_size_in_memory 1 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
maximum_object_size 128000 KB
cache_swap_low 90%
cache_swap_high 95%

cache_dir aufs /cache1 44500 64 256
cache_dir aufs /cache2 44500 64 256
cache_dir aufs /cache3 44500 64 256
cache_dir aufs /cache4 44500 64 256
cache_dir aufs /cache5 44500 64 256
cache_dir aufs /cache6 44500 64 256
cache_dir aufs /cache7 44500 64 256


#access_log /var/log/squid/access.log
cache_log /dev/null
cache_log /var/log/squid/cache.log
cache_store_log /dev/null

acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl purge method PURGE
acl CONNECT method CONNECT
acl advertise url_regex -i "/etc/squid/ads.block"
deny_info http://lusca.indolini.org/fill.png advertise
http_access deny advertise

acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$

acl bokep url_regex "/etc/squid/block.txt"
acl nocache_site url_regex -i "/etc/squid/nocache_site.txt"
cache deny nocache_site
acl all src 0.0.0.0/0
acl jaringan src 192.168.0.0/16
acl jaringan src 172.16.0.0/12
acl jaringan src 10.0.0.0/8

http_access deny bokep
http_access allow manager
http_access allow localhost
http_access allow purge localhost
http_access deny purge
http_access allow jaringan
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all

#acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
#cache deny thunder_lst
#cache_peer 172.16.10.1 parent 8080 0 proxy-only no-digest
#dead_peer_timeout 2 seconds
#cache_peer_access 172.16.10.1 allow thunder_lst
#cache_peer_access 172.16.10.1 deny all

#include /etc/squid/tc3.conf

#snmp_port 3401
#acl snmppublic snmp_community public
#snmp_access allow snmppublic all

#######################################
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\$

acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
########
acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.range\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-$
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-$
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-$
acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ www\.tube8\.com\/(.*)\/
acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)

acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .redtube.com .cdn.dailymotion.com

acl dontrewrite url_regex redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]*
acl getmethod method GET

storeurl_access allow videocache_allow_url
storeurl_access allow videocache_allow_dom

storeurl_access deny reddeny
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
storeurl_access deny all
storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 5
storeurl_rewrite_concurrency 10

max_stale 8 week
#refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 86400 999999% 86400 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-au$
################################

#refresh_pattern \.*\.(kom|stg|xtp|xt|nzp) 604800 999999% 604800 override-expire ignore-reload ignore-no-cache store-stale
##refresh_pattern ^http://122.102.49.202/.* 43800 90% 43800 override-expire ignore-reload store-stale ignore-private ignore-must-revalidate negative-ttl=0

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 40% 40320

via off
header_access From deny all
header_access Server deny all
header_access WWW-Authenticate deny all
header_access Link deny all
header_access Cache-Control deny all
header_access Proxy-Connection deny all
header_access X-Cache deny all
header_access X-Cache-Lookup deny all
header_access Via deny all
header_access Forwarded-For deny all
header_access X-Forwarded-For deny all
header_access Pragma deny all
header_access Keep-Alive deny all
forwarded_for off

max_filedescriptors 65536
fqdncache_size 4096
ipcache_low 98
ipcache_high 99
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
shutdown_lifetime 5 seconds
memory_pools off
buffered_logs off
log_icp_queries off
logfile_rotate 7
log_fqdn off
forwarded_for off
icp_hit_stale on
query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 2 minutes
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
##high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off
cache deny redirec
cache_mgr proxy
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy
unique_hostname proxy
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136


hasil dari config diatas cache.log dalam 4 jam nyala langsung penuh dan squid langsung "ngambek" :D
dengan refresh_pattern cuma 4 biji :D

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 40% 40320

4 biji itu karna squid tidak berhasil membaca refresh_pattern selain yang diatas,

Mohon koreksinya Mas klu ada yang salah dengan squid.conf di atas,
User avatar
sayed
Posts: 137
Joined: 21 Jul 2011, 16:19
Location: Lhokseumawe, Aceh
Contact:

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby sayed » 17 Jan 2014, 16:06

Tampilkan
chmod +x /cache1
chmod +x /cache2
chmod +x /cache3
chmod +x /cache4
chmod +x /cache5
chmod +x /cache6
chmod +x /cache7


dan masih belum bisa, mohon bantuan untuk langkah2 saya selanjutnya :confused:
[/quote]
coba untuk perintah chmod +x diganti dengan chmod 777 (sesuaikan)
soalnya setiap directory cache bukan mode execute tapi read & write :D


untuk refresh pattern nya coba buat gini mas
Tampilkan
refresh_pattern -i \.flv$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.mp3$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.mp4$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.swf$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.gif$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.jpg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.jpeg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.exe$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
# 1 year = 525600 mins, 1 month = 10080 mins, 1 day = 1440
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern \.(ico|video-stats) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
refresh_pattern \.etology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern galleries\.video(\?|sz) 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern brazzers\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern \.adtology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 10080 20% 10080 ignore-no-cache ignore-private override-expire ignore-reload ignore-auth negative-ttl=40320 max-stale=10
refresh_pattern ^.*safebrowsing.*google 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth negative-ttl=10080
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 10080 80% 10080 override-expire ignore-reload ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.jpg 10080 80% 10080 override-expire ignore-reload
refresh_pattern images\.friendster\.com.*\.(png|gif) 10080 80% 10080 override-expire ignore-reload
refresh_pattern garena\.com 10080 80% 10080 override-expire reload-into-ims
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 override-expire ignore-reload
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 10080 80% 10080 ignore-no-cache override-expire override-lastmod
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 reload-into-ims override-expire ignore-private
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
# Images Facebook
refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
# Semua jenis file
refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 10080 95% 10080 override-lastmod reload-into-ims
refresh_pattern . 1440 95% 10080 override-lastmod reload-into-ims
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 19 Jan 2014, 00:26

Terimakasih Mas, saya coba dulu ya reffresh Pattern nya ya,
memang kadang2 sudah HIT untuk FB misalnya, tapi lewat satu hari/kalau mesin proxy mati, ulang lagi TCP_MISS untuk konten yang pernah TCP_HIT, ngak tau dimana salahnya :confused:
User avatar
madisa
Posts: 1
Joined: 26 Mar 2013, 15:54
Location: blora indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby madisa » 20 Jan 2014, 09:19

mas bellec bagaiman sudah hit trus apa tetap kondisi yang sama ?
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 23 Jan 2014, 19:52

udah bisa mas, terimakasih mas?
satu lagi pertanyaan sya mas,
kalau disaat booting mesin proxy tidak bisa masuk ke Linux, Ubuntu 12.04 generic-pae
cuma bisa masuk ke Linux, Ubuntu 12.04 generic-pae (recoveri mode)
tapi lama banget sampai ke login:
bagaimana cara mengatasinya Mas??

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 0 guests