Koreksi squid.conf

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
Smith
Posts: 18
Joined: 09 May 2010, 19:17
Location: Indonesia
Contact:

Koreksi squid.conf

Postby Smith » 09 May 2010, 19:50

Tampilkan
http_port 192.168.0.2:8080 transparent
icp_port 0
server_http11 on
cache_mem 8 MB
maximum_object_size 30 MB
cache_swap_low 90
cache_swap_high 95
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir aufs /lapocache 200000 469 256
log_fqdn off
log_icp_queries off
buffered_logs on
log_mime_hdrs on
emulate_httpd_log off
cache_access_log none
cache_log none
cache_store_log none
mime_table /usr/share/squid/mime.conf
pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid/
ftp_list_width 32
ftp_passive on
ftp_sanitycheck on
dns_nameservers 203.130.**.** 202.134.**.**


refresh_pattern -i \.gif$ 10080 90% 43200
refresh_pattern -i \.jpg$ 10080 90% 43200
refresh_pattern -i \.bom\.gov\.au 30 20% 120
refresh_pattern -i \.html$ 480 50% 22160
refresh_pattern -i \.htm$ 480 50% 22160
refresh_pattern -i \.class$ 10080 90% 43200
refresh_pattern -i \.zip$ 10080 90% 43200
refresh_pattern -i \.jpeg$ 10080 90% 43200
refresh_pattern -i \.mid$ 10080 90% 43200
refresh_pattern -i \.shtml$ 480 50% 22160
refresh_pattern -i \.exe$ 10080 90% 43200
refresh_pattern -i \.thm$ 10080 90% 43200
refresh_pattern -i \.wav$ 10080 90% 43200
refresh_pattern -i \.txt$ 10080 90% 43200
refresh_pattern -i \.cab$ 10080 90% 43200
refresh_pattern -i \.au$ 10080 90% 43200
refresh_pattern -i \.mov$ 10080 90% 43200
refresh_pattern -i \.xbm$ 10080 90% 43200
refresh_pattern -i \.ram$ 10080 90% 43200
refresh_pattern -i \.avi$ 10080 90% 43200
refresh_pattern -i \.chtml$ 480 50% 22160
refresh_pattern -i \.thb$ 10080 90% 43200
refresh_pattern -i \.dcr$ 10080 90% 43200
refresh_pattern -i \.bmp$ 10080 90% 43200
refresh_pattern -i \.phtml$ 480 50% 22160
refresh_pattern -i \.mpg$ 10080 90% 43200
refresh_pattern -i \.pdf$ 10080 90% 43200
refresh_pattern -i \.art$ 10080 90% 43200
refresh_pattern -i \.swf$ 10080 90% 43200
refresh_pattern -i \.mp3$ 10080 90% 43200
refresh_pattern -i \.ra$ 10080 90% 43200
refresh_pattern -i \.spl$ 10080 90% 43200
refresh_pattern -i \.viv$ 10080 90% 43200
refresh_pattern -i \.doc$ 10080 90% 43200
refresh_pattern -i \.gz$ 10080 90% 43200
refresh_pattern -i \.Z$ 10080 90% 43200
refresh_pattern -i \.tgz$ 10080 90% 43200
refresh_pattern -i \.tar$ 10080 90% 43200
refresh_pattern -i \.vrm$ 10080 90% 43200
refresh_pattern -i \.vrml$ 10080 90% 43200
refresh_pattern -i \.aif$ 10080 90% 43200
refresh_pattern -i \.aifc$ 10080 90% 43200
refresh_pattern -i \.aiff$ 10080 90% 43200
refresh_pattern -i \.arj$ 10080 90% 43200
refresh_pattern -i \.c$ 10080 90% 43200
refresh_pattern -i \.cpt$ 10080 90% 43200
refresh_pattern -i \.dir$ 10080 90% 43200
refresh_pattern -i \.dxr$ 10080 90% 43200
refresh_pattern -i \.hqx$ 10080 90% 43200
refresh_pattern -i \.jpe$ 10080 90% 43200
refresh_pattern -i \.lha$ 10080 90% 43200
refresh_pattern -i \.lzh$ 10080 90% 43200
refresh_pattern -i \.midi$ 10080 90% 43200
refresh_pattern -i \.movie$ 10080 90% 43200
refresh_pattern -i \.mp2$ 10080 90% 43200
refresh_pattern -i \.mpe$ 10080 90% 43200
refresh_pattern -i \.mpeg$ 10080 90% 43200
refresh_pattern -i \.mpga$ 10080 90% 43200
refresh_pattern -i \.pl$ 10080 90% 43200
refresh_pattern -i \.ppt$ 10080 90% 43200
refresh_pattern -i \.ps$ 10080 90% 43200
refresh_pattern -i \.qt$ 10080 90% 43200
refresh_pattern -i \.qtm$ 10080 90% 43200
refresh_pattern -i \.ras$ 10080 90% 43200
refresh_pattern -i \.sea$ 10080 90% 43200
refresh_pattern -i \.sit$ 10080 90% 43200
refresh_pattern -i \.tif$ 10080 90% 43200
refresh_pattern -i \.tiff$ 10080 90% 43200
refresh_pattern -i \.snd$ 10080 90% 43200
refresh_pattern -i \.wrl$ 10080 90% 43200
refresh_pattern ^http://*.akamai.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.google.*./* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.yahoo.*./.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.mylapo.*./.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.usu.ac.id/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://mail.yahoo.com/.* 720 80% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://www.friendster.com/.* 720 90% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.yahoo.*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.yimg.*/.* 720 90% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://www.gmail.com/.* 720 100% 10080 reload-into-ims override-lastmod
refresh_pattern ^http://*.facebook.com*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.blogspot.com*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^http://*.wordpress.com*/.* 720 100% 4320 reload-into-ims override-lastmod
refresh_pattern ^ftp:// 480 60% 22160
refresh_pattern ^gopher:// 30 20% 120
refresh_pattern . 480 50% 22160

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100%
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on


acl all src 0.0.0.0/0.0.0.0
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 CONNECT method CONNECT
acl blocklist url_regex -i //\*.*3gp*.* //\*.*3GP*.* //\*.*****.* //\*.*****.* //\*.*****.* //\*.*adult*.* //\*.*$
acl download url_regex -i \.mpg$ \.mpeg$ \.avi$ \.dat$ \.exe$ \.vqf$ \.tar.gz$ \.gz$ \.rpm$
acl download url_regex -i \.zip$ \.bz2$ \.rar$ \.qt$ \.ram$ \.rm$ \.iso$ \.raw$ \.wav$ \.mov$ \.cab$
acl NoCacheURL dstdomain penerimaan.spmb.or.id
acl NoCacheURL dstdomain jamsostek.co.id
acl NoCacheURL dstdomain semanggi51.com
acl NoCacheURL dstdomain snmptn.ac.id

acl proxy src 192.168.0.0-192.168.0.2/255.255.255.255
acl lan src 192.168.1.23-192.168.1.111/255.255.255.255
acl wifi src 192.168.4.100-192.168.4.200/255.255.255.255
http_access allow manager lan
http_access allow manager localhost
http_access allow localhost
http_access allow proxy
http_access allow lan
http_access allow wifi
http_reply_access allow all
always_direct allow all
icp_access allow all
miss_access allow all
cache deny blocklist download
cache deny NoCacheURL
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny manager
http_access deny blocklist
http_access deny download
http_access deny all

negative_ttl 1 minutes
client_persistent_connections on
server_persistent_connections on
update_headers on
redirect_rewrites_host_header off
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
connect_timeout 1 minute
read_timeout 1 minutes
request_timeout 1 minutes
persistent_request_timeout 2 minutes
half_closed_clients on
ignore_unknown_nameservers on
shutdown_lifetime 10 second
memory_pools off
forwarded_for off
half_closed_clients off
high_page_fault_warning 2
nonhierarchical_direct off
prefer_direct off
cache_mgr mylaponet@ymail.com
cache_effective_user squid
cache_effective_group squid
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136



Tolong kawan2 di forum ini koreksi squid.conf aku ini.
Spek : HDD 250GB DDR 1GB P4 478 dan seperti nya ubuntu 9.10 proxy server aku ini gak tahan lebih dari 24 jam, sebelum 24 jam dah mau lambat dan gak konek jadi harus di restart. Aku rencana mau install ulang ubuntu 9.10 server ini. tapi gimana yah cara buat partisi yg benar biar katanya head nya selalu di tengah. Untuk saat ini ada masalah untuk situs ini.

mesti di lewatkan dari squid dari mikrotiknya, kalo di lewatkan di squid site nya gak jalan. Macam situs jamsostek , http://www.semanggi51.com dan umb itu. jadi untuk saat ini situs jamsostek, http://www.semanggi51.com di mikrotik mangle di bypass squid dan penerimaan.spmb.or.id no cahce di squid.
Tolong deh cara buat partisi ubuntu squid webproxy dengan HDD 250 GB DDR 1 GB.

Thanks teman2 semua
User avatar
Smith
Posts: 18
Joined: 09 May 2010, 19:17
Location: Indonesia
Contact:

Re: Koreksi squid.conf

Postby Smith » 09 May 2010, 19:52

Untuk saat ini saya perlu cara buat partisi ubuntu Squid version 2.7 webproxy agar head hdd selalu ditengah bro
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: Koreksi squid.conf

Postby c0jack » 12 May 2010, 18:20

Smith wrote:Untuk saat ini saya perlu cara buat partisi ubuntu Squid version 2.7 webproxy agar head hdd selalu ditengah bro

maksud head hdd selalu ditengah gimana yah :confused: :confused:

ps: om momod, thread ini bukannya harusnya berada di forum ubuntu server yah?


regards,
c0jack
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: Koreksi squid.conf

Postby MasDjo » 12 May 2010, 18:31

Ya om momod, sepertinya lebih tepat di ubuntu server.

Saya juga pernah baca2 tentang pemartisian yg ideal, tapi lupa sumbernya :)
Maksudnya gini kira2 bro c0jack, posisi baca optimal HDD adalah ketika head ada ditengah, jadi untuk partisi cache squid serta swap idealnya berada di posisi tengah agar lebih cepat.
Jadi misalnya HDD 100 GB katakanlah dibagi 4 partisi 25-25-25-25, maka posisi tengah ada pada 25 GB ke-2 dan ke-3.... CMIIW
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: Koreksi squid.conf

Postby c0jack » 12 May 2010, 18:48

ooh gitu yah, baru tau saya. makasih pencerahannya MasDjo :)
kalo gitu bisa dibuat misal seperti ini :
/boot -> 500m
/ -> 10g
/cache_dir -> sisanya :D
swap -> 2g
/home -> 10g
/var -> 10g
silahkan di kembangkan menurut kebutuhan :D :D


regards,
c0jack
User avatar
lisnux
Posts: 1763
Joined: 02 Jan 2010, 16:26
Location: Samarinda
Contact:

Re: Koreksi squid.conf

Postby lisnux » 12 May 2010, 20:58

oke dipindah ke ubuntu server ya, MasDjo Mohon diterima
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: Koreksi squid.conf

Postby MasDjo » 12 May 2010, 21:02

Terimakasih bro Lisnux :D
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: Koreksi squid.conf

Postby sipelaut » 16 May 2010, 14:02

wahhh mas smith kemana yaahh... kok tretnya didiemin aja nichh
padahal aku pantengin terus nichh
gak ada perubahan hadoohhhhhhh
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: Koreksi squid.conf

Postby zitux » 17 May 2010, 01:38

sabar bro mungkin om momod masih busy,,, :grin:
pasti dibalas kok :grin:
User avatar
suryayusra
Posts: 394
Joined: 05 May 2010, 15:54
Location: Palembang, Indonesia
Contact:

Re: Koreksi squid.conf

Postby suryayusra » 17 May 2010, 09:20

ooh gitu maksut nya :D laen kali klo partisi hdd pake yg di tengah aja :D
nah klo HDD nya di pake dua OS gimana ?
User avatar
si_kancil
Posts: 1
Joined: 07 Jun 2010, 22:16
Location: Semarang

Re: Koreksi squid.conf

Postby si_kancil » 07 Jun 2010, 22:22

Smith wrote:Untuk saat ini saya perlu cara buat partisi ubuntu Squid version 2.7 webproxy agar head hdd selalu ditengah bro


...
...
/dev/hda1 1G /
/dev/hda5 2G /var
/dev/hda6 256M swap
/dev/hda7 12G /cache
/dev/hda8 sisanya /home

Alasan kok /var, swap, dan /cache mengumpul ditengah, ya krn supaya 'head' hardisk efektif bergerak di track 'average' atau ditengah-tengah...


Untuk lengkapnya silakan baca di sini dan di sini

thanks
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: Koreksi squid.conf

Postby zitux » 09 Jun 2010, 00:16

mantappp link dari sikancil :D :D
sering2 berbagi bro ya :grin:
User avatar
amanda
Posts: 203
Joined: 22 May 2010, 02:35

Re: Koreksi squid.conf

Postby amanda » 13 Jun 2010, 12:21

Tampilkan
$ squidclient mgr:client_list
HTTP/1.0 200 OK
Server: squid
Mime-Version: 1.0
Date: Sun, 13 Jun 2010 05:06:18 GMT
Content-Type: text/plain
Expires: Sun, 13 Jun 2010 05:06:18 GMT
Last-Modified: Sun, 13 Jun 2010 05:06:18 GMT
X-Cache: MISS from amanda
X-Cache-Lookup: MISS from amanda:3128
Via: 1.0 amanda (squid)
Proxy-Connection: close

Cache Clients:
TOTALS
ICP : 0 Queries, 0 Hits ( 0%)
HTTP: 0 Requests, 0 Hits ( 0%)

$ squidclient mgr:info
HTTP/1.0 200 OK
Server: squid
Mime-Version: 1.0
Date: Sun, 13 Jun 2010 05:08:26 GMT
Content-Type: text/plain
Expires: Sun, 13 Jun 2010 05:08:26 GMT
Last-Modified: Sun, 13 Jun 2010 05:08:26 GMT
X-Cache: MISS from amanda
X-Cache-Lookup: MISS from amanda:3128
Via: 1.0 amanda (squid)
Proxy-Connection: close

Squid Object Cache: Version 3.1.3
Start Time: Sun, 13 Jun 2010 04:02:54 GMT
Current Time: Sun, 13 Jun 2010 05:08:26 GMT
Connection information for squid:
Number of clients accessing cache: 0
Number of HTTP requests received: 704
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: 10.7
Average ICP messages per minute since start: 0.0
Select loop called: 278837 times, 14.102 ms avg
Cache information for squid:
Hits as % of all requests: 5min: 36.6%, 60min: 39.1%
Hits as % of bytes sent: 5min: 2.7%, 60min: 21.7%
Memory hits as % of hit requests: 5min: 0.0%, 60min: 0.7%
Disk hits as % of hit requests: 5min: 7.7%, 60min: 72.4%
Storage Swap size: 12812 KB
Storage Swap capacity: 0.3% used, 99.7% free
Storage Mem size: 184 KB
Storage Mem capacity: 3.0% used, 97.0% free
Mean Object Size: 12.16 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 3.66001 2.37608
Cache Misses: 5.95019 3.46762
Cache Hits: 0.02742 0.02317
Near Hits: 3.46762 2.79397
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 3932.066 seconds
CPU Time: 8.753 seconds
CPU Usage: 0.22%
CPU Usage, 5 minute avg: 0.29%
CPU Usage, 60 minute avg: 0.24%
Process Data Segment Size via sbrk(): 32972 KB
Maximum Resident Size: 152048 KB
Page faults with physical i/o: 10
Memory usage for squid via mallinfo():
Total space in arena: 33240 KB
Ordinary blocks: 33110 KB 64 blks
Small blocks: 0 KB 0 blks
Holding blocks: 2776 KB 11 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 129 KB
Total in use: 35886 KB 100%
Total free: 129 KB 0%
Total size: 36016 KB
Memory accounted for:
Total accounted: 3083 KB 9%
memPool accounted: 3083 KB 9%
memPool unaccounted: 32932 KB 91%
memPoolAlloc calls: 176577
memPoolFree calls: 170991
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 29
Number of file desc currently in use: 13
Files queued for open: 0
Available number of file descriptors: 1011
Reserved number of file descriptors: 100
Store Disk files open: 0
Internal Data Structures:
1082 StoreEntries
45 StoreEntries with MemObjects
43 Hot Object Cache Items
1054 on-disk objects

kok Number of clients accessing cache: 0 ???? dan
hasil dari squidclient mgr:client_list

Cache Clients:
TOTALS
ICP : 0 Queries, 0 Hits ( 0%)
HTTP: 0 Requests, 0 Hits ( 0%) ???
squid confQ :

Code: Select all

#SQUID 3.1.3
# ACCESS CONTROLS
acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost
acl all src
acl localnet src 10.0.0.0/8
acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16
acl localhost src 127.0.0.1/32
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
acl sslports port 443 563 81
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT
acl malware url_regex -i "/etc/squid3/malware_block"

http_access deny malware
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
http_access allow localhost
http_access allow localnet
http_access deny all
# NETWORK OPTIONS
# ---------------
http_port 3128
forwarded_for off
# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------
cache_mem 6 MB
maximum_object_size_in_memory 12 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache 4000 10 256
maximum_object_size 128000 KB
cache_swap_low 98
cache_swap_high 99
ipcache_size 2048
ipcache_low 98
ipcache_high 99
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# ---------------------------------------
access_log none
cache_log /cache/cache.log
#cache_log /dev/null
cache_store_log none
logfile_rotate 5
log_icp_queries off
log_fqdn off
# HIERARCHY (BYPASS CGI)
# ------------------------
#hierarchy_stoplist cgi-bin ? .js .jsp
#acl QUERY urlpath_regex cgi-bin \? .js .jsp
#no_cache deny QUERY
# OPTIONS FOR TUNING THE CACHE
# ----------------------------
cache deny QUERY
refresh_pattern -i \.(gif|png|jpg|ico|bmp|tiff)$ 10080 95% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(deb|zip|tar|gz|tgz|rar|bin|7z|doc|pdf)$ 10080 90% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 75% 10080
refresh_pattern -i \.(avi|iso|wav|mid|3gp)$ 43200 95% 432000 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 1440 90% 10080

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
store_avg_object_size 13 KB
# HTTP OPTIONS
# ------------
request_header_access From deny all
request_header_access Server deny all
request_header_access Link deny all
request_header_access Via deny all
request_header_access X-Forwarded-For deny all
request_header_access Accept-Encoding deny all
# TIMEOUTS
# --------
forward_timeout 240 second
connect_timeout 30 second
read_timeout 600 second
request_timeout 60 second
shutdown_lifetime 10 second
# ADMINISTRATIVE PARAMETERS
# -------------------------
cache_mgr amanda
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname amanda
# DNS OPTIONS
# -----------
dns_timeout 10 seconds
dns_nameservers 180.131.144.144 180.131.144.145
# MISCELLANEOUS
# -------------
reload_into_ims on
coredump_dir /cache
pipeline_prefetch on
vary_ignore_expire on
offline_mode off
memory_pools off
client_db off
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: Koreksi squid.conf

Postby Rh354 » 14 Jun 2010, 07:56

Tampilkan
amanda wrote:$ squidclient mgr:client_list
HTTP/1.0 200 OK
Server: squid
Mime-Version: 1.0
Date: Sun, 13 Jun 2010 05:06:18 GMT
Content-Type: text/plain
Expires: Sun, 13 Jun 2010 05:06:18 GMT
Last-Modified: Sun, 13 Jun 2010 05:06:18 GMT
X-Cache: MISS from amanda
X-Cache-Lookup: MISS from amanda:3128
Via: 1.0 amanda (squid)
Proxy-Connection: close

Cache Clients:
TOTALS
ICP : 0 Queries, 0 Hits ( 0%)
HTTP: 0 Requests, 0 Hits ( 0%)

$ squidclient mgr:info
HTTP/1.0 200 OK
Server: squid
Mime-Version: 1.0
Date: Sun, 13 Jun 2010 05:08:26 GMT
Content-Type: text/plain
Expires: Sun, 13 Jun 2010 05:08:26 GMT
Last-Modified: Sun, 13 Jun 2010 05:08:26 GMT
X-Cache: MISS from amanda
X-Cache-Lookup: MISS from amanda:3128
Via: 1.0 amanda (squid)
Proxy-Connection: close

Squid Object Cache: Version 3.1.3
Start Time: Sun, 13 Jun 2010 04:02:54 GMT
Current Time: Sun, 13 Jun 2010 05:08:26 GMT
Connection information for squid:
Number of clients accessing cache: 0
Number of HTTP requests received: 704
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: 10.7
Average ICP messages per minute since start: 0.0
Select loop called: 278837 times, 14.102 ms avg
Cache information for squid:
Hits as % of all requests: 5min: 36.6%, 60min: 39.1%
Hits as % of bytes sent: 5min: 2.7%, 60min: 21.7%
Memory hits as % of hit requests: 5min: 0.0%, 60min: 0.7%
Disk hits as % of hit requests: 5min: 7.7%, 60min: 72.4%
Storage Swap size: 12812 KB
Storage Swap capacity: 0.3% used, 99.7% free
Storage Mem size: 184 KB
Storage Mem capacity: 3.0% used, 97.0% free
Mean Object Size: 12.16 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 3.66001 2.37608
Cache Misses: 5.95019 3.46762
Cache Hits: 0.02742 0.02317
Near Hits: 3.46762 2.79397
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 3932.066 seconds
CPU Time: 8.753 seconds
CPU Usage: 0.22%
CPU Usage, 5 minute avg: 0.29%
CPU Usage, 60 minute avg: 0.24%
Process Data Segment Size via sbrk(): 32972 KB
Maximum Resident Size: 152048 KB
Page faults with physical i/o: 10
Memory usage for squid via mallinfo():
Total space in arena: 33240 KB
Ordinary blocks: 33110 KB 64 blks
Small blocks: 0 KB 0 blks
Holding blocks: 2776 KB 11 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 129 KB
Total in use: 35886 KB 100%
Total free: 129 KB 0%
Total size: 36016 KB
Memory accounted for:
Total accounted: 3083 KB 9%
memPool accounted: 3083 KB 9%
memPool unaccounted: 32932 KB 91%
memPoolAlloc calls: 176577
memPoolFree calls: 170991
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 29
Number of file desc currently in use: 13
Files queued for open: 0
Available number of file descriptors: 1011
Reserved number of file descriptors: 100
Store Disk files open: 0
Internal Data Structures:
1082 StoreEntries
45 StoreEntries with MemObjects
43 Hot Object Cache Items
1054 on-disk objects

kok Number of clients accessing cache: 0 ???? dan
hasil dari squidclient mgr:client_list

Cache Clients:
TOTALS
ICP : 0 Queries, 0 Hits ( 0%)
HTTP: 0 Requests, 0 Hits ( 0%) ???
squid confQ :

Code: Select all

#SQUID 3.1.3
# ACCESS CONTROLS
acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost
acl all src
acl localnet src 10.0.0.0/8
acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16
acl localhost src 127.0.0.1/32
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
acl sslports port 443 563 81
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT
acl malware url_regex -i "/etc/squid3/malware_block"

http_access deny malware
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
http_access allow localhost
http_access allow localnet
http_access deny all
# NETWORK OPTIONS
# ---------------
http_port 3128
forwarded_for off
# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------
cache_mem 6 MB
maximum_object_size_in_memory 12 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache 4000 10 256
maximum_object_size 128000 KB
cache_swap_low 98
cache_swap_high 99
ipcache_size 2048
ipcache_low 98
ipcache_high 99
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# ---------------------------------------
access_log none
cache_log /cache/cache.log
#cache_log /dev/null
cache_store_log none
logfile_rotate 5
log_icp_queries off
log_fqdn off
# HIERARCHY (BYPASS CGI)
# ------------------------
#hierarchy_stoplist cgi-bin ? .js .jsp
#acl QUERY urlpath_regex cgi-bin \? .js .jsp
#no_cache deny QUERY
# OPTIONS FOR TUNING THE CACHE
# ----------------------------
cache deny QUERY
refresh_pattern -i \.(gif|png|jpg|ico|bmp|tiff)$ 10080 95% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(deb|zip|tar|gz|tgz|rar|bin|7z|doc|pdf)$ 10080 90% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 75% 10080
refresh_pattern -i \.(avi|iso|wav|mid|3gp)$ 43200 95% 432000 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 1440 90% 10080

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
store_avg_object_size 13 KB
# HTTP OPTIONS
# ------------
request_header_access From deny all
request_header_access Server deny all
request_header_access Link deny all
request_header_access Via deny all
request_header_access X-Forwarded-For deny all
request_header_access Accept-Encoding deny all
# TIMEOUTS
# --------
forward_timeout 240 second
connect_timeout 30 second
read_timeout 600 second
request_timeout 60 second
shutdown_lifetime 10 second
# ADMINISTRATIVE PARAMETERS
# -------------------------
cache_mgr amanda
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname amanda
# DNS OPTIONS
# -----------
dns_timeout 10 seconds
dns_nameservers 180.131.144.144 180.131.144.145
# MISCELLANEOUS
# -------------
reload_into_ims on
coredump_dir /cache
pipeline_prefetch on
vary_ignore_expire on
offline_mode off
memory_pools off
client_db off
client_db dimatikan buat ningkatin performance...klo mau diaktifkan silahkan di kasih pager aja bagian itu jadi gini

#client_db off

lalu sudo squid -k reconfigure

klo udah silahkan squidclient mgr:info :D
User avatar
amanda
Posts: 203
Joined: 22 May 2010, 02:35

Re: Koreksi squid.conf

Postby amanda » 14 Jun 2010, 21:33

-disable-ident-lookups --disable-ident-lookups' ini yang menyebabkan Number of clients accessing cache always zero, setelah re config re compile tanpa option tsb
menghentikan squid dari melihat ident di setiap koneksi, bisa juga untuk mencegah serangan DOS yang dapat mematikan squid server, yang biasanya dengan cara membuka ribuan koneksi. Dan bukan menyimpan statistik koneksi

client_db on jika diaktifkan maka squid akan menyimpan statistik semua klien, hal ini bisa membebani memori, maka sebaiknya dinonaktifkan.

thx maz resha (solved) :D

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 2 guests