เอารายการทั้งหมดใน squid.conf มาให้ช่วยตรวจแก้ไขให้หน่อยค่ะ (อ้างอิง จาก #951) เป็นร้านเน็ตนะค่ะ มีเครื่องลูก 4 เครื่อง สเปกเดียวกันหมด ram 256 MB ใช้เน็ต DSL ของ TOT ความเร็ว 256 ลงโปรแกรม วินโด XP Professional v.2002 service pack 2
ต้องการให้เปิดเวปได้เร็วมาก ๆ และให้ block เวปต้องห้าม และ block การดาวโหลดเกือบทุกตัวโดยสามารถระบุได้นะค่ะ ช่วยแก้ไขให้หน่อยนะค่ะ ตอนนี้ยังงงๆ อยู่ค่ะ (พอเข้าไปแก้เป็น #delay_pools 2 ทั้งกลุ่ม ดูเหมือนจะเร็วขึ้นค่ะ)
icp_port 0
http_port 3128
http_port 800
http_port 8080
acl Safe_ports port 21 70 80 210 280 443 563 488 591 777 1025-65535 88
#hierarchy_stoplist cgi-bin ? .acgi .asp .cgi .css .chtml .htm .html .jhtml .js .jsp .perl .phtml .pl .php .php3 .php4 .shtml .xhtml .xml
#acl QUERY urlpath_regex cgi-bin \? \.acgi \.asp \.cgi \.css \.chtml \.htm \.html \.jhtml \.js \.jsp \.perl \.phtml \.pl \.php \.php3 \.php4 \.shtml \.xhtml \.xml
#cache deny QUERY
#cache_peer proxy.asianet.co.th parent 8080 0 no-query
#cache_peer 203.144.143.6 sibling 8080 0 no-query
#peer_connect_timeout 5 seconds
cache_mem 128 MB
#maximum_object_size_in_memory 24 Kb
#half_closed_clients off
minimum_object_size 0 KB
maximum_object_size 25600 KB
#cache_swap_high 98%
#cache_swap_low 95%
memory_replacement_policy heap GDSF
cache_replacement_policy heap GDSF
cache_dir aufs c:/squid/cache/cache1 800 16 256
#cache_access_log C:/squid/var/logs/access.log
#cache_store_log C:/squid/var/logs/store.log
#cache_log C:/squid/var/logs/cache.log
#pid_filename C:/squid/squid.pid
mime_table C:/squid/etc/mime.conf
cache_access_log none
cache_store_log none
cache_log none
pid_filename none
log_mime_hdrs off
cache_effective_user squid
cache_effective_group squid
refresh_pattern -i .(zip|gz|xfs|exe|arj|npz|lha|lzh|rar|tgz|tar|rar|jar|nup|wz|Z)$ 525960 99% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(class|pdf|rtf|doc|wp|wp5|ps|prn)$ 525960 99% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(mov|avi|mpg|wav|au|mid|mp3)$ 525960 95% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(jpg|gif|jpeg|png|css|js)$ 525960 18000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(bmp|tif|tiff|xbm)$ 525960 17000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(swf)$ 525960 20000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern ^ftp: 4320 20% 43200
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 1440 50% 14400
refresh_pattern -i ^http://www.siamcafe.net 120 40% 360
refresh_pattern -i ^http://www.ji-net.com 120 40% 360
refresh_pattern -i ^http://www.pantip.com 120 40% 300
refresh_pattern -i ^http://www.sansuk.com 120 40% 360
refresh_pattern -i ^http://www.hunsa.com 120 40% 360
refresh_pattern -i ^http://www.google.com 120 40% 360
refresh_pattern -i ^http://www.hotmail.com 120 40% 360
refresh_pattern -i ^http://www.yahoo.com 120 40% 360
refresh_pattern -i ^http://www.icq.com 120 40% 360
refresh_pattern -i ^http://www.chaiyo.com 120 40% 360
refresh_pattern -i ^http://www.download.com 120 40% 360
refresh_pattern -i ^http://www.thaiware.com 120 40% 360
refresh_pattern -i ^http://www.redhat.com 120 40% 360
refresh_pattern -i ^http://www.freebsd.com 120 40% 360
refresh_pattern -i ^http://login.passport.net/uilogin.srf?id=2 120 40% 360
refresh_pattern -i ^http://www.mthai.com 120 40% 360
refresh_pattern -i ^http://www.kapook.com 120 40% 360
refresh_pattern -i ^http://www.thainetcafe.com 120 40% 360
refresh_pattern -i ^http://www.sanook.com 120 40% 360
refresh_pattern -i ^http://www.hunsa.com 120 40% 360
refresh_pattern -i ^http://www.hotmail.com 120 40% 360
refresh_pattern -i ^http://www.nanaidea.com 120 40% 360
refresh_pattern -i ^http://www.ragnarok.in.th 120 40% 360
refresh_pattern -i ^http://mail.yahoo.com 120 40% 360
refresh_pattern -i ^http://mail.yahoo.com/?.intl=us 120 40% 360
refresh_pattern -i ^http://www.overclockzone.com 120 40% 360
refresh_pattern -i ^http://www.ragnarok.in.th 120 40% 360
refresh_pattern -i ^http://www.ragnarok.in.th/refillaccount 120 40% 360
refresh_pattern -i ^http://www.ragnarok.in.th/r_main.html 120 40% 360
refresh_pattern -i ^http://www.i-kool.com 120 40% 360
refresh_pattern -i ^http://www.108-1009.com 120 40% 360
refresh_pattern -i ^http://www.yailek.com 120 40% 360
refresh_pattern -i ^http://www.keepalbum.com 120 40% 360
refresh_pattern -i ^http://www.pacific.net.th 120 40% 360
refresh_pattern -i ^http://www.songtoday.com 120 40% 360
refresh_pattern -i ^http://www.irr.co.th 120 40% 360
refresh_pattern -i ^http://www.yailek.com/photoclub/photo.php?id=20001 120 40% 360
refresh_pattern -i ^http://www.keepalbum.com/vote/memberalbum.php3?mid=75060 120 40% 360
refresh_pattern -i ^http://www.geocities.com/bondsnet 120 40% 360
refresh_pattern -i ^http://www.com-th.net 120 40% 360
refresh_pattern -i ^http://www.ego.co.th/home.html 120 40% 360
refresh_pattern -i ^http://www.easyhome.in.th 120 40% 360
refresh_pattern -i ^http://www.madoo.com 120 40% 360
refresh_pattern -i ^http://www.narak.com 120 40% 360
refresh_pattern -i ^http://www.sabye.com 120 40% 360
refresh_pattern -i ^http://www.mthai.com 120 40% 360
refresh_pattern -i ^http://www.yailek.com 120 40% 360
refresh_pattern -i ^http://www.thairath.co.th 120 40% 360
refresh_pattern -i ^http://www.dailynews.co.th/sunday.asp 120 40% 360
refresh_pattern -i ^http://www.manager.co.th 120 40% 360
refresh_pattern -i ^http://www.loxinfo.co.th 120 40% 360
refresh_pattern -i ^http://www.cscoms.com 120 40% 360
refresh_pattern -i ^http://www.siamcafe.net 1204 0% 360
refresh_pattern -i ^http://www.ji-net.com 1204 0% 360
refresh_pattern -i ^http://www.pantip.com 1204 0% 300
refresh_pattern -i ^http://www.sansuk.com 1204 0% 360
refresh_pattern -i ^http://www.hunsa.com 1204 0% 360
refresh_pattern -i ^http://www.google.com 1204 0% 360
refresh_pattern -i ^http://www.hotmail.com 1204 0% 360
refresh_pattern -i ^http://www.yahoo.com 1204 0% 360
refresh_pattern -i ^http://www.icq.com 1204 0% 360
refresh_pattern -i ^http://www.chaiyo.com 1204 0% 360
refresh_pattern -i ^http://www.download.com 1204 0% 360
refresh_pattern -i ^http://www.thaiware.com 1204 0% 360
refresh_pattern -i ^http://www.redhat.com 1204 0% 360
refresh_pattern -i ^http://www.freebsd.com 1204 0% 360
refresh_pattern -i ^http://login.passport.net/uilogin.srf?id=2 1204 0% 360
refresh_pattern -i ^http://www.mthai.com 1204 0% 360
refresh_pattern -i ^http://www.kapook.com 1204 0% 360
refresh_pattern -i ^http://www.thainetcafe.com 1204 0% 360
refresh_pattern -i ^http://www.sanook.com 1204 0% 360
refresh_pattern -i ^http://www.hunsa.com 1204 0% 360
refresh_pattern -i ^http://www.hotmail.com 1204 0% 360
refresh_pattern -i ^http://www.nanaidea.com 1204 0% 360
refresh_pattern -i ^http://www.ragnarok.in.th 1204 0% 360
refresh_pattern -i ^http://mail.yahoo.com 1204 0% 360
refresh_pattern -i ^http://mail.yahoo.com/?.intl=us 1204 0% 360
refresh_pattern -i ^http://www.overclockzone.com 1204 0% 360
refresh_pattern -i ^http://www.ragnarok.in.th 1204 0% 360
refresh_pattern -i ^http://www.ragnarok.in.th/refillaccount 1204 0% 360
refresh_pattern -i ^http://www.ragnarok.in.th/r_main.html 1204 0% 360
refresh_pattern -i ^http://www.i-kool.com 1204 0% 360
refresh_pattern -i ^http://www.108-1009.com 1204 0% 360
refresh_pattern -i ^http://www.yailek.com 1204 0% 360
refresh_pattern -i ^http://www.keepalbum.com 1204 0% 360
refresh_pattern -i ^http://www.pacific.net.th 1204 0% 360
refresh_pattern -i ^http://www.songtoday.com 1204 0% 360
refresh_pattern -i ^http://www.irr.co.th 1204 0% 360
refresh_pattern -i ^http://www.yailek.com/photoclub/photo.php?id=20001 1204 0% 360
refresh_pattern -i ^http://www.keepalbum.com/vote/memberalbum.php3?mid=75060 1204 0% 360
refresh_pattern -i ^http://www.geocities.com/bondsnet 1204 0% 360
refresh_pattern -i ^http://www.com-th.net 1204 0% 360
refresh_pattern -i ^http://www.ego.co.th/home.html 1204 0% 360
refresh_pattern -i ^http://www.easyhome.in.th 1204 0% 360
refresh_pattern -i ^http://www.madoo.com 1204 0% 360
refresh_pattern -i ^http://www.narak.com 1204 0% 360
refresh_pattern -i ^http://www.sabye.com 1204 0% 360
refresh_pattern -i ^http://www.mthai.com 1204 0% 360
refresh_pattern -i ^http://www.yailek.com 1204 0% 360
refresh_pattern -i ^http://www.thairath.co.th 1204 0% 360
refresh_pattern -i ^http://www.dailynews.co.th/sunday.asp 1204 0% 360
refresh_pattern -i ^http://www.manager.co.th 1204 0% 360
refresh_pattern -i ^http://www.loxinfo.co.th 1204 0% 360
refresh_pattern -i ^http://www.cscoms.com 1204 0% 360
umask 027
via off
forwarded_for off
coredump_dir c:/squid/var/cache
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 21 70 80 210 280 443 563 488 591 777 1025-65535 88
acl CONNECT method CONNECT
acl localnetwork0 src 127.0.0.0/8
acl localnetwork1 src 192.168.1.0/24
acl lock url_regex 'C:/squid/etc/url.conf'
acl full_download src 'C:/squid/etc/ip_full_download.conf'
acl download url_regex -i 'C:/squid/block/block_file_download.conf'
http_access deny download all !full_download
acl sites url_regex 'C:/squid/block/block_sites.conf'
http_access deny sites
acl domains url_regex 'C:/squid/block/block_domains.conf'
http_access deny domains
acl words url_regex 'C:/squid/block/block_words.conf'
http_access deny words
acl blockclient src 'C:/squid/block/block_ip.conf'
http_access deny blockclient
#acl bandwidfile url_regex -i 'C:/squid/etc/file_bandwid.conf'
#delay_pools 2
#delay_class 1 2
#delay_class 2 2
#delay_access 1 allow bandwidfile localnet
#delay_access 1 deny all
#delay_access 2 allow localnet
#delay_access 2 deny all
#delay_parameters 1 -1/-1 10000/10000
#delay_parameters 2 25600/25600 15000/15000
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnetwork0
http_access allow localnetwork1
http_access deny all
http_reply_access allow all
icp_access deny all
ie_refresh on
visible_hostname proxyBYsiamcafe.net
cache_mgr
[email protected]ftp_sanitycheck off