คืออว่า ร้านผมใช้เน็ต 2 ตัวอ่ะคับ สายเกมส์(TT&T) IP 192.168.2.1 , สายเวป TOT IP 192.168.2.10
เครื่อง Server ปล่อยเวป (ใส่ Squid) IP 192.168.2.99
Subne 255.255.255.0
G eteway 192.168.2.10
สายเกมส์นี้คือให้เครื่องลูก ยิงตรงมาที่เร้าเตอร์เลยอ่ะคับ IP 192.168.2.101
Subne 255.255.255.0
Geteway 192.168.2.1
เครื่องลูก IE ใส่ proxy 192.168.2.99 : 8080
**มีปัญหาตรงที่เวลาโหลดแพช เครื่องลูกจะดึงเน็ตเกมส์มาใช้อ่ะคับ ไม่ได้ดึงจาก Server มันไม่ได้แยกเน็ตอ่ะคับ
แต่เล่นเวปปกติม่ะมีปัญหานะคับ มีเฉพาะโหลดแพช ใครก็ได้ช่วยทีคับ
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# SquidNT 2.5 STABLE12-NT Delay Pools #
# Powerd By MR.Siam@CaFe #
# SquidNT Config By MR.Jasda2003 @ siamcafe #
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# NETWORK OPTIONS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
####squid-2.5.STABLE1-NT-bin เป็นโปรแกรมที่จัดทำโดย เวป
http://www.serassio.it/ ทางสยามคาเฟ่เป็นเพียงผู้ที่นำมาประยุกต์และได้จัดการแก้ไขconfig
#### ที่จำเป็นๆต่อการใช้งานเท่านั้น ซึ่งสามารถใช้ได้สำหรับคอมพิวเตอร์ 1 เครื่อง โดยไม่ต้องใช้ lancard และสำหรับ Lan ทั้งวงเลยก็ได้
#### ทางผู้เขียนไม่ได้เชี่ยวชาญในการ Config SquidNT และไม่ได้เป็นผู้รุ้อย่างลึกซึ้งแต่อย่างใดหากเกิดความผิดพลาด บางประการทางผู้เขียน ขออภัยมา ณที่นี้ด้วยครับ
#### แต่ด้วย Config นี้ทางผุ้เขียนได้ทดสอบและลองใช้งานแล้ว สามารถ run ผ่านและใช้งานได้ แต่สามารถ ปรับแต่งเพิ่มเติมได้ตลอดครับ
#### จัดทำคู่มือและ config โดย MR.Siam@CaFe
####
[email protected] ####
http://www.siamcafe.net#### TIP เพิ่ม Speed ได้อีก หลายเท่า ##################################### คำสั่ง Cache_peer มหัศจรรย์.................
###หมายเหตุ ใส่ได้เฉพาะ proxy ของ isp ที่คุณใช้ตัวอย่างเช่นถ้าคุณต่อเนตของ ksc ก็จะสามารถใช้ cache_peer proxy.ksc.net parent 8080 3130 no-query ได้เป็นต้น
#cache_peer proxy.anet.net.th parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ A-net
#cache_peer proxy.asiaaccess.net.th parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Asiaccess
#cache_peer proxy.asianet.co.th parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Asianet
#cache_peer proxy.cscoms.com parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ CS - INternet
#cache_peer proxy.cwn.net.th parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ CWN internet
#cache_peer proxy.linethai.co.th parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Data Linethai
#cache_peer netproxy1.inet.co.th parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Inet
#cache_peer proxy.idn.co.th parent 8080 3130 no-query ## สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Idia net
#cache_peer proxy.infonews.co.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ InfoNews (InfoAccess)
#cache_peer proxy.ji-net.com parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Jusmine Internet ( JI )
#cache_peer proxy.ksc.net.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ KSC
#cache_peer proxy.loxinfo.co.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Loxinfo
#cache_peer proxy.roynet.co.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Roynet
#cache_peer proxy.samart.co.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Samart
#cache_peer proxy.sgn.net.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ Siam Global Access
#cache_peer proxy.siamit.co.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ SiamIT
#cache_peer 203.113.0.31 parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ TOT Free Click
#cache_peer proxy.wnet.net.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ WorldNet (Apricot)
#cache_peer proxy.sga.net.th parent 8080 3130 no-query ##สำหรับคนที่ต่อเนตโดยใช้ ISP ของ E-GO
#cache_peer proxy.ksc.co.th sibling 8080 3130 no-query ### เอาไว้สำหรับ สำรองกรณี Proxy ตัวแรกดับนะครับ
### คุณจะไม่สามารถใช้ Proxy ข้าม ISP กันได้นะครับเพราะส่วนใหญ่จะถูก BLock IP ไว้หากใช้ ISP ใหนกรุณาเอาเครื่องหมาย # ออกนะครับ
icp_port 3130 # icp_port เลือกเป็น Default ไปครับ หากต้องการไป Squid ไปเกาะ Proxy ของ Isp ที่คุณต่อเพื่อเพิ่มความเร็วอีกหละก็ให้แก้ไขตามตัวอย่างนี้ได้เลยนะครับ
http_port 8080
#never_direct allow all # ส่วนที่ผม # ไว้ 5 บรรทัดนี้เป็นส่วนของการทำ Transparent นะครับ หากต้องการใช้ก็ให้เอา # ออก
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
acl QUERY urlpath_regex cgi-bin \?
# บังคับอยู่แล้วว่าต้องใช้ครับทำให้ Squid เลือกใช้สำหรับเวป ที่ใช้ cgi ได้
no_cache deny QUERY
# บังคับเหมือนกัน
#ssl_unclean_shutdown off
pid_filename /squid/squid.pid
# อันนี้ก็ต้องใช้ครับบังคับครับ Pid_files name หน้าที่คือเอาไว้สำหรับเก็บค่า Process ID ครับ
# ด้านล่างนี่คือถ้าเอาออกก็จะมีการเก็บ Log นะครับแต่ผมไม่ชอบเพราะเปลือง Hdd เปล่าๆ
cache_access_log /squid/var/logs/access.log
cache_log /squid/var/logs/cache.log
cache_store_log /squid/var/logs/store.log
emulate_httpd_log off
log_mime_hdrs off
forwarded_for on
acl all src 0.0.0.0/0.0.0.0
acl localhost src 192.168.2.10/255.255.255.0
#acl localnet src 192.168.0.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow localhost
http_access allow !Safe_ports
http_access allow CONNECT !SSL_ports
#http_access allow localnet
http_access allow all
maximum_object_size 4048 KB
minimum_object_size 0 KB
cache_mem 512 MB
cache_dir ufs /squid/cache 256 16 256
#cache_swap_low 90
#cache_swap_high 95
#cache_dns_program c:/squid/dnsserver.dll
visible_hostname proxyserver_by_siamcafe.net
cache_mgr
[email protected]cache_effective_user nobody
cache_effective_group nogroup
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# Copyright 2006 Siamcafe@net co.ltd All Rights Reserved
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #