เปิดรับสมัครสมาชิก webboard ตามปกติแล้วครับ

ผู้เขียน หัวข้อ: Squid 2.6.STABLE6-NT v.4 by siamcafe ทำไมมันไม่...  (อ่าน 5251 ครั้ง)

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

ออฟไลน์ prosunza

  • ปี 1 เทอม 2
  • ***
  • กระทู้: 17
  • Reputation: 0
Squid 2.6.STABLE6-NT v.4 by siamcafe ทำไมมันไม่...
« เมื่อ: กันยายน 11, 2008, 06:20:12 am »
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 15000/15000   <<< จำกัด Bandwidth ในการ Downloads ตามนามสุกลไฟล์ที่เรากำหนด ไฟล์คำสั่งเกี่ยวข้อง อยู่ใน etc/file_bandwid.conf (ความเร็วที่กำหนดให้ในที่นี้คือ 150 Kbps)
delay_parameters 2 51200/51200 20000/20000   <<< จำกัดความเร็วในการใช้ Internet


เอาไอตัวนี้ ก๊อปใส่  C:\Squid\etc\squid.conf     เอาไว้ล่างสุด แล้ว ผมใช้เน้ต TT&T 2 MB   จะแยก เกม  1.5 mb เน้ต 512 kb ผมต้องเปลี่ยนค่าตัวไหนอะ

delay_parameters 1 -1/-1 15000/15000   <<< จำกัด Bandwidth ในการ Downloads ตามนามสุกลไฟล์ที่เรากำหนด ไฟล์คำสั่งเกี่ยวข้อง อยู่ใน etc/file_bandwid.conf (ความเร็วที่กำหนดให้ในที่นี้คือ 150 Kbps)        แล้วไอตัว  etc/file_bandwid.conf   มันอยุ่ไหนอะคับไม่เห็นมีเลย

delay_parameters 2 51200/51200 20000/20000   <<< จำกัดความเร็วในการใช้ Internet



โค๊ด: [Select]
ตัว 51200/51200   20000/20000 << คือ ความเร็ว download / upload หรือ ที่ได้จาก ISP มาอ่ะคับ (ของผม 2 mb) ผมต้องเปลี่ยนเป็น  204800/204800 ใช่มั้ยคับ

ช่วยแนะทีคับ มือใหม่หัดใช้

ขอบคุณมากคับ


Signature cleanned by Admin

ออฟไลน์ myloveting

  • มือใหม่
  • *
  • กระทู้: 3
  • Reputation: 0
Re: Squid 2.6.STABLE6-NT v.4 by siamcafe ทำไมมันไม่...
« ตอบกลับ #1 เมื่อ: กุมภาพันธ์ 13, 2012, 09:41:12 am »
ผมก็งงเหมือนกันครับ ไปอ่านดูหลายๆที่ บ้างก็กำหนด 10000 = คือจำกัดที่ 100 k บ้างก็เอา จำกัดที่ 100 k คือเอา 100k*1024 =102400  
แล้วตัวเลข 10000 และ 102400 เท่ากับ 100 k แล้วอันไหนถูกครับ

ความเร็วเน็ตผม 8/1 เมก ต้องกำหนดแบบไหน ช่วยบอกที

#1--------------------------------------------
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 102400/102400 <-----------ตัวนี้เอา 100 k*1024 =102400 จริงหรือ
delay_parameters 2 1048576/1048576 <--------เน็ตผม 8 เมกดาวน์โหลดได้เต็มที่ 1024 k*1024 =1048576 จริงหรือ   204800/204800 ตัวนี้เอา 200k*1024 =204800 จริงหรือ

#2--------------------------------------------
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 10000/10000 <-----------เท่ากับจำกัด 100 k จริงหรือ
delay_parameters 2 102400/102400 <-----------เน็ตผม 8 เมกดาวน์โหลดได้เต็มที่ 1024 k จริงหรือ 200000/20000 <----------เท่ากับจำกัด 200 k จริงหรือ

#3--------------------------------------------
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/10000 <---------------เท่ากับจำกัด 100 k จริงหรือ
delay_parameters 2 819200/819200 <-------------ความเร็ว adsl 8เมก*1024 = 819200 จริงหรือ    20000/20000 <----------เท่ากับจำกัด 200 k จริงหรือ

อันไหนถูกครับ ผมสับสน และยังไม่สามารถจำกัดแบนวิชได้เลย เครื่องลูกยังดาวน์โหลดได้เต็มสปีด
ไฟล์ใน file_bandwid.conf นามสกุลคือ
\.exe$
\.mp3$
\.vqf$
\.tar$
\.gz$
\.dat$
\.wmv$
\.wma$
\.rpm$
\.zip$
\.rar$
\.avi$
\.mpeg$
\.mpe$
\.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: Squid 2.6.STABLE6-NT v.4 by siamcafe ทำไมมันไม่...
« ตอบกลับ #2 เมื่อ: มิถุนายน 20, 2012, 02:53:37 am »
 :024: :024:ขอบคุณมากๆนะครับ