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*.* //\*.*****.* //\*.*****.* //\*.*****.* //\*.*"Kata Terlarang"*.* //\*.*$
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

[quote=Smith]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