Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- www.ziddu.com/download/19098635/AdvanceSquidcache_dirCalculator.zip.html
- [SQUID] Performance showcase ( text mode / squidclient)
- bagi2 info performa squid donk...... sekaligus membagi resep2 nya dengan menyertakan squid.conf
- saya duluan aja deh....
- untuk performa squid
- Connection information for squid:
- Number of clients accessing cache: 3
- Number of HTTP requests received: 38682
- Number of ICP messages received: 0
- Number of ICP messages sent: 0
- Number of queued ICP replies: 0
- Number of HTCP messages received: 0
- Number of HTCP messages sent: 0
- Request failure ratio: 0.00
- Average HTTP requests per minute since start: 119.8
- Average ICP messages per minute since start: 0.0
- Select loop called: 872460 times, 22.197 ms avg
- Cache information for squid:
- Request Hit Ratios: 5min: 51.6%, 60min: 46.2%
- Byte Hit Ratios: 5min: 23.2%, 60min: 21.2%
- Request Memory Hit Ratios: 5min: 3.4%, 60min: 1.6%
- Request Disk Hit Ratios: 5min: 25.6%, 60min: 33.1%
- Storage Swap size: 1343492 KB
- Storage Mem size: 6136 KB
- Mean Object Size: 18.58 KB
- Requests given to unlinkd: 0
- Median Service Times (seconds) 5 min 60 min:
- HTTP Requests (All): 0.28853 0.72387
- Cache Misses: 1.81376 1.81376
- Cache Hits: 0.00091 0.00091
- Near Hits: 0.80651 0.94847
- Not-Modified Replies: 0.00000 0.00091
- DNS Lookups: 0.08717 0.19488
- ICP Queries: 0.00000 0.00000
- Resource usage for squid:
- UP Time: 19366.304 seconds
- CPU Time: 72.189 seconds
- CPU Usage: 0.37%
- CPU Usage, 5 minute avg: 0.41%
- CPU Usage, 60 minute avg: 0.39%
- Process Data Segment Size via sbrk(): 20024 KB
- Maximum Resident Size: 0 KB
- Page faults with physical i/o: 0
- Memory usage for squid via mallinfo():
- Total space in arena: 20024 KB
- Ordinary blocks: 17302 KB 1347 blks
- Small blocks: 0 KB 0 blks
- Holding blocks: 1624 KB 4 blks
- Free Small blocks: 0 KB
- Free Ordinary blocks: 2721 KB
- Total in use: 18926 KB 87%
- Total free: 2721 KB 13%
- Total size: 21648 KB
- Memory accounted for:
- Total accounted: 11977 KB
- memPoolAlloc calls: 6013005
- memPoolFree calls: 5840318
- File descriptor usage for squid:
- Maximum number of file descriptors: 1024
- Largest file desc currently in use: 43
- Number of file desc currently in use: 31
- Files queued for open: 0
- Available number of file descriptors: 993
- Reserved number of file descriptors: 100
- Store Disk files open: 2
- IO loop method: epoll
- Internal Data Structures:
- 72461 StoreEntries
- 1132 StoreEntries with MemObjects
- 1124 Hot Object Cache Items
- 72322 on-disk objects
- rata2 hit nya 30%-70% naek turun.......
- itu baru running 2 hari..... mudah2an klo da 1 mingguan lebih stabil reportnya... dan terlihat kemampuan squidnya....
- ini squid.conf saya
- http_port 3128
- icp_port 3130
- hierarchy_stoplist cgi-bin ?
- acl QUERY urlpath_regex cgi-bin \?
- no_cache deny QUERY
- cache_mem 6 MB
- cache_swap_low 98
- cache_swap_high 99
- maximum_object_size 64 MB
- maximum_object_size_in_memory 64 KB
- ipcache_size 8192
- ipcache_low 98
- ipcache_high 99
- fqdncache_size 8192
- cache_mgr admin@hotlink-id.net
- cache_replacement_policy heap LFUDA
- memory_replacement_policy heap GDSF
- cache_dir aufs /cache 12000 28 256
- cache_dir aufs /var/spool/squid 12000 28 256
- cache_access_log /var/log/squid/access.log
- #cache_access_log none
- cache_log /var/log/squid/cache.log
- cache_store_log none
- emulate_httpd_log off
- pid_filename /var/run/squid.pid
- mime_table /usr/share/squid/mime.conf
- log_fqdn off
- memory_pools off
- client_netmask 255.255.255.255
- ftp_list_width 32
- ftp_passive on
- ftp_sanitycheck on
- refresh_pattern ^ftp: 40320 95% 241920 reload-into-ims
- refresh_pattern . 120 80% 14400 reload-into-ims override-lastmod
- quick_abort_min 0
- quick_abort_max 0
- quick_abort_pct 98
- negative_ttl 2 minutes
- half_closed_clients off
- read_timeout 15 minutes
- client_lifetime 2 hours
- pconn_timeout 60 seconds
- request_timeout 1 minutes
- shutdown_lifetime 10 seconds
- positive_dns_ttl 60 seconds
- negative_dns_ttl 30 seconds
- acl all src 0.0.0.0/0.0.0.0
- acl manager proto cache_object
- acl localhost src 127.0.0.1
- acl lan src 192.168.5.0/24
- acl to_localhost dst 127.0.0.0/8
- acl PURGE method PURGE
- acl POST method POST
- acl IpAddressOnly url_regex ^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/$
- acl IpAddressOnly url_regex ^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$
- acl GETONLY method GET
- acl VIRUS urlpath_regex winnt/system32/cmd.exe?
- acl SSL_ports port 443 563
- acl Safe_ports port 80 # http
- acl Safe_ports port 21 # ftp
- acl Safe_ports port 443 563 # https, snews
- acl Safe_ports port 70 # gopher
- acl Safe_ports port 210 # wais
- acl Safe_ports port 1025-65535 # unregistered ports
- acl Safe_ports port 280 # http-mgmt
- acl Safe_ports port 488 # gss-http
- acl Safe_ports port 591 # filemaker
- acl Safe_ports port 777 # multiling http
- acl CONNECT method CONNECT
- acl snmppublic snmp_community public
- # Hotmail workaround
- header_access Accept-Encoding deny all
- http_access allow localhost
- http_access allow lan
- http_access allow manager lan
- http_access allow PURGE localhost
- http_access deny manager
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- http_access deny PURGE
- http_access deny VIRUS
- http_access deny all
- http_reply_access allow all
- icp_access allow lan
- icp_access deny all
- miss_access allow lan
- miss_access deny all
- cache_effective_user proxy
- cache_effective_group proxy
- visible_hostname proxy.hotlink.net
- unique_hostname proxy.hotlink.net
- logfile_rotate 7
- forwarded_for on
- icp_hit_stale on
- log_icp_queries off
- query_icmp on
- buffered_logs off
- strip_query_terms off
- icon_directory /usr/share/squid/icons
- error_directory /usr/share/squid/errors/English
- store_avg_object_size 13 KB
- store_objects_per_bucket 10
- client_db on
- snmp_port 3401
- snmp_access allow snmppublic lan
- snmp_access deny all
- coredump_dir /cache01
- reload_into_ims on
- pipeline_prefetch on
- ie_refresh on
- vary_ignore_expire on
- ayo yang laen nyusul ya....
- #################################
- default config squid tidak di dedikasikan utk caching dynamic content, terutama utk file2 dynamic (kayak youtube dan google addssense dll) file2 itu biasanya membuat penuh cache tapi karena content dynamic oleh squid pasti akan dianggap miss dan akan mendownload lagi jadi bisa membuat posioning cache
- untuk update squid ke lusca silahkan ikuti cara2 ini (contoh utk redhat base & freebsd base)
- cara2nya (pake putty aja enak), apa itu puty silahkan baca disini :
- untuk keluarga redhat-5 (centos-5.x, fedora, clearOS dll)
- stop dulu servis squid nya
- /etc/init.d/squid stop
- backup dulu squid.conf nya di /etc/squid/squid.conf
- delet squid lama
- rpm -e squid-xxx(versi squid)
- delete file di directory cache_dir
- ex:
- rm -rf /cache/*
- download package lusca
- NEW LUSCA UBUNTU-64 BIT (SVN checkout 24 Maret 2010)
- hxxp://squid-proxy-pkg.googlecode.com/files/deb-lusca-r14499-64.tar.bz2
- NEW LUSCA Release 14410 (SVN checkout 16 February 2010)
- hxxp://squid-packge.googlecode.com/files/LUSCA_HEAD-r14410-1_el5.i386.rpm
- hxxp://squid-packge.googlecode.com/files/LUSCA_HEAD-r14410-1_el5.x86_64.rpm
- wget hxxp://squid-packge.googlecode.com/files/LUSCA_HEAD-r14371-1_el5.i386.rpm
- trus di intstall
- rpm -Uvh LUSCA_HEAD-r14371-1_el5.i386.rpm
- trus download file2 confignya
- cd /etc/squid/
- wget hxxp://squid-proxy-pkg.googlecode.com/files/squid.conf
- wget hxxp://squid-proxy-pkg.googlecode.com/files/storeurl-el5.pl
- wget hxxp://squid-proxy-pkg.googlecode.com/files/tunning-el5.conf
- chmod +x storeurl-el5.pl
- chown squid:squid tunning-el5.conf
- chown squid:squid storeurl-el5.pl
- dan silahkan sesuaikan configurasi cache_dir,allow netlocal dll di tempat anda di file squid.conf
- update tunning sysctl.conf
- cd /etc/
- wget hxxp://squid-packge.googlecode.com/files/sysctl.conf-el5
- mv sysctl.conf-el5 sysctl.conf
- rebuild cache
- cek configurasi
- squid -k parse
- jika tidak ada error, rebuild cache swap
- squid -z
- start servis squid
- /etc/init.d/squid start
- catatan:
- dengan 6 client aktif perhari saja, cache swap bisa mencapai 1 Gb perhari, dan lusca hanya support aufs dan coss, tidak support ufs dan diskd (obsolete)
- sources LUSCA rpm : hxxp://squid-packge.googlecode.com/files/LUSCA_HEAD-r14371-1_el5.src.rpm
- utk keluarga freebsd (pfsense ):
- stop dulu servis squidnya (bisa lewat web kalo di pfsense)
- delete directory cache_dir (default di /var/squid/cache)
- rm -rf /var/squid/cache/*
- delet dulu squid lama
- pkg_delete squid\*
- install lusca
- update release from svn lusca-head-r14410
- hxxp://squid-packge.googlecode.com/files/lusca-head-r14410_1.tbz
- pkg_add -rv hxxp://squid-proxy-pkg.googlecode.com/files/freebsd-lusca-head-r14371_3.tbz
- rehash
- squid -v
- kemudian baru di tunning kernel dan squidnya :
- masuk ke directory squid
- cd /usr/local/etc/squid/
- download dulu tunning squidnya
- fetch hxxp://freebsd-squid-system.googlecode.com/files/tunning.conf
- download program store dynamic cache
- fetch hxxp://freebsd-squid-system.googlecode.com/files/storeurl.pl
- ubah mode filenya :
- chmod +x storeurl.pl
- chown proxyroxy storeurl.pl
- chown proxyroxy tunning.conf
- download tunning kernel
- cd /etc
- fetch hxxp://freebsd-squid-system.googlecode.com/files/sysctl.conf
- cd /boot
- fetch hxxp://freebsd-squid-system.googlecode.com/files/loader.conf
- trus tambahin option tunning dengan menambah link baris di
- /usr/local/pkg/squid.inc
- cari kata2 ini pake winscp
- acl dynamic urlpath_regex cgi-bin \?
- dan tambahkan ini dibawahnya
- include /usr/local/etc/squid/tunning.conf
- trus rebuild cache
- squid -z
- sebelum servis dijalankan, cek apakah ada yang salah dengan confignya :
- squid -k parse
- jika tidak ada error, start servis squidnya (bisa lewat web) atau reboot server nya
- untuk keluarga debian (ubuntu,kubuntu dll) dan slackware filenya masih belum di upload, atau silahkan build sendiri dari sources hehehe
- copy patse dr bawah
- just info :
- configurasi tunning*.conf gak akan jalan kalau menggunakan sources lusca originalnya, package yang di buat (rpm dan bz) sudah di patch untuk optimasi refresh_pattern. beberapa perbedaan yang dibuat .
- 1. support for refresh_pattern store-stale (belum ada di squid-2.7 dan lusca original)
- 2.tambahan ignore-no-store,ignore-must-revalidate (belum ada di squid-2.7 dan lusca original),
- 3. patch loop untuk content video (akan muncul cacheHit dan looping terdetetect maka download ulang content yang sama akan di stop.
- 4. patch varry on, jika menggunakan default lusca / squid-2.7.x dengan menggunakan configurasi storeurl_rewrite_program, jangan di reboot servernya, jika reboot, file content dynamic akan menjadi miss
- untuk test case, silahkan tambahkan option store-stale di setaip refresh_pattern, pastin beda penuhnya cache dengan tanpa store-stale
- Update Ubuntu/Debian Base i386
- Ubuntu/Debian base i386
- hxxp://squid-proxy-pkg.googlecode.com/files/lusca_r144281-ubuntu-i386.tar.bz2
- ######################
- [SHARE] Mari Incip2 DNS Unbound High Performance
- berawal dari infonya azzzf
- thx bro
- jadi penasaran dengan perfomancenya
- numpang ijin di tampilkan graphnya hehehe ..
- Click here to view the original image of 754x453px.
- tested on OS ubuntu ram 1Gb, (include servis squid, apache2, & mrtg squid)
- lansung di geber :
- Code:
- apt-get install unbound
- cd /etc/unbound
- wget ftp://FTP.INTERNIC.NET/domain/named.cache
- unbound-control-setup
- chown unbound:root unbound_*
- chmod 440 unbound_*
- dan sesuaikan config /etc/unbound/unbound.conf, dan servis dns lainnya (bind/dnsmasq dll) harus di stop agar tidak bentrok)
- Code:
- server:
- verbosity: 1
- statistics-interval: 120
- num-threads: 1
- interface: 0.0.0.0
- outgoing-range: 512
- num-queries-per-thread: 1024
- msg-cache-size: 16m
- rrset-cache-size: 32m
- msg-cache-slabs: 4
- rrset-cache-slabs: 4
- cache-max-ttl: 86400
- infra-host-ttl: 60
- infra-lame-ttl: 120
- infra-cache-numhosts: 10000
- infra-cache-lame-size: 10k
- do-ip4: yes
- do-ip6: no
- do-udp: yes
- do-tcp: yes
- do-daemonize: yes
- #access-control: 0.0.0.0/0 allow
- access-control: 192.168.0.0/16 allow
- access-control: 172.16.0.0/12 allow
- access-control: 10.0.0.0/8 allow
- access-control: 127.0.0.0/8 allow
- access-control: 0.0.0.0/0 refuse
- chroot: "/etc/unbound"
- username: "unbound"
- directory: "/etc/unbound"
- #logfile: "/etc/unbound/unbound.log"
- #use-syslog: yes
- logfile: ""
- use-syslog: no
- pidfile: "/etc/unbound/unbound.pid"
- root-hints: "/etc/unbound/named.cache"
- identity: "DNS"
- version: "1.4"
- hide-identity: yes
- hide-version: yes
- harden-glue: yes
- do-not-query-address: 127.0.0.1/8
- do-not-query-localhost: yes
- module-config: "iterator"
- #zone localhost
- local-zone: "localhost." static
- local-data: "localhost. 10800 IN NS localhost."
- local-data: "localhost. 10800 IN SOA localhost. nobody.invalid. 1 3600 1200 604800 10800"
- local-data: "localhost. 10800 IN A 127.0.0.1"
- local-zone: "127.in-addr.arpa." static
- local-data: "127.in-addr.arpa. 10800 IN NS localhost."
- local-data: "127.in-addr.arpa. 10800 IN SOA localhost. nobody.invalid. 2 3600 1200 604800 10800"
- local-data: "1.0.0.127.in-addr.arpa. 10800 IN PTR localhost."
- #zone warnet-sudiro.net
- local-zone: "warnet-sudiro.net." static
- local-data: "warnet-sudiro.net. 86400 IN NS ns1.warnet-sudiro.net."
- local-data: "warnet-sudiro.net. 86400 IN SOA warnet-sudiro.net. hostmaster.warnet-sudiro.net. 3 3600 1200 604800 86400"
- local-data: "warnet-sudiro.net. 86400 IN A 192.168.100.2"
- local-data: "www.warnet-sudiro.net. 86400 IN A 192.168.100.2"
- local-data: "ns1.warnet-sudiro.net. 86400 IN A 192.168.100.2"
- local-data: "mail.warnet-sudiro.net. 86400 IN A 192.168.100.5"
- local-data: "warnet-sudiro.net. 86400 IN MX 10 mail.warnet-sudiro.net."
- local-data: "warnet-sudiro.net. 86400 IN TXT v=spf1 a mx ~all"
- local-zone: "100.168.192.in-addr.arpa." static
- local-data: "100.168.192.in-addr.arpa. 10800 IN NS warnet-sudiro.net."
- local-data: "100.168.192.in-addr.arpa. 10800 IN SOA warnet-sudiro.net. hostmaster.warnet-sudiro.net. 4 3600 1200 604800 864000"
- local-data: "2.100.168.192.in-addr.arpa. 10800 IN PTR warnet-sudiro.net."
- forward-zone:
- name: "."
- forward-addr: 202.134.1.10
- forward-addr: 222.124.204.34
- forward-addr: 202.134.0.155
- remote-control:
- control-enable: yes
- control-interface: 127.0.0.1
- control-port: 953
- server-key-file: "/etc/unbound/unbound_server.key"
- server-cert-file: "/etc/unbound/unbound_server.pem"
- control-key-file: "/etc/unbound/unbound_control.key"
- control-cert-file: "/etc/unbound/unbound_control.pem"
- root@ubuntu:~# /etc/init.d/unbound restart
- root@ubuntu:~# nslookup 192.168.100.2
- Server: 127.0.0.1
- Address: 127.0.0.1#53
- 2.00.168.192.in-addr.arpa name = warnet-sudiro.net.
- root@ubuntu:~# nslookup warnet-sudiro.net
- Server: 127.0.0.1
- Address: 127.0.0.1#53
- Name: warnet-sudiro.net
- Address: 192.168.100.2
- root@ubuntu:~#
- root@ubuntu:~#unbound-control stats
- thread0.num.queries=38
- thread0.num.cachehits=7
- thread0.num.cachemiss=31
- thread0.num.recursivereplies=31
- thread0.requestlist.avg=0.129032
- thread0.requestlist.max=1
- thread0.requestlist.overwritten=0
- thread0.requestlist.exceeded=0
- thread0.requestlist.current.all=0
- thread0.requestlist.current.user=0
- thread0.recursion.time.avg=0.088811
- thread0.recursion.time.median=0.0185685
- thread1.num.queries=10
- thread1.num.cachehits=1
- thread1.num.cachemiss=9
- thread1.num.recursivereplies=9
- thread1.requestlist.avg=0
- thread1.requestlist.max=0
- thread1.requestlist.overwritten=0
- thread1.requestlist.exceeded=0
- thread1.requestlist.current.all=0
- thread1.requestlist.current.user=0
- thread1.recursion.time.avg=0.049576
- thread1.recursion.time.median=0.016384
- total.num.queries=48
- total.num.cachehits=8
- total.num.cachemiss=40
- total.num.recursivereplies=40
- total.requestlist.avg=0.1
- total.requestlist.max=1
- total.requestlist.overwritten=0
- total.requestlist.exceeded=0
- total.requestlist.current.all=0
- total.requestlist.current.user=0
- total.recursion.time.avg=0.079984
- total.recursion.time.median=0.0174763
- time.now=1281681396.583885
- time.up=7299.491047
- time.elapsed=4177.655650
- simple heheh
- Package terbaru paket debian/ubuntu dari bro siber
- Quote Originally Posted by siber View Post
- unbound_1.4.6 (build ---with-libevent),
- silahkan sedot disini pakagenya :
- unbound_1.4.6 debian 32 bit
- unbound_1.4.6 debian 64 bit
- http://www.forummikrotik.com/guide/14263-%5Bshare%5D-mari-incip2-dns-unbound-high-performance.html
- ############################
- Maap jika Tuts ini terlalu panjang.
- I. PERSIAPAN DAN DEFINISI DELAY POOLS
- Gambaran Umum Delay Pools:
- Delay Pools adalah untuk mengkonfigurasikan squid dengan pengaturan bandwidth berdasarkan kriteria tertentu.
- Siapkan PC dengan kemampuan lebih, seperti :
- 1. P4 @ 2 Ghz cukup
- 2. harddisk cukup kecil saja sekitar 40 Gb 7200 rpm
- 2. Memory 512 (semakin besar semakin bagus, cachenya agar tidak "tumpah" ke harddisk)
- 3. Linux Distro (Ubuntu, Fedora Core, Slackware)
- 4. Squid-cache bisa download lewat: http://www.squid-cache.org/ downloadlah versi terbaru paling stabil (squid2.6 stable 12,saat diketik tulisan ini)
- 5. Konfigurasi network yang akan digunakan adalah:
- ....INET------SWITCH----MIKROTIK---CLIENT
- .......................|
- .......................--------SQUIDBOX
- II. INSTALASI SQUID
- A.DOWNLOAD SQUID
- Untuk memudahkan instalasi maka, LinuxBox harus sudah bisa terhubung ke internet untuk mendownload langsung sourcenya dengan perintah:
- PS: Menggunakan distro Ubuntu
- untuk check directory aktif
- Code:
- admin@squidbox:~$ pwd
- /home/admin
- untuk download langsung dari web squidcache
- Code:
- admin@squidbox:~$ wget http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE12.tar.gz
- untuk menginstall package squid
- Code:
- admin@squidbox:~$ tar -zxvf squid-2.6.STABLE12.tar.gz
- admin@squidbox:~$ cd squid-2.6.STABLE12/
- admin@squidbox:~/squid-2.6.STABLE12$ pwd
- /home/admin/squid-2.6.STABLE12
- B.KONFIGURASI SQUID
- sampai sini instalasi squid sudah beres, sekarang memberikan hak akses untuk normal user agar untuk menjalankan squid jika perlu di reboot atau maintenace tidak perlu dari user root.
- Code:
- admin@squidbox:~/squid-2.6.STABLE12$ sudo useradd -d /usr/local/squid/ -r -s /dev/null squid > /dev/null 2>&1
- sekarang kita mengkonfigurasi agar squid kita bisa memanfaatkan delay-pools dan juga mengaktifkan SNMP untuk MRTG dan ICMP
- Code:
- admin@squidbox:~/squid-2.6.STABLE12$ ./configure –prefix=/home/admin/squid-2.6.STABLE12 \
- –exec-prefix=/home/admin/squid-2.6.STABLE12 –enable-gnuregex \
- –enable-icmp –enable-snmp \
- –enable-delay-pools –enable-cache-diggest \
- –enable-removal-policies=heap –enable-default-err-languages=English \
- –enable-err-languages=English –enable-async-io=24 \
- –with-aufs-threads=24 –with-pthreads \
- –with-aio –with-dl \
- –enable-storeio=aufs,diskd –enable-epoll \
- –enable-kill-parent-hack –disable-ident-lookups \
- –disable-wccp –disable-wccpv2 \
- –enable-htcp
- untuk informasi lebih jelas konfigurasi dan compile squid bisa lihat kesini:
- http://wiki.squid-cache.org/SquidFaq/CompilingSquid
- http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid
- untuk prefix dan exec-prefix disesuaikan dengan directory squidnya.
- C.MENGKOMPILE DAN INSTALASI SQUID
- setelah konfigurasi awal di atas selesai maka kita bisa mengkompile nya dengan perintah:
- Code:
- admin@squidbox:~/squid-2.6.STABLE12$ make
- admin@squidbox:~/squid-2.6.STABLE12$ sudo make install
- III.Konfigurasi squid.conf
- A.Penjelasan Delay Pools dan parameternya
- Untuk Penjelasan Mengenai Delay Pools bisa ke thread ini, karena kalau terlalu panjang Tutsnya nanti malah jadi Boring dan Pusing. ^^
- http://www.forummikrotik.com/showthr...ted=1#post1608
- B. Mengedit Squid.conf
- Untuk mengedit konfigurasi squid.conf dapat memberikan perintah sebagai berikut:
- Code:
- admin@squidbox:~/squid-2.6.STABLE12$ sudo nano /home/admin/squid-2.6.STABLE12/etc/squid.conf
- Konfigurasi default dan optimalisasi squid.conf:
- Code:
- http_port 3128
- hierarchy_stoplist cgi-bin ?
- acl QUERY urlpath_regex cgi-bin \?
- # LOGFILE PATHNAMES AND CACHE DIRECTORIES
- # â€â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€œ
- cache_dir diskd /home/admin/squid-2.6.STABLE12/var/cache 1000 8 256 # << Sesuaikan dengan kebutuhan anda
- access_log /home/admin/squid-2.6.STABLE12/var/logs/access.log squid
- cache_log /home/admin/squid-2.6.STABLE12/var/logs/cache.log
- log_fqdn off
- buffered_logs off
- # OPTIONS FOR TUNING THE CACHE
- # â€â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€œ
- refresh_pattern /.gif 4320 50% 43200
- refresh_pattern /.jpg 4320 50% 43200
- refresh_pattern /.jpeg 4320 50% 43200
- refresh_pattern /.png 4320 50% 43200
- refresh_pattern ^http://www.friendster.com/.* 720 100% 10080
- refresh_pattern ^http://mail.yahoo.com/.* 720 100% 10080
- refresh_pattern ^http://*.yahoo.*/.* 720 100% 7200
- refresh_pattern ^http://*.google.com/.* 720 100% 10080
- refresh_pattern ^http://www.telkomspeedy.com/.* 720 100% 28800
- refresh_pattern ^http://*.blogsome.com/.* 720 80% 10080
- refresh_pattern ^http://*.wordpress.com/.* 720 80% 10080
- refresh-pattern ^http://detik.com/.* 720 90% 2880
- refresh_pattern ^ftp: 14400 90% 43200 reload-into-ims
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern . 0 20% 4320 reload-into-ims
- quick_abort_min 0 KB
- quick_abort_max 0 KB
- quick_abort_pct 95
- # ACCESS CONTROLS
- # â€â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€œ
- acl my_network src 192.168.1.0/24
- acl SSL_ports port 443 563
- #acl Safe_ports port 280 # http-mgmt
- acl Safe_ports port 443 563 # https
- #acl Safe_ports port 488 # gss-http
- #acl Safe_ports port 591 # filemaker
- #acl Safe_ports port 777 # multiling http
- http_access allow manager localhost my_network
- http_access allow my_network
- acl download url_regex -i \.mp3
- acl download url_regex -i \.3gp
- acl download url_regex -i \.avi
- acl download url_regex -i \.mpg
- acl download url_regex -i \.mpeg
- acl download url_regex -i \.wav
- acl download url_regex -i \.flv
- acl download url_regex -i \.swf
- # DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
- # â€â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€œ
- delay_pools 2
- delay_class 1 3
- delay_parameters 1 -1/-1 -1/-1 8000/8000
- delay_access 1 allow my_network download
- delay_access 1 deny all
- delay_class 2 2
- delay_parameters 2 -1/-1 -1/-1
- delay_access 2 allow my_network
- delay_access 2 deny all
- # ADMINISTRATIVE PARAMETERS
- # â€â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€œ
- cache_effective_user squid
- # MISCELLANEOUS
- # â€â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€œ
- logfile_rotate 5
- reload_into_ims on
- store_dir_select_algorithm round-robin
- # ADMINISTRATIVE PARAMETERS
- # â€â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€Ã¢â‚¬â€œ
- cache_mgr youremail@host.com
- visible_hostname localhost
- IV. Menjalankan Squid-cache
- A. Membuat swap cache
- Code:
- [root@squidbox]#/usr/local/squid/sbin/squid -z
- B. Mengaktifkan Squid di Foreground task
- Code:
- ghoz@ghoz-desktop:~/squid-2.6.STABLE12$ home/ghoz/squid-2.6.STABLE12/sbin/squid -SND
- ghoz@ghoz-desktop:~/squid-2.6.STABLE12$ home/ghoz/squid-2.6.STABLE12/sbin/squid start
- C. Monitoring TCP squidBox
- Code:
- admin@squidbox:~/squid-2.6.STABLE12$ sudo netstat -pln | grep squid
- Bila tampilan ada yang persis seperti dibawah ini, berarti squid telah berjalan.
- Code:
- tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 18047/(squid)
- udp 0 0 0.0.0.0:3130 0.0.0.0:* 18047/(squid)
- udp 0 0 0.0.0.0:3401 0.0.0.0:* 18047/(squid)
- udp 0 0 0.0.0.0:4827 0.0.0.0:* 18047/(squid)
- udp 0 0 0.0.0.0:32992 0.0.0.0:* 18047/(squid)
- Untuk pengecekan, maka client dicoba untuk browsing, jika ada data in/out maka proses pembuatan transparant proxy sudah berhasil.
- #######^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^######################################
- berbagi refresh pattern
- refresh pattern adalah salah satu fitur di squid yang bisa kita gunakan untuk memaksa sebuah content tetap dianggap HIT dalam kurun waktu tertentu, kalo salah mohon diluruskan
- ane cuman mau berbagi sesama ini juga bukan murni buatan saya tp hasil modif sana-sini dan saya anggap sangat ringan dalam memaksa content tetap dianggap HIT (fresh)
- Spek mesin ane PIII RAM 512 MB
- oh ya menurut saya semakin tinggi dan banyak kriteria refresh pattern ini maka harus setara dengan hardware makanya jangan langsung di copas punya nya om2 disini klo spek pc na jauh berbeda, ntar malah makin lelet....
- CMIIW
- Zchellpy
- Code:
- # 1 week = 10080 mins, 1 month = 43200 mins, 3 months = 129600 mins
- # pictures & images
- refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private
- refresh_pattern -i \.(xml|html|htm|js|txt|css|php)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
- #sound, video & multimedia
- refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
- refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private
- # files
- refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth
- refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- # dynamic content
- refresh_pattern ^http://(.*?)/get_video\? 10080 90% 999999 override-expire ignore-no-cache ignore-private
- refresh_pattern ^http://(.*?)/videoplayback\? 10080 90% 999999 override-expire ignore-no-cache ignore-private
- refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id) 161280 50000% 525948 override-expire ignore-reload
- # -- refresh pattern for specific sites -- #
- refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
- refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
- refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
- refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.theinquirer.*/.* 720 100% 10080 override-expire ignore-no-cache ignore-auth
- refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
- refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
- refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 ignore-reload override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http://*.apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- #refresh_pattern ^http://creative.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- #refresh_pattern ^http://facebook.poker.zynga.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- #refresh_pattern ^http://facebook2.poker.zynga.com/.* 720 100% 10080 override-expire ignore-reload reload-into-ims ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
- refresh_pattern ^http://*.texas_holdem.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://static-facebook.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://static.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http:\/\/\videoxl\.l[0-9]\.facebook.com\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/\*.channel\.facebook\.com\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/video\.ak\.facebook.com*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/photos-[a-z]\.ak\.fbcdn\.net\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/static\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/creative\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/facebook\.poker\.zynga.com\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/\statics\.poker\.static\.zynga\.com\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/\*.crowdstar.com*\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http://static.playspoon.com/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://cooking.game.playspoon.com/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern -i http://[^a-z\.]*onemanga\.com/? 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://media?.onemanga.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.l.yimg\.com.*\.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.yahoofs.com\.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale
- refresh_pattern \.(ico|video-stats) 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
- refresh_pattern \.etology\? 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
- refresh_pattern galleries\.video(\?|sz) 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
- refresh_pattern \.adtology\? 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
- refresh_pattern ^.*safebrowsing.*google 43200 50% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
- refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 43200 50% 129600 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
- refresh_pattern ^http://*.ytimg\.com.*\.* 43200 50% 129600 override-expire ignore-reload store-stale
- refresh_pattern kaspersky.*\.(avc|xml|dif|klz|kdc)$ 43200 100% 43200 ignore-reload store-stale
- refresh_pattern kaspersky 1440 50% 43200 ignore-no-cache store-stale
- refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 129600 100% 129600 ignore-no-cache override-expire override-lastmod store-stale
- refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 129600 100% 129600 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
- refresh_pattern -i \*.speedtest.*com\.* 0 50% 180 override-expire store-stale negative-ttl=0
- #default option
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
- refresh_pattern . 0 20% 4320
- berbagi refresh pattern
- refresh pattern adalah salah satu fitur di squid yang bisa kita gunakan untuk memaksa sebuah content tetap dianggap HIT dalam kurun waktu tertentu, kalo salah mohon diluruskan
- ane cuman mau berbagi sesama ini juga bukan murni buatan saya tp hasil modif sana-sini dan saya anggap sangat ringan dalam memaksa content tetap dianggap HIT (fresh)
- Spek mesin ane PIII RAM 512 MB
- oh ya menurut saya semakin tinggi dan banyak kriteria refresh pattern ini maka harus setara dengan hardware makanya jangan langsung di copas punya nya om2 disini klo spek pc na jauh berbeda, ntar malah makin lelet....
- CMIIW
- Zchellpy
- Code:
- # 1 week = 10080 mins, 1 month = 43200 mins, 3 months = 129600 mins
- # pictures & images
- refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private
- refresh_pattern -i \.(xml|html|htm|js|txt|css|php)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
- #sound, video & multimedia
- refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
- refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private
- # files
- refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth
- refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
- # dynamic content
- refresh_pattern ^http://(.*?)/get_video\? 10080 90% 999999 override-expire ignore-no-cache ignore-private
- refresh_pattern ^http://(.*?)/videoplayback\? 10080 90% 999999 override-expire ignore-no-cache ignore-private
- refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id) 161280 50000% 525948 override-expire ignore-reload
- # -- refresh pattern for specific sites -- #
- refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
- refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
- refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
- refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.theinquirer.*/.* 720 100% 10080 override-expire ignore-no-cache ignore-auth
- refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
- refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
- refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 ignore-reload override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http://*.apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- #refresh_pattern ^http://creative.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- #refresh_pattern ^http://facebook.poker.zynga.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- #refresh_pattern ^http://facebook2.poker.zynga.com/.* 720 100% 10080 override-expire ignore-reload reload-into-ims ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
- refresh_pattern ^http://*.texas_holdem.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://static-facebook.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://static.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http:\/\/\videoxl\.l[0-9]\.facebook.com\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/\*.channel\.facebook\.com\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/video\.ak\.facebook.com*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/photos-[a-z]\.ak\.fbcdn\.net\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/static\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/creative\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/facebook\.poker\.zynga.com\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/\statics\.poker\.static\.zynga\.com\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http:\/\/\*.crowdstar.com*\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
- refresh_pattern ^http://static.playspoon.com/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://cooking.game.playspoon.com/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern -i http://[^a-z\.]*onemanga\.com/? 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://media?.onemanga.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.l.yimg\.com.*\.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://*.yahoofs.com\.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
- refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale
- refresh_pattern \.(ico|video-stats) 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
- refresh_pattern \.etology\? 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
- refresh_pattern galleries\.video(\?|sz) 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
- refresh_pattern \.adtology\? 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
- refresh_pattern ^.*safebrowsing.*google 43200 50% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
- refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 43200 50% 129600 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
- refresh_pattern ^http://*.ytimg\.com.*\.* 43200 50% 129600 override-expire ignore-reload store-stale
- refresh_pattern kaspersky.*\.(avc|xml|dif|klz|kdc)$ 43200 100% 43200 ignore-reload store-stale
- refresh_pattern kaspersky 1440 50% 43200 ignore-no-cache store-stale
- refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 129600 100% 129600 ignore-no-cache override-expire override-lastmod store-stale
- refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 129600 100% 129600 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
- refresh_pattern -i \*.speedtest.*com\.* 0 50% 180 override-expire store-stale negative-ttl=0
- #default option
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
- refresh_pattern . 0 20% 4320
Add Comment
Please, Sign In to add comment