[/size]
หรือปลาหมึกย่างรสเด็ดเผ็ดนรกแตก ;D ;D ;Dหลักจากเวอร์ชั่นแรกคนโหลดไปแสนกว่าๆจาก url ของ thaiware http://www.thaiware.com/main/info.php?id=602 มาคราวนี้ร้อนกว่าจัดจ้านกว่า เผ็ดกว่าที่สำคัญกินง่ายกว่ามากๆด้วยครับ ( ติดตั้งง่าย ลบง่าย )แค่ next ๆๆๆ yes ๆๆๆ :P โอ้ๆเอ้ยมะช่ายแล้น ;D ;Dก็เสร็จแล้ว MIX เองกะมือไม่เชื่อดูรูป อิอิ ลองอ่านดูครับหละเอียดชนิด FREAM ต่อ FRAME
http://www.siamcafe.net/squidได้แก้ไขใช้ไปนานๆแล้วอืดครับ ใครโหลดไปก่อนหน้านี้ข้อให้โหลดใหม่อีกทีครับสุดท้ายจริงๆแล้วครับ (
ให้ลบของเก่าทิ้งแล้วลงใหม่เลยนะครับ)เวปผู้ผลิต :
http://www.serassio.it/จัดให้แล้วตามคำเรียกร้อง setup เบ็ดเสร็จจุดเดียว ง่ายยิ่งกว่า Counter Service ตาม 7-Eleven มีตัว UNINSTALL ให้ด้วยสำหรับคนที่อยากจะลบทิ้ง
ดูใน Dir c:\squidคำเตือน : กรุณารัดเข็มขัดก่อนลงโปรแกรมเพื่อความปลอดภัย ( เพราะแรงหลังติดเบาะ ;D )Download ได้ที่ไฟล์ http://www.thaiware.com/main/info.php?id=602 เพื่อความแฟร์ในการวัดสถิติการดาวน์โหลด
(Squid.conf )Special Thanks By MR.Jasda2003 @ siamcafe
Powerd By MR.Siam@CaFeเหตุผลที่ว่าต้องให้ 2.5.STABLE11-NT-Delay Pools เพราะว่ามันสามารถจำกัด b/w ได้ใครที่ใช้เน็ตสายเดียวหรือกี่สายก็แล้วแต่สามารถใช้ได้หมด
ใครที่เคยใช้มาก่อนแล้วให้ ลบตัวเก่าทิ้งกรุณารีสตาดเครื่องสัก 1 ครั้งนะครับแล้วค่อยลงตัวใหม่
SquidNT config มันหลากหลายถ้าใครเชียวชาญ อยาก ปรับเสริมเติมแต่งก็ตามสบายครับ อันนี้ก็เป็นแค่ส่วนหนึ่งเท่านั้นครับซึ่งผมก็ไม่ได้เชียวชาญอะไรมากมายเพียงแต่อยากแบ่งประการณ์ดีๆ + ความคิดให้ชาวเรา siamcafe ได้รับรู้ก็เท่านั้นหละครับว่า proxy server หรือ proxy cache ไม่ได้ด้อยในเรื่องความแรงแม้ไม่ได้ใช้บน ลีนุก แถมยังจาแรงกว่า proxy ISA และอื่นๆอีกมากมาย ท่าเรา set ถูกต้อง
การติดตั้ง( แบบ Manual ) : แตกไฟล์ .rar แล้วก๊อปโฟรเดอร์ squid เอาไปไว้ไดร์ C:\ แล้วเข้า dos mode รูปแบบ C:\squid\sbin>squid -z แล้ว enter <<< เพื่อสร้างโฟรเดอร์เก็บ cache พอเสร็จ
C:\squid\sbin>squid -i <<<< เสร็จแล้วสำหรับการติดตั้งปิด dos mode ได้เลย
การลบ : รูปแบบ ให้ปิดการทำงานของ squid ที่ Services แล้วเข้า dos mode รูปแบบ C:\squid\sbin>squid -r หลังจากนั้นลบทิ้งโฟรเดอร์ squid ในไดร์ C:\ ทิ้งได้เลย
ปัญหา : 1. ถ้าเครื่องคุณใช้ modem ในการเชื่อมต่อ squid จะไม่เปิดการทำงาน auto แน่นอนครับ เพราะหลักการมัน ต้องมีการเชื่อต่อ internet ก่อนจึงสามารถเปิด squid ได้ครับ แต่ท่าใช้ router ไม่เป็นไร
แนะนำท่าใช้ modem ในการเชื่อมต่อ ให้ไปที่ Services ไปที่ squidNT คลิกขวาไปที properties ใน startup เลือกเป็น manual คือ เวลาคุณเปิดเครื่องขึ้นมา ให้คุณต่อเน็ต แล้วทำการ start squid เอง
2. cache_mem xx MB จะว่าไปแล้วมันเป็นตัวคอย เบรก การทำงานของ h/d ไม่ให้ทำงานหนักสะมากกว่า (ไม่ได้ช่วยให้เร็วขึ้น & เข้าถึงข้อมูล) เพราะท่า set ทุกอย่างถูกต้องแล้วและปิดการทำงานของ cache_mem ไป h/d โคตรทำงานหนักเลยแต่สำหรับวง lan ที่มีเครื่อง client สัก 20-30 เครื่องคงไม่มีปัญหาไรมาก แต่ท่ามากกว่านั้นคงต้องเอา cache_mem เข้ามาช่วย (เพราะป้องกัน h/d คุณพังก่อนเวลาที่กำหนด) ท่าเข้าเวปพร้อมกันทุกเครื่อง ไฟ h/d มันจาแดงตลอดเลย คิดดูเอาเองเหอ
3. อย่ายึดติดรูปแบบ config เก่าๆนะครับเพราะจริงๆแล้วมันใช้ได้มั้งไม่ได้มั้ง + บักค์ ( แต่ใน squid ของ ลีนุก มันทำได้ ทุกคำสั่ง แต่ SquidNT บางอย่างยังใช้การไม่ได้แถมทำให้อืดอีก config
ผมมันเลยดูไม่ค่อยเหมือนชาวบ้านเค้า + ตัดที่ไม่จำเป็นออกไปเพราะทำให้อืด ) + ท่าชอบแรงๆ
4. เราจะรู้ได้ยังไงว่า squid ทำงาน : ให้เข้าไปดูที่ Services ไปที่ SquidNT ท่าสตารด์ผ่านก็ทำงานแล้วหละครับ
การ setup เครื่อง server+client : เครื่องที่ลง squid ให้ไปที่ tool ของ ie ไปที่ internet options ไปคลิกที่ connections ท่าให้โมเดมต่อก็คลิกที่ settings ใน proxy server ใส่ 127.0.0.1 port 8080 ท่าเป็น routerไปคลิกที่ lansettings แล้วใส่ 127.0.0.1 port 8080
: ส่วนเครื่อง client ให้ไปที่ tool ของ ie ไปที่ internet options ไปคลิกที่ connections ไปคลิกที่ lan settings แล้วใส่ ไอพีเครื่องที่ลง squid พอรด์ 8080
การเปิดใช้งานคำสั่ง : ถ้าเปิดใช้งานคำสั้งบรรทัดนั้นให้ลบ # ออก ท่าปิดการใช้งานคำสั้งนั้นให้ใส่ # ครับ (การแก้ไข config แต่ละครั้งให้รีสตาด squid ทุกครั้ง
สรุป : ถ้าใช้เน็ต adsl จาเห็นผลมากๆ (ตลึงในความแรงๆสุดๆ) ท่าใช้ 56 k ก็พอได้ แต่สู้ adsl ไม่ได้ดอก
คำเตือน : แก้ไขทุกครั้งกรุณา รีสตาด squid ด้วยนะครับ (แก้ไขมากเน่าเอา + ไม่ refresh ข้อมูลใหม่เข้ามาไม่รู้ด้วยนะครับถ้าเป็นหยังงั้นจริงให้ลงใหม่ครับ)
มาดู config กัน รูปแบบhttp_port 8080
<<< จะให้ใช้พอรท์ไหน (ในที่นี้คือ 8080 )#cache_mem 8 MB
<<< ถ้าใครมีเครื่อง client มากกว่า 20-30 ขึ้นไปแล้ว h/d ทำงานหนักให้เปิดใช้ครับ#cache_peer xxxxxx parent xxx 3130 no-query
<<< ถ้าใช้เน็ตของ isp อะไรก็แล้วแต่แล้วมี proxy ให้เปิดใช้ + พร้อมใส่ค่า proxy ลงไป (cache_peer พอกซี่ parent พอรท์ 3130 no-query)hierarchy_stoplist cgi-bin ? .pl .cgi .php .php3 .php4 .shtml
acl QUERY urlpath_regex cgi-bin \? .pl .cgi .php .php3 .php4 .shtml
no_cache deny QUERY
cache_dir ufs C:/squid/cache 512 24 256
<<< cache ต้องมากหน่อยเพราะใช้พื้นที่ในการเก็บค่อนข้างเยอะไม่งั้นเต็มเร็ว (ขนาดนี้ก็เยอะแระ) หรือจะเพิ่มอีกก็ได้แต่ต้องไม่เกิน 80 % ของไดร์นั้นcache_access_log none
cache_store_log none
cache_log none
pid_filename none
refresh_pattern -i \.art$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.crw$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.djvu$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.ttf$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.fpx$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.icn$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.ico$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.icl$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.kdc$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mag$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.sif$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.aifc$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.aiff$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.asf$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.au$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.avi$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.m1v$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mid$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.midi$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mp2$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mp2v$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mp3$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mpa$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mpe$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mpeg$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mpg$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mpv2$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.rmi$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.snd$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.wav$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.wma$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.wmv$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.sid$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pcd$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pic$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pict$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pix$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pbm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pgm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.ppm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.eps$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.psp$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.xbm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.xpm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.bmp$ 525960 80% 525960 reload-into-ims
<<< พวกนี้คือหัวใจของความเรงเลยครับ ไม่ต้องเพิ่มไรแล้วครับที่ครบสูตรแล้วครับrefresh_pattern -i \.jpeg$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pcx$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.png$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.tga$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.tiff$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.gif$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.wmf$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.emf$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pic$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.iff$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.psd$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.ras$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.rs$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.sgi$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.swf$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pdf$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.exe$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.zip$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.rar$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mov$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.cda$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mp1$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.aac$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.nsa$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.ogg$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.kar$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.miz$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mod$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mdz$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.nst$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.stm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.stz$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.s3m$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.s3z$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.it$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.itz$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.xm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.xmz$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.mtm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.ult$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.669$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.far$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.amf$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.okt$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.ptm$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.voc$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.aif$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.m2v$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.nsv$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.m3u$ 525960 80% 525960 reload-into-ims
refresh_pattern -i \.pls$ 525960 80% 525960 reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl keyword url_regex -i sex
<<< บล๊อคคำหรือเวปที่มีความหมายเกี่ยวกับคำๆนั้น (รูปแบบ sex xxx musicstation ที่ไม่ใส่เยอะเพราะกลัวเข้าบางเวปไม่ได้)http_access deny keyword
acl download urlpath_regex -i \.mp3$
<<< บล๊อคไฟล์ที่ห้าม d/l (รูปแบบ \.exe$ \.zip$ \.rar$ \.mp3$ ที่ใส่แค่ .mp3 เพราะว่ามีบางเกมส์ online ยังต้อง d/l .zip .exe อยู่กลัวมีปัญหา)http_access deny download
acl all src 0.0.0.0/0.0.0.0
acl localnet src 192.168.0.0/255.255.255.0
<<< ท่าเครื่องใช้ไอพีคราส 192.168.0.1 ก็ให้ใช้ค่านี้ถ้าใครใช้ค่าอื่นนอกเหนือจากนี้ให้เปลี่ยนด้วย (รูปแบบ 192.168.1.0)acl localhost src 127.0.0.1/255.255.255.255
acl manager proto cache_object
acl Safe_ports port 21 80 443 563 70 210 280 488 591 777 1025-65535
acl CONNECT method CONNECT
http_access allow localnet
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
cache_mgr Adminstrator
cache_effective_user squid
cache_effective_group squid
visible_hostname Siamcafe.net
ie_refresh on
#delay_pools 1
#delay_class 1 1
#delay_access 1 allow localnet
#delay_parameters 1 20000/20000
<<< ถ้าใครอยากจำกัด b/w เครื่อง client ก็ให้เปิดใช้ delay ทุกตัว (ความเร็วที่เปิดให้ client 200 kbps)ความสามารถ1. ใช้เครื่องเดียวได้
2. ใช้กับวง lan ได้
3. จำกัด b/w ได้
4. บล๊อค คำหยาบหรือเวปที่มีคำหรือความหมายเกี่ยวข้อง + บล๊อคไฟล์ได้
นอกนั้นไม่มีอะไรแล้วครับถ้ามีปัญหาในการติดตั้งหรือปัญหาต่างๆ ลองศึกษาหาข้อมูลได้ที่http://www.siamcafe.net/squid1.html http://www.siamcafe.net/board/index.php?topic=2347.0http://www.siamcafe.net/board/index.php?topic=4536.0http://www.siamcafe.net/board/index.php?topic=9285.msg32316;topicseen#msg32316ปล. ตัวนี้ไม่ต้องแก้ไขอะไรเลยสามารดติกตั้งใช้ได้เลยแต่ถ้าใครมี proxy ของ isp ที่ใช้บริการอยู่อยากจะใส่ก็แก้ไขได้เลย ใครอยากจะจำกัด b/w ก็เปิดใช้สะ h/d ใครคิดว่าทำงานหนักก็ให้เปิด cache_mem สะ
(ยิ่งค่า cache_mem ยิ่งมากการทำงานของ h/d จาช้าลงยิ่งน้อยยิ่งเร็ว......ทำงานหนัก)ISP Proxy ต่างๆcache_peer proxy.infonews.co.th parent 8080 3130 no-query
<<< INFONEWS (INFOACCESS)cache_peer proxy.wnet.net.th parent 8080 3130 no-query
<<< WORLDNET (APRICOT)cache_peer proxy.sgn.net.th parent 8080 3130 no-query
<<< SIAM GLOBAL ACCESScache_peer proxy.linethai.co.th parent 8080 3130 no-query
<<< DATA-LINETHAIcache_peer proxy.asiaaccess.net.th parent 8080 3130 no-query
<<< ASIACCESScache_peer proxy.cwn.net.th parent 8080 3130 no-query
<<< CWN-INTERNETcache_peer proxy.asianet.co.th parent 8080 3130 no-query
<<< ASIANETcache_peer proxy.loxinfo.co.th parent 8080 3130 no-query
<<< LOXINFO cache_peer proxy.samart.co.th parent 8080 3130 no-query
<<< SAMARTcache_peer proxy.pacific.net.th parent 8080 3130 no-query
<<< PACIFIC cache_peer proxy.roynet.co.th parent 8080 3130 no-query
<<< ROYNETcache_peer proxy.siamit.co.th parent 8080 3130 no-query
<<< SIAM-ITcache_peer netproxy1.inet.co.th parent 8080 3130 no-query
<<< I-NETcache_peer proxy.idn.co.th parent 8080 3130 no-query
<<< IDIA-NET cache_peer proxy.anet.net.th parent 8080 3130 no-query
<<< A-NETcache_peer proxy.ji-net.com parent 8080 3130 no-query
<<< JI-NET cache_peer proxy.sga.net.th parent 8080 3130 no-query
<<< E-GOcache_peer proxy.cscoms.com parent 8080 3130 no-query
<<< CS cache_peer proxy.ksc.net.th parent 8080 3130 no-query
<<< KSCใช้แล้วผลเป็นยังไงประทับใจไม๊ กรุณา มาบอกกล่าวกันด้วยนะครับ จะได้รู้ว่าแรงหรือไม่แรง+เคยเจอแรงๆแบบนี้เปล่า (แรงกว่าตัวก่อนหน้านี้อีกเท่าตัวครับ) ขอขอบคุณ คุณบอม มากๆครับที่สละพื้นที่อันมีค่าให้ผมได้โม้เต็มที : จากใจจริงby jasda2003
เห็นคน รีเควสกันมาเยอะ ประกอบกับวันนี้ว่างๆ อารมณ์ดีๆ เลย......
จัดให้แล้วตามคำเรียกร้อง
อ้อทุกอย่าง FREE นะครับ ไม่ต้องเสียค่าใช้จ่ายใดๆขอแค่ลงความเห็นกันเยอะๆให้ชื่นใจก็พอแล้วครับsetup เบ็ดเสร็จจุดเดียว ง่ายยิ่งกว่า Counter Service
หุๆๆ :D
รับประกัน ไม่เร็วให้เตะ
ลงยากส์ให้ถีบ
อ้ออย่าลืมนะครับหากว่าคุณไม่ได้ใส่ ip localhost ( กรณีใช้ตามบ้าน ปลาหมึกตัวนี้จะไม่ถูกใช้งานใดๆทั้งสิ้นเลยนะครับ )
กรณีที่เป็น lan หรือต่อแบบ Dial up ก็ดูภาพเอาเลยครับ
555 ;D
By MR.Siam@CaFeปล.สำหรับมือใหม่หากไม่เข้าใจ ลงเสร็จให้ restart เครื่องแทนก็ได้ครับ หรือหากต้องการลองเลย ก็ไป Start Squid ที่ Service ดังภาพ
[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]