บทความอัพเดทในเว็บ ขออนุญาตอัพเดทช่องทาง https://fb.com/siamcafefan

ผู้เขียน หัวข้อ: ช่วยบอกทีครับ SquidNT2.6 Stable6 Ver 2 Fast Edtion BY Siamcafe  (อ่าน 3306 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ myloveting

  • มือใหม่
  • *
  • กระทู้: 3
  • Reputation: 0
ช่วยบอกทีครับ SquidNT2.6 Stable6 Ver 2 Fast Edtion BY Siamcafe
« เมื่อ: กุมภาพันธ์ 13, 2012, 07:09:11 am »
ช่วยบอกทีครับ SquidNT2.6 Stable6 Ver 2 Fast Edtion BY Siamcafe

ผมนำมาดัดแปลงนิดหน่อย ให้เก็บ log ได้
1.cache ทำงานปกติ (เปิดเข้าเว็บ cache ก็เริ่มโตขึ้นปกติ)
2.log file ก็ทำงานปกติ (เปิดเว็บทุก ip เก็บ log สมบูรณ์แบบ) ตัวอย่าง
2012-02-13 12:08:16    499 192.168.0.107 TCP_MISS/200 2502 GET http://i3.ytimg.com/i/6pceO-_xFCbwuhiOF7hAqg/1.jpg? - DIRECT/74.125.236.40 image/jpeg
2012-02-13 12:08:16    265 192.168.0.107 TCP_MISS/200 10924 GET http://i4.ytimg.com/i/cUUq99-SsRILo_2VPo6OTA/1.jpg? - DIRECT/74.125.236.41 image/png
2012-02-13 12:08:16    390 192.168.0.107 TCP_MISS/200 24068 GET http://i2.ytimg.com/vi/ITOvRYmwGb4/hqdefault.jpg - DIRECT/74.125.236.46 image/jpeg
2012-02-13 12:08:16    468 192.168.0.107 TCP_MISS/200 26590 GET http://i3.ytimg.com/vi/fbfon6IhJk0/hqdefault.jpg - DIRECT/74.125.236.40 image/jpeg
2012-02-13 12:08:16    499 192.168.0.107 TCP_MISS/200 14508 GET http://i3.ytimg.com/vi/27ln9aKafIE/hqdefault.jpg - DIRECT/74.125.236.40 image/jpeg
2012-02-13 12:08:16    140 192.168.0.107 TCP_MISS/200 1646 GET http://s.ytimg.com/yt/favicon-refresh-vfldLzJxy.ico - DIRECT/74.125.236.42 image/x-icon

แต่ปัญหาผมคือ จำกัดแบนวิชไม่ได้สักที พยายามมาหลายวันละครับ ผู้รู้ช่วยอธิบายให้เข้าใจทีนะ เน็ตผม 8/1 เมก ครับ


icp_port 0
http_port 3128
http_port 800
http_port 8080


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 2048 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 f:/cache/cache1 1024 16 256


logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
logformat common %{%Y-%m-%d %H:%M:%S}tl %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
access_log f:/access.log common

access_log none
cache_log none
cache_store_log none

mime_table c:/squid/etc/mime.conf


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

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 80 21 443 563 70 210 210 1025-65535 280 488 591 777
acl CONNECT method CONNECT
acl localnetwork0 src 127.0.0.0/8
acl localnetwork1 src 192.168.0.0/24


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


#acl limit src 192.168.0.100-192.168.0.200/255.255.255.255
#acl limitdown url_regex -i .mp3 .ogg .wav .wma .3gp .avi .mov .mp4 .mpeg .mpg .wma .mkv .divx .vob .iso .nrg .zip .rar .7z .exe .msi

acl bandwidfile url_regex -i "/etc/file_bandwid.conf"
delay_pools 2
delay_class 1 2
delay_class 2 2
delay_access 1 allow bandwidfile localhost
delay_access 1 deny all
delay_access 2 allow localhost
delay_access 2 deny all 
delay_parameters 1 -1/-1 100000/100000
delay_parameters 2 1024000/1024000 200000/200000

ie_refresh on


visible_hostname proxyBYsiamcafe.net

cache_mgr [email protected]

ftp_sanitycheck off

ออฟไลน์ myloveting

  • มือใหม่
  • *
  • กระทู้: 3
  • Reputation: 0
Re: ช่วยบอกทีครับ SquidNT2.6 Stable6 Ver 2 Fast Edtion BY Siamcafe
« ตอบกลับ #1 เมื่อ: กุมภาพันธ์ 13, 2012, 08:24:34 am »
ลืมบอกสเป็กเครื่องครับ
เน็ต adsl ดาวน์โหลด/อับโหลด 8/1 เมก
สเป็กเครื่อง เป็นเครื่องที่ทำใน server โนฮาร์ดดิสก์

windows 7 64bit
ซีพียู i3 3.1 GHz
แรม ddr3  8 Gb
ฮาร์ดดิสก์ 1 os
ฮาร์ดดิสก์ 2-3 ทำเรด 0
ฮาร์ดดิสก 3-4 ทำเรด 0  <------------ เก็บ cache และ log file ในไดร์นี้ครับ
ไอพีวงแลน 192.168.0.1

file_bandwid.conf ข้างในกำหนดนามสกุลตามนี้ครับ

\.mpg$
\.ram$
\.rm$
\.iso$
\.raw$
\.wav$
\.mov$
\.torrent$
\.art$
\.crw$
\.djvu$
\.ttf$
\.fpx$
\.icn$
\.ico$
\.icl$
\.kdc$
\.mag$
\.sif$
\.aifc$
\.aiff$
\.asf$
\.au$
\.m1v$
\.mid$
\.midi$
\.mp2$
\.mp2v$
\.mpa$
\.mpv2$
\.rmi$
\.snd$


กำหนดแบนวิชแล้ว เน็ตเครื่องลูกดาวน์โหลดและเล่นได้เต็มสปีด
และควรปรับแต่งตรงใหนให้เข้ากับสเป็กเครื่องนี้ด้วยครับ ขอบคุณครับ

ออฟไลน์ cocore

  • นักเรียนประถม
  • ****
  • กระทู้: 59
  • Reputation: 0
Re: ช่วยบอกทีครับ SquidNT2.6 Stable6 Ver 2 Fast Edtion BY Siamcafe
« ตอบกลับ #2 เมื่อ: สิงหาคม 02, 2012, 06:14:31 am »
 :025: :025: