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

ผู้เขียน หัวข้อ: Squid 2.5 Stable 12 SiamcafeEdtion ( โปรแกรมแก้ไขเนตไทยโคตรช้า 3 ) คลอดแว้วววววว  (อ่าน 362542 ครั้ง)

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

badboy4life

  • บุคคลทั่วไป
แก้ไขกันเยอะจริงๆ ผมก็ใช้แบบ ไม่ได้ปรับแต่งอ่ะ ยังไม่เก่ง อิอิ  ใช้เน็ตก็ไม่ได้เล่นอะไรมาก

Agen

  • บุคคลทั่วไป
ตอนนี้ผมลงSquid 2.5 Stable 12 SiamcafeEdtion บนวินโดว์ 2003 แจกเนทให้เครื่องลูก แต่ว่าเวลาเรียกข้อมูล บางเว็บเร็ว บางเว็บช้าครับ ช้าขนาดว่ารอนานมากเลยครับ คลิกแล้วรอโหลดนานจริงๆ เหมือนสัญญาณขาดๆหาย เกมส์ออนไลท์ก็เล่นไม่ค่อยได้ งงๆ มากครับ ตอนลองในวงแลน ไม่เกิน 5 เครื่องไวมากครับ พอย้ายไปอีกวง มันก็เกิดปัญหาอย่างข้างต้นครับ ไม่ทราบว่ามีผลมากจากอะไรบ้างครับ ผมอยากให้เล่นเกมส์ได้และเล่นเนทได้ไปด้วยครับ รบกวนผู้รู้มาตอบให้หน่อยนะครับ

jasda2003

  • บุคคลทั่วไป
ตอนนี้ผมลงSquid 2.5 Stable 12 SiamcafeEdtion บนวินโดว์ 2003 แจกเนทให้เครื่องลูก แต่ว่าเวลาเรียกข้อมูล บางเว็บเร็ว บางเว็บช้าครับ ช้าขนาดว่ารอนานมากเลยครับ คลิกแล้วรอโหลดนานจริงๆ เหมือนสัญญาณขาดๆหาย เกมส์ออนไลท์ก็เล่นไม่ค่อยได้ งงๆ มากครับ ตอนลองในวงแลน ไม่เกิน 5 เครื่องไวมากครับ พอย้ายไปอีกวง มันก็เกิดปัญหาอย่างข้างต้นครับ ไม่ทราบว่ามีผลมากจากอะไรบ้างครับ ผมอยากให้เล่นเกมส์ได้และเล่นเนทได้ไปด้วยครับ รบกวนผู้รู้มาตอบให้หน่อยนะครับ

น่าจะเป็นที่ เน็ตท่านมั้งครับ เพราะ squid มันไม่ได้มีส่วนเกี่ยวก่าเกมส์ online เลยอะครับ

ถ้าท่านว่าเน็ตท่านดี ลองเช็ก client ดูนะครับ

TheKarM

  • บุคคลทั่วไป
คือ ผมมีคำถาม นิดเดียวเลย คับ...

ถ้าที่ร้านของผม เซ็ทแบบไม่มีเครื่อง server อะครับ จะได้เจ้าโปรแกรมตัวนี้ได้ไหมครับ  เท่าที่อ่านมาน่าใช้มากเลย

ที่ร้าน ผม มีประมาณ 8 เครื่อง นะครับ คือ ออกจาก Router > Hub > Client 8 เครื่อง อะครับ  สามารถ ที่จะใช้เจ้าโปรแกรมตัวนี้

ลงเครื่องสัก 1เครื่อง ใน 8 เครื่องได้ไหมครับ โดยที่เครื่องที่ลงยังสามารถ เล่นเกมส์ ออนไลน์ ได้หรือไม่ครับ ถ้าได้ จะแลค มากไหมครับ

ยังไงขอบคุณล่วงหน้าครับ

jasda2003

  • บุคคลทั่วไป
คือ ผมมีคำถาม นิดเดียวเลย คับ...

ถ้าที่ร้านของผม เซ็ทแบบไม่มีเครื่อง server อะครับ จะได้เจ้าโปรแกรมตัวนี้ได้ไหมครับ  เท่าที่อ่านมาน่าใช้มากเลย

ที่ร้าน ผม มีประมาณ 8 เครื่อง นะครับ คือ ออกจาก Router > Hub > Client 8 เครื่อง อะครับ  สามารถ ที่จะใช้เจ้าโปรแกรมตัวนี้

ลงเครื่องสัก 1เครื่อง ใน 8 เครื่องได้ไหมครับ โดยที่เครื่องที่ลงยังสามารถ เล่นเกมส์ ออนไลน์ ได้หรือไม่ครับ ถ้าได้ จะแลค มากไหมครับ

ยังไงขอบคุณล่วงหน้าครับ

ได้ครับแต่ต้องเปิดไว้ตลอดเวลา ถ้าลงที่เครื่องที่ให้เด็กเล่นด้วยแล้ว hang ก็จะทำให้มีปัญหา www เข้าไม่ได้อีกเช่นกัน แถมต้องมานั่ง start squid ทุกครั้งที่ hang
ส่วนเรื่อง เกมส์นั้นจะ แลค ไม่ แลค อยู่ที่เราจำกัด b/w ที่ squid เอาครับ

อ็อด

  • บุคคลทั่วไป
พี่ครับ ทำไม squid ผม มันดับ บ่อยครับ เซ็ดเป็น แมนนวล แล้วครับ

jasda2003

  • บุคคลทั่วไป
พี่ครับ ทำไม squid ผม มันดับ บ่อยครับ เซ็ดเป็น แมนนวล แล้วครับ

ตอบไปแล้วครับ ลองไปหาอ่านดูนะครับ

pipezarr

  • บุคคลทั่วไป
ใครก็ด้ายช่วยหน่อยคับมัน Login ไม่ได้อ่ะ ที่หน้านี้เลย

คลิ๊กๆๆ ช่วยหน่อยนะ ::)

boykorat

  • บุคคลทั่วไป
ช่วยตอบหน่อยนะคับเรื่อง proxy squid เครื่องลูก
« ตอบกลับ #488 เมื่อ: มิถุนายน 19, 2006, 04:28:26 am »
คือว่าผมเซ็ต squid ใช้งานเกี่ยวกับเวปได้แล้วครับแรงมากส์ แต่ว่าเครื่องลูกเข้าเล่นเกมล์ ออนไลท์ไม่ได้อะคับทำยังไงดี ให้เครื่องลูกเล่นเกมออนไลท์ได้เช่นเกมล์ ปังย่า อารายแบบนี้อะคับ รบกวนผู้รู้ตอบหน่อยนะคับ ::)

jasda2003

  • บุคคลทั่วไป
ใครก็ด้ายช่วยหน่อยคับมัน Login ไม่ได้อ่ะ ที่หน้านี้เลย

คลิ๊กๆๆ ช่วยหน่อยนะ ::)

เวแบอรด์ มันเน่าครับ (แล้วจาเข้าไงหละครับ) :)

jasda2003

  • บุคคลทั่วไป
คือว่าผมเซ็ต squid ใช้งานเกี่ยวกับเวปได้แล้วครับแรงมากส์ แต่ว่าเครื่องลูกเข้าเล่นเกมล์ ออนไลท์ไม่ได้อะคับทำยังไงดี ให้เครื่องลูกเล่นเกมออนไลท์ได้เช่นเกมล์ ปังย่า อารายแบบนี้อะคับ รบกวนผู้รู้ตอบหน่อยนะคับ ::)

ใส่ dns gateway ที่ client ชี้มาที่ ip router ด้วยครับ

pipezarr

  • บุคคลทั่วไป
เวแบอรด์ มันเน่าครับ (แล้วจาเข้าไงหละครับ) :)

ไม่เน่าครับเอา Proxy ออกมันถึงจะเข้าได้ครับ ???

boykorat

  • บุคคลทั่วไป
ip router ผมเปง 192.168.1.254 ใส่ที่ Preferred Dns Server แล้วคับ แต่ก็ยังเล่นไม่ได้คับรบกวนท่าน jasda2003 อย่างแรงอีกครั้ง Please เกมปังย่าโหลด Path ได้แต่ Login มะได้ Darkstory โหลดไรมะได้เลยคับ
squid config ของผมเปง
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
#               SquidNT 2.5 STABLE12-NT Delay Pools                                                                                               #
#                          Powerd By MR.Siam@CaFe                                                                                                           #
#                             SquidNT Config By MR.Jasda2003 @ siamcafe                                                                                        #
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# NETWORK OPTIONS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

http_port 8080

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#cache_peer xxx.xxx.xxx.xxx parent 8080 0 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

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS WHICH AFFECT THE CACHE SIZE
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#cache_mem xxx MB
cache_mem 256 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

cache_dir ufs C:/squid/var/cache/cache1 512 24 256
cache_dir ufs C:/squid/var/cache/cache2 512 24 256
cache_access_log none
cache_log none
cache_store_log none
mime_table c:/squid/etc/mime.conf
referer_log C:/squid/var/logs/http.log
pid_filename none

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/etc/passwd
#auth_param basic children 3
#auth_param basic realm SquidNT Proxy Server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#authenticate_ttl 1 hour

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS FOR TUNING THE CACHE
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

refresh_pattern -i .(class|pdf|rtf|doc|wp|wp5|ps|prn)$ 1440 90% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(mov|avi|mpg|wav|au|mid|mp3)$ 1440 100% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(zip|gz|arj|lha|lzh|rar|tgz|tar|Z)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(jpg|gif|jpeg|png|css|js)$ 1440 19000% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(bmp|tif|tiff|xbm)$ 1440 17000% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(png|swf)$ 1440 18000% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# ACCESS CONTROLS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#######################################################################################################################
#acl password proxy_auth REQUIRED
#######################################################################################################################
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 localnet src 192.168.0.0/255.255.255.0
acl SSL_ports port 443 563 9138
acl Safe_ports port 21 70 80 210 280 443 563 488 591 777 9138 1025-65535
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#######################################################################################################################
####################################    acl daytime time     [day-abbrevs]  [h1:m1-h2:m2]    ########################################
####################################                                           S-Sunday         08:00-17:00      ########################################   
####################################                         M-Monday                       ########################################      
####################################                         T-Tuesday                   ########################################   
####################################                       W-Wednesday                ########################################      
####################################                        H-Thursday                   ########################################   
####################################          F-Friday                   ########################################      
####################################                          A-Saturday                   ########################################   
#######################################################################################################################
#acl daytime time M-Monday 08:00-17:00
#######################################################################################################################
#acl download urlpath_regex -i "C:/squid/block/block_file_download.conf"
#acl bandwidfile urlpath_regex -i "C:/squid/etc/file_bandwid.conf"
#acl domains dstdomain "C:/squid/block/block_domains.conf"
#acl full_download src "C:/squid/etc/ip_full_download.conf"
#acl words url_regex "C:/squid/block/block_words.conf"
#acl blocktime src 'C:/squid/block/block_ip_time.conf'
#acl sites url_regex "C:/squid/block/block_sites.conf"
#acl blockclient src "C:/squid/block/block_ip.conf"
#acl urlip dst "C:/squid/block/block_url_ip.conf"
#http_access deny download all !full_download
#######################################################################################################################
#http_access deny daytime blocktime
#######################################################################################################################
#http_access deny blockclient
#http_access deny domains
#http_access deny words
#http_access deny urlip
#http_access deny sites
http_access allow localhost
#######################################################################################################################
#http_access allow password
#######################################################################################################################
http_access allow localnet
http_access deny all

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# ADMINISTRATIVE PARAMETERS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

cache_mgr Administrator
cache_effective_user squid
cache_effective_group squid
visible_hostname Siamcafe@net

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# MISCELLANEOUS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

reload_into_ims on

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# DELAY POOL PARAMETERS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#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 20000/20000
#delay_parameters 2 51200/51200 25000/25000
ie_refresh on

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
#                              Copyright 2006 Siamcafe@net co.ltd All Rights Reserved
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
สแตนดาด เลยอะทำไมไม่ได้คับ รบกวนท่านตอบด้วยนะคับ
Mail : [email protected]
ติดต่อที่ MSN ก็ได้คับตามท่านสดวก
ในกระทู้ก็ได้
 ;)ได้โปรด Please

ไวไว

  • บุคคลทั่วไป
acl localnet src 192.168.1.0/255.255.255.0  <<<  ต้องแบบนี้จ้า

yadamon

  • บุคคลทั่วไป
ฟังก์ชั่น Block ต่าง ๆ ไม่สามารถใช้ได้ครับ เช่น Block IP, Block www, Block Word เป็นต้น ผมเอาเครื่องหมาย # ออกแล้วน่ะครับ ก็ยังใช้ไม่ได้ ผมต้องทำอย่างไรครับ ผมใช้ squid ตัวล่าสุดครับ Download จากที่นี้ครับ config เดิม ๆ ครับ

pra

  • บุคคลทั่วไป
ผม download มาแล้วลงแล้วแต่ใช้ไม่ได้
พอคลิกfile ที่ โหลดมาจนครบ 100 %  (ลงแบบ aoto next next ครับ)
แต่พอเข้ามาดูใน c: squid  ไม่มี stop   และ  start  มีแต่  install
แต่ พอ  install แล้วก็เหมือนเดิม
แต่ ที่ services ก็ขึ้นที่ หน้าจอ ครับ 
แต่รันไม่ผ่าน
ไม่ทราบว่าเกิดจากอะไร
ตอนนี้ใช้  2.5  11 อยู่ครับ  อยากใช้ตัวใหม่ เพราะจะได้รู้ว่าเครื่องใหน่เข้าเว็บอะไร
ช่วยตอบหน่อยครับเพราะอยากใช้กับเขาบ้าง

jasda2003

  • บุคคลทั่วไป
ฟังก์ชั่น Block ต่าง ๆ ไม่สามารถใช้ได้ครับ เช่น Block IP, Block www, Block Word เป็นต้น ผมเอาเครื่องหมาย # ออกแล้วน่ะครับ ก็ยังใช้ไม่ได้ ผมต้องทำอย่างไรครับ ผมใช้ squid ตัวล่าสุดครับ Download จากที่นี้ครับ config เดิม ๆ ครับ

คุณเปิดคำสั่งแต่ละบรรทัดถูกต้องรึเปล่าครับ ถ้ายังไม่ได้ลองเอา config มาดูครับ

jasda2003

  • บุคคลทั่วไป
ผม download มาแล้วลงแล้วแต่ใช้ไม่ได้
พอคลิกfile ที่ โหลดมาจนครบ 100 %  (ลงแบบ aoto next next ครับ)
แต่พอเข้ามาดูใน c: squid  ไม่มี stop   และ  start  มีแต่  install
แต่ พอ  install แล้วก็เหมือนเดิม
แต่ ที่ services ก็ขึ้นที่ หน้าจอ ครับ 
แต่รันไม่ผ่าน
ไม่ทราบว่าเกิดจากอะไร
ตอนนี้ใช้  2.5  11 อยู่ครับ  อยากใช้ตัวใหม่ เพราะจะได้รู้ว่าเครื่องใหน่เข้าเว็บอะไร
ช่วยตอบหน่อยครับเพราะอยากใช้กับเขาบ้าง


2.5 11 ไม่มี stop   และ  start ครับ ที่start ไม่ผ่าน ลองกลับไปอ่านดูใหม่นะครับ อาจจะผิดพลาดขั้นตอนตรงไหนก็ได้ครับ 

lancerott

  • บุคคลทั่วไป
คุณเปิดคำสั่งแต่ละบรรทัดถูกต้องรึเปล่าครับ ถ้ายังไม่ได้ลองเอา config มาดูครับ

http_port 8080

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#cache_peer xxx.xxx.xxx.xxx parent 8080 0 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

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS WHICH AFFECT THE CACHE SIZE
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#cache_mem xxx MB
cache_mem 256 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

cache_dir ufs C:/squid/var/cache/cache1 512 24 256
cache_dir ufs C:/squid/var/cache/cache2 512 24 256
cache_access_log none
cache_log none
cache_store_log none
mime_table c:/squid/etc/mime.conf
referer_log C:/squid/var/logs/http.log
pid_filename none

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/etc/passwd.conf
auth_param basic children 3
auth_param basic realm Greyhound Proxy Server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
#authenticate_ttl 1 hour
acl password proxy_auth REQUIRED
http_access allow password

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS FOR TUNING THE CACHE
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

refresh_pattern -i .(class|pdf|rtf|doc|wp|wp5|ps|prn)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(mov|avi|mpg|wav|au|mid|mp3)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(zip|gz|arj|lha|lzh|rar|tgz|tar|Z)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(jpg|gif|jpeg|png|css|js)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(bmp|tif|tiff|xbm)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(png|swf)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# ACCESS CONTROLS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
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 localnet src 192.168.0.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 21 70 80 210 280 443 563 488 591 777 1025-65535
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#######################################################################################################################
####################################    acl daytime time     [day-abbrevs]  [h1:m1-h2:m2]    ########################################
####################################                                           S-Sunday         08:00-17:00      ########################################   
####################################                         M-Monday                       ########################################      
####################################                         T-Tuesday                   ########################################   
####################################                       W-Wednesday                ########################################      
####################################                        H-Thursday                   ########################################   
####################################          F-Friday                   ########################################      
####################################                          A-Saturday                   ########################################   
#######################################################################################################################
#acl daytime time M-Monday 08:00-17:00
#######################################################################################################################
acl download urlpath_regex -i "C:/squid/block/block_file_download.conf"
acl bandwidfile urlpath_regex -i "C:/squid/etc/file_bandwid.conf"
acl domains dstdomain "C:/squid/block/block_domains.conf"
acl full_download src "C:/squid/etc/ip_full_download.conf"
acl words url_regex "C:/squid/block/block_words.conf"
acl blocktime src 'C:/squid/block/block_ip_time.conf'
acl sites url_regex  "C:/squid/block/block_sites.conf"
acl blockclient src "C:/squid/block/block_ip.conf"
acl urlip dst "C:/squid/block/block_url_ip.conf"
http_access deny download all !full_download
#######################################################################################################################
http_access deny daytime blocktime
#######################################################################################################################
http_access deny blockclient
http_access deny domains
http_access deny words
http_access deny urlip
http_access deny sites
http_access allow localhost
http_access allow localnet
http_access deny all

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# ADMINISTRATIVE PARAMETERS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

cache_mgr Administrator
cache_effective_user squid
cache_effective_group squid
visible_hostname Greyhound

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# MISCELLANEOUS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

reload_into_ims on

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# DELAY POOL PARAMETERS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#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 20000/20000
#delay_parameters 2 102400/102400 64000/64000
ie_refresh on

Config ตามนี้น่ะครับ ไม่ทราบว่าผิดตรงไหนครับ ขอบคุณมากครับ

jasda2003

  • บุคคลทั่วไป
ห้ามย้ายบรรทัดแต่ละคำสั่งนะครับ ไม่งั้นไม่สามารถใช้งานได้ครับ

ปิดไปไม่ใช้

#auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/etc/passwd
#auth_param basic children 3
#auth_param basic realm SquidNT Proxy Server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#authenticate_ttl 1 hour

#acl password proxy_auth REQUIRED

#acl daytime time M-Monday 08:00-17:00

#acl bandwidfile url_regex -i 'C:/squid/etc/file_bandwid.conf'

#acl blocktime src 'C:/squid/block/block_ip_time.conf'

#http_access deny daytime blocktime

#http_access allow password

หมายเหตุ : การย้ายบรรทัดคำสั่ง มันจะทำให้ squid ทำงานได้ไม่สมบูรณ์ เพาะการทำงานมันเป็น ขั้น+ชั้น เหมือนเปิดประตูทีละบานเข้าไปหาจุดหมายอะครับ (ฉะนั้นแก้ config กลับแบบเดิมด้วย)

ไฟล์คำสั่งต่างๆในโฟรเดอร์ Block
1. block_domains.conf
2. block_file_download.conf
3. block_ip.conf
4. block_ip_time.conf
5. block_sites.conf
6. block_words.conf
----------------------------------------------------------------------------------------------------------------------------
ไฟล์คำสั่งต่างๆในโฟรเดอร์ Etc
1. cachemgr.conf
2. file_bandwid.conf
3. ip_full_download.conf
4. mime.conf
5. squid.conf
6. passwd
----------------------------------------------------------------------------------------------------------------------------
รูปแบบการเพิ่มคำสั่ง : ในโฟรเดอร์ Block & Etcไฟล์คำสั่ง ให้เขียน คำสั่ง หรือ ความหมาย หรือ IP เรียงกันลงมา (รูปแบบ)
--------------------------------block_sites.conf
www.xxx.com
www.sex.com
---------------------------------block_ip_time.conf
192.168.0.3
192.168.0.5
---------------------------------block_domains.conf
xxx.com
sex.com
----------------------------------block_file_download.conf
\.exe$
\.mp3$
----------------------------------block_ip.conf
192.168.0.50
192.168.0.55
-----------------------------------block_words.conf
sex
xxx
-----------------------------------file_bandwid.conf
\.exe$
\.mp3$
-----------------------------------ip_full_download.conf
192.168.0.3
192.168.0.5

jingjok

  • บุคคลทั่วไป
คือผมใช้เน็ตของวิทยาลัยครับ
ทางวิทยาลัยได้แจก DHCP  มาที่เครื่องที่จะทำ Proxy
IP 192.168.1.129
Gateway 192.168.1.254
Sub 255.255.255.0
DNS 203.172.181.229
           203.146.15.9
           203.146.0.20
เครื่องที่ทำ Proxy  มีการ์ด 2 ใบ ใบแรกเป็นตัวรับจาก DHCP
                                                   ใบที่ 2 เป็นตัวจ่ายให้ Client
                                                   ตั้ง IP 192.168.5.254
                                                         Sub 255.255.255.0

                               เครื่อง Client     IP 192.168.5.1 เป็นต้นไป
                                                         Sub 255.255.255.0
                                                         Gateway 192.168.5.254

ผมลองเล่นเกม Darkstory Online ที่เครื่อง Client  ปรากฏว่า  มันติดต่อ Server เกมไม่ได้และlogin MSN ไม่ได้เหมือนกันครับ  ผมต้องเซ็ทยังงัยบ้างครับ

Config ที่ผมลองเซ้ทดูนะครับ
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
#               SquidNT 2.5 STABLE12-NT Delay Pools                                                                                               #
#                          Powerd By MR.Siam@CaFe                                                                                                           #
#                             SquidNT Config By MR.Jasda2003 @ siamcafe                                                                                        #
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# NETWORK OPTIONS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

http_port 8080

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#cache_peer xxx.xxx.xxx.xxx parent 8080 0 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

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS WHICH AFFECT THE CACHE SIZE
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#cache_mem xxx MB

cache_mem 496 MB
cache_swap_low 90
cache_swap_high 100
maximum_object_size 20480 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 1024 KB

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

cache_dir ufs C:/squid/var/cache/cache1 10240 24 256
cache_dir ufs C:/squid/var/cache/cache2 10240 24 256
cache_access_log none
cache_log none
cache_store_log none
mime_table c:/squid/etc/mime.conf
referer_log C:/squid/var/logs/http.log
pid_filename none

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/etc/passwd
#auth_param basic children 3
#auth_param basic realm SquidNT Proxy Server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#authenticate_ttl 1 hour

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# OPTIONS FOR TUNING THE CACHE
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

refresh_pattern -i .(class|pdf|rtf|doc|wp|wp5|ps|prn)$ 1440 90% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(mov|avi|mpg|wav|au|mid|mp3)$ 1440 100% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(zip|gz|arj|lha|lzh|rar|tgz|tar|Z)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(jpg|gif|jpeg|png|css|js)$ 1440 19000% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(bmp|tif|tiff|xbm)$ 1440 17000% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(png|swf)$ 1440 18000% 1440 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# ACCESS CONTROLS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#######################################################################################################################
#acl password proxy_auth REQUIRED
#######################################################################################################################

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 localnet src 192.168.5.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 21 70 80 210 280 443 563 488 591 777 1025-65535 88 194 994
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

#######################################################################################################################
####################################    acl daytime time     [day-abbrevs]  [h1:m1-h2:m2]    ########################################
####################################                                           S-Sunday         08:00-17:00      ########################################   
####################################                         M-Monday                       ########################################      
####################################                         T-Tuesday                   ########################################   
####################################                       W-Wednesday                ########################################      
####################################                        H-Thursday                   ########################################   
####################################          F-Friday                   ########################################      
####################################                          A-Saturday                   ########################################   
#######################################################################################################################
#acl daytime time M-Monday 08:00-17:00
#######################################################################################################################

acl download urlpath_regex -i "C:/squid/block/block_file_download.conf"
#acl bandwidfile urlpath_regex -i "C:/squid/etc/file_bandwid.conf"
acl domains dstdomain "C:/squid/block/block_domains.conf"
acl full_download src "C:/squid/etc/ip_full_download.conf"
acl words url_regex "C:/squid/block/block_words.conf"
#acl blocktime src 'C:/squid/block/block_ip_time.conf'
acl sites url_regex "C:/squid/block/block_sites.conf"
#acl blockclient src "C:/squid/block/block_ip.conf"
acl urlip dst "C:/squid/block/block_url_ip.conf"

http_access deny download all !full_download

#######################################################################################################################
#http_access deny daytime blocktime
#######################################################################################################################

#http_access deny blockclient
http_access deny domains
http_access deny words
http_access deny urlip
http_access deny sites
http_access allow localhost

#######################################################################################################################
#http_access allow password
#######################################################################################################################

http_access allow localnet
http_access deny all

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# ADMINISTRATIVE PARAMETERS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

cache_mgr Administrator
cache_effective_user squid
cache_effective_group squid
visible_hostname Mr.JOE

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# MISCELLANEOUS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

reload_into_ims on

# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
# DELAY POOL PARAMETERS
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

#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 20000/20000
#delay_parameters 2 51200/51200 25000/25000

ie_refresh on

ปล.ผมต้องการจำกัดการใช้งานอินเตอร์เน็ตนักศึกษานะครับ  ที่ลองให้เล่นเกมได้นั้น  ผมแค่อยากลองดูนะครับ 
    แล้วผมก้ออยากคุยกับคุณ jasda2003  ทาง MSN ครับ น่าจะสะดวกมากยิ่งขึ้น   ขอบคุณมากครับผม

jasda2003

  • บุคคลทั่วไป
[email protected] นานๆผมจาโผล่ทีนะครับ

LAN1
IP : 192.168.1.129
Sub : 255.255.255.0
Gateway : 192.168.1.254

DNS : 203.172.181.229
           : 203.146.15.9
           : 203.146.0.20
(dns มี 3 ชุดเลยหรอครับ เท่าที่ดูน่าจะเป็นของ loxinfo) ลองแก้ไข ตามนี้ดูนะครับ

LAN1
IP              : 192.168.1.129
Sub           : 255.255.255.0
Gateway : 192.168.1.254
DNS         : 192.168.1.254
                   : 203.146.0.20

LAN2
IP               : 192.168.5.254
Sub           : 255.255.255.0

CLIENT     
IP               : 192.168.5.1
Sub           : 255.255.255.0
Gateway : 192.168.5.254
DNS         : 192.168.5.254
                   : 203.146.0.20

ส่วนนำไปใช้กับ มหาลัยแน่นำให้ใช้ควบคุ้มกับตัวนี้ครับ
วิธีทำ SquidNT Transparent Proxy
http://www.siamcafe.net/board/index.php?topic=9967.msg35673#msg35673

จะได้ให้พวกออก port 80 ผ่าน squid ให้หมด จะได้ไม่ต้องกลัวว่าใครจะปลด proxy ใน internetoption ออกครับ + ยังมีความสามารถในด้าน firewall อีกเพียบ ลองศึกษาดูครับ

           

jingjok

  • บุคคลทั่วไป
ผมจะลองดูนะครับ  ยังงัยแล้วจะแจ้งให้ทราบอีกทีครับผม
ขอบคุณ คุณจัสดามากเลยครับ

jingjok

  • บุคคลทั่วไป
ใช้ได้แล้วครับ....อืม....แล้วมีวิธีใช้ Kerio WinRoute Firewall  หรือป่าวครับ
มีเว็บแนะนำมั้ยครับ   ขอบคุณมากอีกครั้งครับ

Teewa2032

  • บุคคลทั่วไป
ช่วยด้วยคับๆ บล็อกเว็บไม่ได้ เอาเครื่อง ตัวเอง เป็น squid อ่ะคับแล้วก็ เวลาเช็ค เน็ต มันเท่ากับตอนที่ไม่ได้ ใส่ proxyอ่ะคับ  บางที น้อยกว่าด้วย คับ  แล้วก็ เวลา start/stop/restart ที่ services มันจะ start ไม่ได้  ลองปรับเปลี่ยน ใน config แค่ 2-3 ครั้ง มันจะ start ไม่ได้ เป็นที่ อะไร คับ แล้ว ทำยังไง ให้เครื่องลูก และเครื่องแม่  ใช้ เน็ต ได้ 100 %  cache มีผลมากอย่างไรคับ เพราะ แรม ผมมี 376 อ่ะคับ  ช่วยที คับ  ขอบคุณคับ

lancerott

  • บุคคลทั่วไป
ห้ามย้ายบรรทัดแต่ละคำสั่งนะครับ ไม่งั้นไม่สามารถใช้งานได้ครับ

ปิดไปไม่ใช้

#auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/etc/passwd
#auth_param basic children 3
#auth_param basic realm SquidNT Proxy Server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#authenticate_ttl 1 hour

#acl password proxy_auth REQUIRED

#acl daytime time M-Monday 08:00-17:00

#acl bandwidfile url_regex -i 'C:/squid/etc/file_bandwid.conf'

#acl blocktime src 'C:/squid/block/block_ip_time.conf'

#http_access deny daytime blocktime

#http_access allow password

หมายเหตุ : การย้ายบรรทัดคำสั่ง มันจะทำให้ squid ทำงานได้ไม่สมบูรณ์ เพาะการทำงานมันเป็น ขั้น+ชั้น เหมือนเปิดประตูทีละบานเข้าไปหาจุดหมายอะครับ (ฉะนั้นแก้ config กลับแบบเดิมด้วย)

ไฟล์คำสั่งต่างๆในโฟรเดอร์ Block
1. block_domains.conf
2. block_file_download.conf
3. block_ip.conf
4. block_ip_time.conf
5. block_sites.conf
6. block_words.conf
----------------------------------------------------------------------------------------------------------------------------
ไฟล์คำสั่งต่างๆในโฟรเดอร์ Etc
1. cachemgr.conf
2. file_bandwid.conf
3. ip_full_download.conf
4. mime.conf
5. squid.conf
6. passwd
----------------------------------------------------------------------------------------------------------------------------
รูปแบบการเพิ่มคำสั่ง : ในโฟรเดอร์ Block & Etcไฟล์คำสั่ง ให้เขียน คำสั่ง หรือ ความหมาย หรือ IP เรียงกันลงมา (รูปแบบ)
--------------------------------block_sites.conf
www.xxx.com
www.sex.com
---------------------------------block_ip_time.conf
192.168.0.3
192.168.0.5
---------------------------------block_domains.conf
xxx.com
sex.com
----------------------------------block_file_download.conf
\.exe$
\.mp3$
----------------------------------block_ip.conf
192.168.0.50
192.168.0.55
-----------------------------------block_words.conf
sex
xxx
-----------------------------------file_bandwid.conf
\.exe$
\.mp3$
-----------------------------------ip_full_download.conf
192.168.0.3
192.168.0.5


aubdul1984

  • บุคคลทั่วไป
ผมใช้เน็ท adsl 512/256 ในประเทศ ก็ ok นะครับ แต่ต่างประเทศ อืดๆ ผมสมควรใช้ program นี้ไหมครับ
*** เล่นคนเดียว เครื่องเดียว
*** ใช้ router

Muzazhi(NL)

  • บุคคลทั่วไป
ทำยังไงให้มันออโต้ rotate ให้

lancerott

  • บุคคลทั่วไป
squid proxy ตัวนี้รองรับ Network Card (Lan Card) ได้กี่ใบครับ ที่ร้านผมมี ADSL 3 ชุดครับ และถ้าได้ผมต้องต่ออย่างไรครับ ใช้ต่อเครื่องเดียวกันได้ไหมครับทั้ง 3 ชุด

jasda2003

  • บุคคลทั่วไป
พี่ครับ ทำไม squid ผม มันดับ บ่อยครับ เซ็ดเป็น แมนนวล แล้วครับ

ได้คำตอบสดๆร้อนๆมากับตัวเองเลยครับเมื่อวานนี้ สาเหตุมาจาก os เองถึงแม้จะลงใหม่ก็ช่าง

ผมลองติดตั้ง Quick 90 ให่ลูกค้าคนนึง กับ SquidNT-2.5.STABLE14-NT (ล่าสุด) ปรากฎว่าดับเองตลอดเวลาเปิดเวปหนักๆ เลยทำการลง winxp ใหม่เป็นเวอร์ชั่น 2600 v4 งานนี้หายสนิทครับ ไม่มีอาการดับหยังที่แล้วๆมาให้เห็นอีกเลย

(ลองเปลี่นแผ่น windows ดูครับ) เกิดจากการที่คนทำได้นำไปแก้ไขดัดแปลง os ซึ่งทำให้บางส่วนไม่สมบูรณ์ ครับ

jasda2003

  • บุคคลทั่วไป
ผมใช้เน็ท adsl 512/256 ในประเทศ ก็ ok นะครับ แต่ต่างประเทศ อืดๆ ผมสมควรใช้ program นี้ไหมครับ
*** เล่นคนเดียว เครื่องเดียว
*** ใช้ router


คนเดียวไม่ต้องใช้ก็ได้ครับ แต่ถ้าอยากศึกษาดูก็ลองดูได้ครับ

jasda2003

  • บุคคลทั่วไป
squid proxy ตัวนี้รองรับ Network Card (Lan Card) ได้กี่ใบครับ ที่ร้านผมมี ADSL 3 ชุดครับ และถ้าได้ผมต้องต่ออย่างไรครับ ใช้ต่อเครื่องเดียวกันได้ไหมครับทั้ง 3 ชุด

มีไรมั้งครับ ลองบอกมาคร้าวๆ ใน lan 3 ใบนั้น (ทำไรมั้ง)

jasda2003

  • บุคคลทั่วไป
ทำยังไงให้มันออโต้ rotate ให้

แบบไหนครับ

คนนอก

  • บุคคลทั่วไป
ของผมบางเว็บเปิดแล้วรูปออกมาไม่ครบบ้าง แล้วพอใช้ไปนานๆทามไมมานเริ่มช้าๆยังไงก็ไม่รู้คับ พอมีวิธีแก้ที่จะกลับให้มาเร็วเหมือนเดิมหรือไม่ก็ทำให้มานเร็วกว่านี้หรือป่าวคับ

jasda2003

  • บุคคลทั่วไป
ของผมบางเว็บเปิดแล้วรูปออกมาไม่ครบบ้าง แล้วพอใช้ไปนานๆทามไมมานเริ่มช้าๆยังไงก็ไม่รู้คับ พอมีวิธีแก้ที่จะกลับให้มาเร็วเหมือนเดิมหรือไม่ก็ทำให้มานเร็วกว่านี้หรือป่าวคับ

ปัญหาน่าจะเกิดจากตั้งแต่ตอนติดตั้งแล้วครับอาการนี้เกิดจาก คุณลง squid เสร็จ แล้วไม่ได้เคลีย cache ie ครับ เคลียเสร็จ restart เครื่องด้วยครับ (ถ้าไม่ได้ไปแก้ไขดัดแปลง squid) น่าจะเป็นสาเหตุนี้มากที่สุดครับ

lancerott

  • บุคคลทั่วไป
มีไรมั้งครับ ลองบอกมาคร้าวๆ ใน lan 3 ใบนั้น (ทำไรมั้ง)
จะใช้กำหนด เล่นเกมส์ 2 ชุด เล่น Internet 1 ชุด อยากให้ผ่านเครื่องที่มี squid เครื่องเดียวกันสามารถทำได้หรือไม่ครับ ถ้าได้ต้อง Set squid อย่างไรครับ

jasda2003

  • บุคคลทั่วไป
ได้ครับ ลองทำดูเลยครับ ใน network ใช้ ip ไรอย่าลืม แก้ config บรรทัดนี้ด้วยหละครับ

ตัวอย่าง   acl localnet src 192.168.0.0/255.255.255.0

brnslsex

  • บุคคลทั่วไป
ทำยังไงให้มันออโต้ rotate ให้

เอาคำสั่งนี้ใส่โนดเพจ

@echo off
C:\squid\sbin\squid.exe -n squidnt -k rotate
pause

เชฟเปง .bat
---------
เข้าไปในคอนฟิคของ squid
เพิ่มตัวนี้ #
หน้า pid_filename none
จะได้  #pid_filename none (ต้องทำไม่งี้ ไม่ง้าน squid จะหา id ไม่เจอ)

จะใช้ต้องใช้ ไอ้นี่ของวินโดช่วย โปรแกรม Scheduled Tasks สั่งรัน .bat เวลาที่เราต้องการ
(โปรแกรม Scheduled Tasks  ไม่เคยทำไอ้นี่อ่ะ แต่น่าจะได้ ) ส่วนใหญ่กดเองง่ายกว่า เมื่อไรก้อได้

มันจะเกบข้อมูลของเก่าเราไว้ด้วย  รีบๆๆ ผิดพลาดอย่าถือสาน่ะคับ

baanbor

  • บุคคลทั่วไป
สามารถตรวจสอบ ว่า user ที่สร้างไว้ login เข้ามาเมื่อไรบ้างได้ไหมครับ แล้วถ้าได้ต้องดูที่ file ไหนครับ
ขอบคุณครับ ::)

jasda2003

  • บุคคลทั่วไป
โดยหลักการแล้วทางตรงไม่สามารถ ดู user login ตอนไหนได้ครับ แต่ถ้าในทางอ้อมลองเปิดใช้ 2 บรรทัดนี้ดูครับ

cache_access_log C:/squid/var/logs/access.log
cache_log C:/squid/var/logs/cache.log
cache_store_log C:/squid/var/logs/store.log

nung2523

  • บุคคลทั่วไป
ผมมีเครื่องเก่าอยู่ แพนเทียม166 แรม128 ฮาร์ดิส 2.1
จะเอา squid ลงเพื่อที่จะเอาไว้แชร์เน็ต ต้องลงos อาไรครับ
เอาแบบเร็วๆนะคร๊าบ :o

jasda2003

  • บุคคลทั่วไป
ผมมีเครื่องเก่าอยู่ แพนเทียม166 แรม128 ฮาร์ดิส 2.1
จะเอา squid ลงเพื่อที่จะเอาไว้แชร์เน็ต ต้องลงos อาไรครับ
เอาแบบเร็วๆนะคร๊าบ :o

เอาไปลง linux ดีกว่าครับ squidnt ไม่ไหวนะครับ

nung2523

  • บุคคลทั่วไป
 ::)พอจะมีบทความเกี่ยวกะ การติดตั้งบ้างไหมคับ ::)

excom

  • บุคคลทั่วไป
ก่อนอื่นต้องขอบอกเลยนะครับว่าผมไม่เคยเห็นกระทู้นี้เลย เพราะผมไม่เคยเข้า Web นี้ จนผมได้โหลดโปรแกรมบริหารร้านเนตจากเวบ บิทแห่งนึง แล้วมีคอมมเนต์ ผมเลยตามมาจากคอมเมนต์ ผมเข้ามาแล้วรุ้สึกทึ่งในหลายๆเรื่องในเวบนี้ จนวันนี้เกือบทั้งวันผมเข้าเวบนี้แหละโดยส่วนใหญ่ และผมสนใจ ตัว Squid นี้มาก เพราะตอนนี้ผมใช้ ISA อยู่ซึ่งก็โอเคอยู่ในระดับนึง แต่มันก็ไม่สามารถทำอะไรบางอย่างที่ผมต้องการได้ แต่ Squid กลับทำได้ ตอนนี้เลยสนใจมากๆ ก็เลยมีคำถามว่า 1.ผมต้องการกำหนด IP ที่สามารถใช้งานได้ แทนการกำหนดให้ Block ผมสามารถทำได้ใหมครับ(สมมุติว่ามีเครื่อง200 เครื่อง แต่ออกเนตได้25เครื่อง ผมไม่อยาก Add IP เพื่อ Block 175เครื่อง) 2.คอม25เครื่อง มี20เครื่องออกเนตได้7.00-19.00น.ของทุกวัน แต่ปิดวันอาทิตย์ และอีก5เครื่องที่เหลือ ออกเนตได้เฉพาะ7.00-8.00,12.00-13.00 และ 17.00-19.00 แต่ปิดวันอาทิตย์
3.มี3เครื่องใช้ FTP ได้ตลอดเวลา(ISA ต้องติดตั้ง Client แล้ว Squid ต้องติดตั้งใหมครับ) 4.ผมใช้ CardLan 2ใบ ใบแรกเป็น IP แจกมาจาก Routor ใบที่2เป็น IP ในวง Lan(ตัวที่2 FigIP) ทั้ง4ข้อที่ถามนี้ Squid สามารถทำได้ใหมครับ และต้องตั้ง Config ยังงัย..ขอบคุณมากครับ

ozak_za

  • บุคคลทั่วไป
ลิ้งโหลดไม่ได้อะครับช่วย ที ;D

jasda2003

  • บุคคลทั่วไป
ลิ้งโหลดไม่ได้อะครับช่วย ที ;D

กำลังแก้ไขอยู่ครับ

jasda2003

  • บุคคลทั่วไป
ก่อนอื่นต้องขอบอกเลยนะครับว่าผมไม่เคยเห็นกระทู้นี้เลย เพราะผมไม่เคยเข้า Web นี้ จนผมได้โหลดโปรแกรมบริหารร้านเนตจากเวบ บิทแห่งนึง แล้วมีคอมมเนต์ ผมเลยตามมาจากคอมเมนต์ ผมเข้ามาแล้วรุ้สึกทึ่งในหลายๆเรื่องในเวบนี้ จนวันนี้เกือบทั้งวันผมเข้าเวบนี้แหละโดยส่วนใหญ่ และผมสนใจ ตัว Squid นี้มาก เพราะตอนนี้ผมใช้ ISA อยู่ซึ่งก็โอเคอยู่ในระดับนึง แต่มันก็ไม่สามารถทำอะไรบางอย่างที่ผมต้องการได้ แต่ Squid กลับทำได้ ตอนนี้เลยสนใจมากๆ ก็เลยมีคำถามว่า 1.ผมต้องการกำหนด IP ที่สามารถใช้งานได้ แทนการกำหนดให้ Block ผมสามารถทำได้ใหมครับ(สมมุติว่ามีเครื่อง200 เครื่อง แต่ออกเนตได้25เครื่อง ผมไม่อยาก Add IP เพื่อ Block 175เครื่อง) 2.คอม25เครื่อง มี20เครื่องออกเนตได้7.00-19.00น.ของทุกวัน แต่ปิดวันอาทิตย์ และอีก5เครื่องที่เหลือ ออกเนตได้เฉพาะ7.00-8.00,12.00-13.00 และ 17.00-19.00 แต่ปิดวันอาทิตย์
3.มี3เครื่องใช้ FTP ได้ตลอดเวลา(ISA ต้องติดตั้ง Client แล้ว Squid ต้องติดตั้งใหมครับ) 4.ผมใช้ CardLan 2ใบ ใบแรกเป็น IP แจกมาจาก Routor ใบที่2เป็น IP ในวง Lan(ตัวที่2 FigIP) ทั้ง4ข้อที่ถามนี้ Squid สามารถทำได้ใหมครับ และต้องตั้ง Config ยังงัย..ขอบคุณมากครับ

แนะนำให้ลองไปศึกษา  วิธีทำ SquidNT Transparent Proxy  ควบคู่กันไปด้วยครับ รับลองทำได้แน่นอน

วิธีทำ SquidNT Transparent Proxy
http://www.siamcafe.net/board/index.php?topic=9967.msg35673#msg35673

visa

  • บุคคลทั่วไป
สวัสดีครับ  คือว่า ผมได้ลองทำแล้วครับ ลื่นดีมากครับเวลาเล่นเอง แต่ว่า เวลาลูกค้ามาเข้าเว็ปสัก2เครื่องขึ้นไปเนี่ย หรือเวลาที่ผมเล่นไปสักพักเนี่ย จะเข้าเว็ปไม่ได้ต้องมารีสตาร์ท squid ใหม่ตลอดเลยครับ เป็นบ่อยมากๆไม่ทราบว่าเกิดจากอะไรครับ
spac เครื่องนะครับ  p4 1.4  ram 256 hdd 40g  ครับ  ลง winxp sp1+nod32+adwarepro  แค่นั้นครับไม่ได้ใช้ทำอะไร  รันsquid อย่างเดียวครับ

jasda2003

  • บุคคลทั่วไป
สาเหตุนะครับ (ประสบการณ์ที่เคยเจอก่าตัวเอง)

1 os เอง ที่เป็นแผ่นที่ได้ทำการดัดแปลงแก้ไขมา ซึ่งพวกนี้จะทำให้ Services มีปัญหา ไม่เชื่อคุณลองๆแผ่น win อีกตัวดูครับ ที่ไม่ใช้ตัวที่เคยลงปัจจุบันนี้
2 การทำการติดตั้งหรือลบ ท่านไม่ได้ restart เครื่อง


หมายเหตุ  ลองลบแล้วลองติดตั้งใหม่ดูครับถ้าไม่หาย ให้ลง os ใหม่ที่ไม่ใช้แผ่นที่ท่านเคยติดตั้งนะปัจจุบันนี้

โอเค

visa

  • บุคคลทั่วไป
ขอบคุณครับ ไว้จะลองลงwindowใหม่ดู ไม่รู้ว่า xpsp2 เครื่องนี้จะรับไหวหรือเปล่า -*-  ขอบคุณครับ

sine

  • บุคคลทั่วไป
wไฟล์ mime.conf ที่โหลดอันเดิมมันหายไปอ่ะ ครับขอช่วยอัพให้ทีครับ

visa

  • บุคคลทั่วไป
ผมลองเปลี่ยน winxp sp1 เป็น winxp sp2  ก็แล้ว  winxp sp2 2005 ก็แล้ว ไม่ใช่แผ่นของ quicpc นะครับ เป็นแผ่น windows เพียวๆเลย ก็ไม่ได้อ่ะครับ

อาการก็อย่างที่เรียนไปแล้วอ่ะครับ คือ เครื่องผมเล่นเครื่องเดียวไม่เป็นไรครับ เล่น 2 เครื่องไม่เป็นไร พอเล่นเน็ตพร้อมๆกัน 3เครื่องขึ้นไปเนี่ย service มันก็ stop ไปซะเฉยๆเลยครับ  ลูกค้าผู้ใหญ่ผมชอบเข้าเวปโป๊ซะด้วย แบบว่าเปิดกันอย่างเมามันน่ะครับ  ผมลองดูที่ logmonitor แล้ว มึนครับ เป็นimage ขึ้นพรึบๆๆเลยครับ มันจะเกี่ยวกันหรือเปล่าครับ ว่าเครื่องผมรับไม่ไหวครับ -*-  p4 1.4 g  ram 256 ครับ

jasda2003

  • บุคคลทั่วไป
wไฟล์ mime.conf ที่โหลดอันเดิมมันหายไปอ่ะ ครับขอช่วยอัพให้ทีครับ

รอสักพักครับ กำลัง test ตัวใหม่อยู่ครับ

jasda2003

  • บุคคลทั่วไป
ผมลองเปลี่ยน winxp sp1 เป็น winxp sp2  ก็แล้ว  winxp sp2 2005 ก็แล้ว ไม่ใช่แผ่นของ quicpc นะครับ เป็นแผ่น windows เพียวๆเลย ก็ไม่ได้อ่ะครับ

อาการก็อย่างที่เรียนไปแล้วอ่ะครับ คือ เครื่องผมเล่นเครื่องเดียวไม่เป็นไรครับ เล่น 2 เครื่องไม่เป็นไร พอเล่นเน็ตพร้อมๆกัน 3เครื่องขึ้นไปเนี่ย service มันก็ stop ไปซะเฉยๆเลยครับ  ลูกค้าผู้ใหญ่ผมชอบเข้าเวปโป๊ซะด้วย แบบว่าเปิดกันอย่างเมามันน่ะครับ  ผมลองดูที่ logmonitor แล้ว มึนครับ เป็นimage ขึ้นพรึบๆๆเลยครับ มันจะเกี่ยวกันหรือเปล่าครับ ว่าเครื่องผมรับไม่ไหวครับ -*-  p4 1.4 g  ram 256 ครับ

ตอนไม่มีลูกค้านะครับ ลองเปิด เครื่องทุกเครื่องนะครับ แล้วเปิด logmonitor ดูว่ามีไรวิ่งออก นอก รึเปล่า (ทุกเครื่องห้ามเข้าเวปนะเปิดทิ้งไว้เฉยๆ)

ปกติลงใหม่หมดไม่น่าเป็นนะครับ ลองเช็คตามผมดูก่อนครับ เพราะเวปฝรั่งอะ ตัวดีเลย โทจัน ไวรัส สแปม บาน

visa

  • บุคคลทั่วไป
ขอบคุณครับคุณ Jasda2003  เด๋วจะลองเช็คดูครับ   ::)

คงถึงเวลาล้างลงวินใหม่ทั้งร้านสักรอบนึงแล้วมั๊งคับ  ???

แล้วอย่างที่พี่ว่า ลงwinxp2006v4 น่ะครับ มันจะดีกว่าป่าวครับผมจะได้ลองไปซื้อมาลง เคยเห็นพี่ตอบอยู่อีกกระทู้นึงอ่ะ

bass

  • บุคคลทั่วไป
จะลบออกทำไงครับ คืออยากไปใช้แบบเดิมอะแต่พอลบแล้วเข้าเว็บไม่ได้

jasda2003

  • บุคคลทั่วไป
ขอบคุณครับคุณ Jasda2003  เด๋วจะลองเช็คดูครับ   ::)

คงถึงเวลาล้างลงวินใหม่ทั้งร้านสักรอบนึงแล้วมั๊งคับ  ???

แล้วอย่างที่พี่ว่า ลงwinxp2006v4 น่ะครับ มันจะดีกว่าป่าวครับผมจะได้ลองไปซื้อมาลง เคยเห็นพี่ตอบอยู่อีกกระทู้นึงอ่ะ

จากการที่ไป d/l ครั้งล่าสุดมาดีครับ winxp2006v4 นะ ล่าสุดตอนนี้ v6 แล้วครับ

แต่เท่าที่ลอง v4-v5 ดี ครับ

jasda2003

  • บุคคลทั่วไป
จะลบออกทำไงครับ คืออยากไปใช้แบบเดิมอะแต่พอลบแล้วเข้าเว็บไม่ได้

การติดตั้ง ( แบบ Manual ) :

แตกไฟล์ .rar แล้วก๊อปโฟรเดอร์ squid เอาไปไว้ไดร์ C:\ แล้วเข้า Dos Mode รูปแบบ
1. C:\squid\sbin>squid -z   แล้ว Enter <<< เพื่อสร้างโฟรเดอร์เก็บ cache พอเสร็จ
2. C:\squid\sbin>squid -i     <<<< เสร็จแล้วสำหรับการติดตั้งปิด Dos Mode ได้เลย

การติดตั้ง ( แบบ Auto )
1. ให้ดับเบิ้ลคลิกที่ Install SquidNT.exe รอมันทำงานจนเสร็จ
2. ให้ไปที่ Services ไปที่ SquidNT คลิกขวาไปที Properties ใน Startup เลือกเป็น Manual เป็นอันว่าเสร็จ

การลบ : รูปแบบ

1. ให้ปิดการทำงานของ Squid โยดับเบิ้ลคลิกที STOP SquidNT.exe
2. ให้ดับเบิ้ลคลิกที่ Uninstall SquidNT.exe หลังจากนั้นลบโฟรเดอร์ squid ในไดร์ C:\ ทิ้งได้เลย

cache

  • บุคคลทั่วไป
มีวิธีติดตั้งสำหรับทำ server online ไหม มีการ์ดแลนใบเดียวต้องเปลี่ยนอะไรตรงไหนบ้าง


jasda2003

  • บุคคลทั่วไป
มีวิธีติดตั้งสำหรับทำ server online ไหม มีการ์ดแลนใบเดียวต้องเปลี่ยนอะไรตรงไหนบ้าง

online แบบไหนครับ ขอ ละเอียดหน่อย

cache

  • บุคคลทั่วไป
online แบบไหนครับ ขอ ละเอียดหน่อย

เปิด online เครื่องวางอยู่ colo อยากวิ่งผ่าน colo

cache

  • บุคคลทั่วไป
ok ใช้งานได้ละคับ แต่ติดปัญหาอยู่อย่างนึง
เวลาผมพิมพ์เข้าเว็บ http://ragnarok.in.th มันจะ error

The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://ragnarok.in.th/

The following error was encountered:

Unable to determine IP address from host name for ragnarok.in.th
The dnsserver returned:

No DNS records
This means that:


แต่ถ้าพิมพ์เต็มยศ http://www.ragnarok.in.th มันจะเข้าได้
ผมเลยสงสัยว่าเกิดจากอะไร

cache

  • บุคคลทั่วไป
cache_peer proxy.infonews.co.th parent 8080 0 no-query   <<< INFONEWS (INFOACCESS)
cache_peer proxy.wnet.net.th parent 8080 0 no-query   <<< WORLDNET (APRICOT)
cache_peer proxy.sgn.net.th parent 8080 0 no-query   <<< SIAM GLOBAL ACCESS
cache_peer proxy.linethai.co.th parent 8080 0 no-query   <<< DATA-LINETHAI
cache_peer proxy.asiaaccess.net.th parent 8080 0 no-query   <<< ASIACCESS
cache_peer proxy.cwn.net.th parent 8080 0 no-query   <<< CWN-INTERNET
cache_peer proxy.asianet.co.th parent 8080 0 no-query   <<< ASIANET
cache_peer proxy.loxinfo.co.th parent 8080 0 no-query   <<< LOXINFO
cache_peer proxy.samart.co.th parent 8080 0 no-query   <<< SAMART
cache_peer proxy.pacific.net.th parent 8080 0 no-query   <<< PACIFIC
cache_peer proxy.roynet.co.th parent 8080 0 no-query   <<< ROYNET
cache_peer proxy.siamit.co.th parent 8080 0 no-query   <<< SIAM-IT
cache_peer netproxy1.inet.co.th parent 8080 0 no-query   <<< I-NET
cache_peer proxy.idn.co.th parent 8080 0 no-query   <<< IDIA-NET
cache_peer proxy.anet.net.th parent 8080 0 no-query   <<< A-NET
cache_peer proxy.ji-net.com parent 8080 0 no-query   <<< JI-NET
cache_peer proxy.sga.net.th parent 8080 0 no-query   <<< E-GO
cache_peer proxy.cscoms.com parent 8080 0 no-query   <<< CS
cache_peer proxy.ksc.net.th parent 8080 0 no-query   <<< KSC


ถามเพิ่มเติมครับ
คือจากการใช้งานของผม เป็นร้านอินเตอร์เน็ท ทีนี้จะรัน Server proxy ที่ร้าน
และจะเซ็ท proxy ให้มันมาดึง cache จาก เครื่อง server ที่วางอยู่ colo
ไม่ทราบว่าเครื่องที่ร้านต้องเซ็ทตรงนี้ว่าอะไร เพราะผมมีการเซ็ท auth passwd ไว้ด้วย
เช่น cache_peer proxy.mycolo.com parent 8080  และไงต่อ จากตรงนี้มันแค่ชี้ ip กับ port ไม่มีการใส่ user pass
ทุกอย่างโดยรวมเร็วดีครับ
ตัว ragnarok.in.th ผมทราแล้วว่าเกิดจาก ragnarok เอง ไม่เกี่ยวกับทางผม
ขอบคุณครับ

fresh

  • บุคคลทั่วไป
เกือบตายครับ เมื่อเช้าลอง โหลด patch ดู โห เบรก แทบไม่อยู่ ครับ เร็วจัด จริง ๆ เลย
ขอบคุณมากครับ สำหรับเรื่องดี ๆ ครับ

jasda2003

  • บุคคลทั่วไป
ok ใช้งานได้ละคับ แต่ติดปัญหาอยู่อย่างนึง
เวลาผมพิมพ์เข้าเว็บ http://ragnarok.in.th มันจะ error

The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://ragnarok.in.th/

The following error was encountered:

Unable to determine IP address from host name for ragnarok.in.th
The dnsserver returned:

No DNS records
This means that:


แต่ถ้าพิมพ์เต็มยศ http://www.ragnarok.in.th มันจะเข้าได้
ผมเลยสงสัยว่าเกิดจากอะไร

ผมไม่ได้ใช้ squidnt ก็ยังเข้าไม่ได้เลยนะท่าน http://ragnarok.in.th/

jasda2003

  • บุคคลทั่วไป
cache_peer proxy.infonews.co.th parent 8080 0 no-query   <<< INFONEWS (INFOACCESS)
cache_peer proxy.wnet.net.th parent 8080 0 no-query   <<< WORLDNET (APRICOT)
cache_peer proxy.sgn.net.th parent 8080 0 no-query   <<< SIAM GLOBAL ACCESS
cache_peer proxy.linethai.co.th parent 8080 0 no-query   <<< DATA-LINETHAI
cache_peer proxy.asiaaccess.net.th parent 8080 0 no-query   <<< ASIACCESS
cache_peer proxy.cwn.net.th parent 8080 0 no-query   <<< CWN-INTERNET
cache_peer proxy.asianet.co.th parent 8080 0 no-query   <<< ASIANET
cache_peer proxy.loxinfo.co.th parent 8080 0 no-query   <<< LOXINFO
cache_peer proxy.samart.co.th parent 8080 0 no-query   <<< SAMART
cache_peer proxy.pacific.net.th parent 8080 0 no-query   <<< PACIFIC
cache_peer proxy.roynet.co.th parent 8080 0 no-query   <<< ROYNET
cache_peer proxy.siamit.co.th parent 8080 0 no-query   <<< SIAM-IT
cache_peer netproxy1.inet.co.th parent 8080 0 no-query   <<< I-NET
cache_peer proxy.idn.co.th parent 8080 0 no-query   <<< IDIA-NET
cache_peer proxy.anet.net.th parent 8080 0 no-query   <<< A-NET
cache_peer proxy.ji-net.com parent 8080 0 no-query   <<< JI-NET
cache_peer proxy.sga.net.th parent 8080 0 no-query   <<< E-GO
cache_peer proxy.cscoms.com parent 8080 0 no-query   <<< CS
cache_peer proxy.ksc.net.th parent 8080 0 no-query   <<< KSC


ถามเพิ่มเติมครับ
คือจากการใช้งานของผม เป็นร้านอินเตอร์เน็ท ทีนี้จะรัน Server proxy ที่ร้าน
และจะเซ็ท proxy ให้มันมาดึง cache จาก เครื่อง server ที่วางอยู่ colo
ไม่ทราบว่าเครื่องที่ร้านต้องเซ็ทตรงนี้ว่าอะไร เพราะผมมีการเซ็ท auth passwd ไว้ด้วย
เช่น cache_peer proxy.mycolo.com parent 8080  และไงต่อ จากตรงนี้มันแค่ชี้ ip กับ port ไม่มีการใส่ user pass
ทุกอย่างโดยรวมเร็วดีครับ
ตัว ragnarok.in.th ผมทราแล้วว่าเกิดจาก ragnarok เอง ไม่เกี่ยวกับทางผม
ขอบคุณครับ

#  TAG: cache_peer
#   To specify other caches in a hierarchy, use the format:
#
#      cache_peer hostname type http_port icp_port
#
#   For example,
#
#   #                                        proxy  icp
#   #          hostname             type     port   port  options
#   #          -------------------- -------- ----- -----  -----------
#   cache_peer parent.foo.net       parent    3128  3130  [proxy-only]
#   cache_peer sib1.foo.net         sibling   3128  3130  [proxy-only]
#   cache_peer sib2.foo.net         sibling   3128  3130  [proxy-only]
#
#         type:  either 'parent', 'sibling', or 'multicast'.
#
#   proxy_port:  The port number where the cache listens for proxy
#           requests.
#
#     icp_port:  Used for querying neighbor caches about
#           objects.  To have a non-ICP neighbor
#           specify '7' for the ICP port and make sure the
#           neighbor machine has the UDP echo port
#           enabled in its /etc/inetd.conf file.
#
#       options: proxy-only
#           weight=n
#           ttl=n
#           no-query
#           default
#           round-robin
#           multicast-responder
#           closest-only
#           no-digest
#           no-netdb-exchange
#           no-delay
#           login=user:password | PASS | *:password
#           connect-timeout=nn
#           digest-url=url
#           allow-miss
#           max-conn
#           htcp
#           carp-load-factor
#
#           use 'proxy-only' to specify objects fetched
#           from this cache should not be saved locally.
#
#           use 'weight=n' to specify a weighted parent.
#           The weight must be an integer.  The default weight
#           is 1, larger weights are favored more.
#
#           use 'ttl=n' to specify a IP multicast TTL to use
#           when sending an ICP queries to this address.
#           Only useful when sending to a multicast group.
#           Because we don't accept ICP replies from random
#           hosts, you must configure other group members as
#           peers with the 'multicast-responder' option below.
#
#           use 'no-query' to NOT send ICP queries to this
#           neighbor.
#
#           use 'default' if this is a parent cache which can
#           be used as a "last-resort." You should probably
#           only use 'default' in situations where you cannot
#           use ICP with your parent cache(s).
#
#           use 'round-robin' to define a set of parents which
#           should be used in a round-robin fashion in the
#           absence of any ICP queries.
#
#           'multicast-responder' indicates the named peer
#           is a member of a multicast group.  ICP queries will
#           not be sent directly to the peer, but ICP replies
#           will be accepted from it.
#
#           'closest-only' indicates that, for ICP_OP_MISS
#           replies, we'll only forward CLOSEST_PARENT_MISSes
#           and never FIRST_PARENT_MISSes.
#
#           use 'no-digest' to NOT request cache digests from
#           this neighbor.
#
#           'no-netdb-exchange' disables requesting ICMP
#           RTT database (NetDB) from the neighbor.
#
#           use 'no-delay' to prevent access to this neighbor
#           from influencing the delay pools.
#
#           use 'login=user:password' if this is a personal/workgroup
#           proxy and your parent requires proxy authentication.
#           Note: The string can include URL escapes (i.e. %20 for
#           spaces). This also means % must be written as %%.
#
#           use 'login=PASS' if users must authenticate against
#           the upstream proxy. This will pass the users credentials
#           as they are to the peer proxy. This only works for the
#           Basic HTTP authentication scheme. Note: To combine this
#           with proxy_auth both proxies must share the same user
#           database as HTTP only allows for one proxy login.
#           Also be warned this will expose your users proxy
#           password to the peer. USE WITH CAUTION
#
#           use 'login=*:password' to pass the username to the
#           upstream cache, but with a fixed password. This is meant
#           to be used when the peer is in another administrative
#           domain, but it is still needed to identify each user.
#           The star can optionally be followed by some extra
#           information which is added to the username. This can
#           be used to identify this proxy to the peer, similar to
#           the login=username:password option above.
#
#           use 'connect-timeout=nn' to specify a peer
#           specific connect timeout (also see the
#           peer_connect_timeout directive)
#
#           use 'digest-url=url' to tell Squid to fetch the cache
#           digest (if digests are enabled) for this host from
#           the specified URL rather than the Squid default
#           location.
#
#           use 'allow-miss' to disable Squid's use of only-if-cached
#           when forwarding requests to siblings. This is primarily
#           useful when icp_hit_stale is used by the sibling. To
#           extensive use of this option may result in forwarding
#           loops, and you should avoid having two-way peerings
#           with this option. (for example to deny peer usage on
#           requests from peer by denying cache_peer_access if the
#           source is a peer)
#
#           use 'max-conn' to limit the amount of connections Squid
#           may open to this peer.
#
#           use 'htcp' to send HTCP, instead of ICP, queries
#           to the neighbor.  You probably also want to
#           set the "icp port" to 4827 instead of 3130.
#
#           use 'carp-load-factor=f' to define a parent
#           cache as one participating in a CARP array.
#           The 'f' values for all CARP parents must add
#           up to 1.0.
#
#
#   NOTE: non-ICP/HTCP neighbors must be specified as 'parent'.
#
#Default:
# none

cache

  • บุคคลทั่วไป
ขอเป็นภาษาไทยได้ไหมครับ แบบว่าวิธี config ไรเงี้ย ถ้าแบบนี้อ่านเข้าใจแต่ใช้ไม่เป็นอ่ะครับ
คือเรื่องของเรื่องเวลาเปิดเว็บมาไม่อยากให้ IP ที่ร้านไปโผล่ที่อื่น อยากให้ที่ร้านเวลาเปิดเว็บให้มันไปออก ip เครื่อง colo แทนหง่ะ
เพราะงั้นผมเลยต้องมาความรู้หน่อย

ZealKung

  • บุคคลทั่วไป
สุดยอดแล้ว

ท่านพี่jasda2003 เจ๋งที่สุด

ทำตาม Requests ตลอดเลย เป็นกำลังใจให้สู้ๆนะฮับ

(ไม่เคยโพสกระทู้นี้เลยให้ตายซิใช้ทุกวัน)

jasda2003

  • บุคคลทั่วไป
ไม่แน่ใจนะครับ ลืมๆ ดูตัวอย่างครับ

cache_peer xxx.xxx.xxx.xxx parent 8080 0 login=user:password

chaom

  • บุคคลทั่วไป
คุณjasda2003 สุดยอดจริงๆขอเป็นกำลังใจให้น่ะครับ
ขอถามนิดนึงครับ ipstar ใช้ได้ไหม (แต่ผมลงไปแล้วล่ะ)
การ log in ผ่าน browser นี้ทำยังไงครับ (จะลองใช้ user: test/test ดู แต่ไม่รู้ว่าใช้ยังไง)
ขอบคุณมากครับ

jasda2003

  • บุคคลทั่วไป
คุณjasda2003 สุดยอดจริงๆขอเป็นกำลังใจให้น่ะครับ
ขอถามนิดนึงครับ ipstar ใช้ได้ไหม (แต่ผมลงไปแล้วล่ะ)
การ log in ผ่าน browser นี้ทำยังไงครับ (จะลองใช้ user: test/test ดู แต่ไม่รู้ว่าใช้ยังไง)
ขอบคุณมากครับ


ipstar ใช้ได้ครับ (มีหลายโรงบาล เครื่องไม่เยอะที่เอาไปใช้อะครับ)

#auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/etc/passwd
#auth_param basic children 3
#auth_param basic realm SquidNT Proxy Server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#authenticate_ttl 1 hour
#acl password proxy_auth REQUIRED
#http_access allow password

ลองหาบรรทัดคำสั่ง ตามนี้แล้วเอา # ออกแล้ว restart squid แล้วลองดูอีกที่นะครับ

ปล. เครื่องที่ลง squid ไม่สามารถที่จะ login ผ่าน browser ได้ เพราะผมถือว่าเป็นเครื่อง admin แต่ถ้าอยากจะให้มัน login ผ่าน browser ด้วยก็สามารถ ทำได้ครับ


chaom

  • บุคคลทั่วไป
ขอบคุณครับ
แต่ที่ browser ของ เครื่องลูกน่ะ พิมพ์ว่าอะไรครับ
พิมพ์ ip แล้วตามด้วยอะไรเหรอครับ รบกวนทำให้ดูได้ไหมครับ
ที่ server ผมลง apache ด้วยนะครับ

jasda2003

  • บุคคลทั่วไป
ปกติ ระบบ login ผ่าน browser ถ้าทำถูกต้องเวลาเข้า www มันจะเด้งหน้าต่างให้ใส่ user/pass ขึ้นมาเลยครับ ถ้าท่านทำแล้วไม่ได้ยังไงก็ เอา config มาแปะ ดูหน่อยครับ

ตัวอย่าง

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]

chaom

  • บุคคลทั่วไป
ผมลง apache  เพื่อทำเป็น web server ด้วยน่ะ
เมื่อใส่ ipของเครื่อง squid  มันจะวิ่งไปที่หน้าเวบก่อน
เป็นเพราะ apache หรือป่าวครับ
แต่ถ้าจะให้ stop  apache ไม่ได้ครับ เพราะผมทำทั้งเวบและ ftp server ไว้น่ะครับ
นี่ครับคุณ jasda2003 code config
auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/etc/passwd
auth_param basic children 3
auth_param basic realm SquidNT Proxy Server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
authenticate_ttl 1 hour
ขอบคุณมากๆ เลยครับ จากใจจริง

siwarkorn

  • บุคคลทั่วไป
Re: Squid 2.5 Stable 12 SiamcafeEdtion ติดตั้งบน 2000 Server SP4 ไม่ได้ ทำงัยดี
« ตอบกลับ #554 เมื่อ: สิงหาคม 19, 2006, 03:53:44 am »
ผมติดตั้งบน Windows 2000 Server SP4 ไม่ผ่านครับ มี Error ตามรูปที่แนบมาด้วยครับ ขอความช่วยเหลือจากท่านผู้รู้ด้วยครับ 
แต่ผมทดลอง Version ก่อนหน้านี้ ของ Siamcafe ก็ติดตั้งได้ ใช้งานได้ปกติ   จะแก้ปัญหางัยดีครับ

ขอบคุณครับ
siwarkorn
SquidNT New User

jasda2003

  • บุคคลทั่วไป
บน 2000 ต้องติดตั้งแบบ Manual ครับ

การติดตั้ง ( แบบ Manual ) :

แตกไฟล์ .rar แล้วก๊อปโฟรเดอร์ squid เอาไปไว้ไดร์ C:\ แล้วเข้า Dos Mode รูปแบบ
1. C:\squid\sbin>squid -z   แล้ว Enter <<< เพื่อสร้างโฟรเดอร์เก็บ cache พอเสร็จ
2. C:\squid\sbin>squid -i     <<<< เสร็จแล้วสำหรับการติดตั้งปิด Dos Mode ได้เลย

edward_ed

  • บุคคลทั่วไป
เคยลง Squid แล้วมีปัญหาแล้วจะลงใหม่
ต้องลบต้องลบ IE Cache ลบที่ไหนเหรอครับ ช่วยหน่อยครับ

jasda2003

  • บุคคลทั่วไป
 8)

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]

jasda2003

  • บุคคลทั่วไป
อ้างถึง
ผมลง apache  เพื่อทำเป็น web server ด้วยน่ะ
เมื่อใส่ ipของเครื่อง squid  มันจะวิ่งไปที่หน้าเวบก่อน
เป็นเพราะ apache หรือป่าวครับ
แต่ถ้าจะให้ stop  apache ไม่ได้ครับ เพราะผมทำทั้งเวบและ ftp server ไว้น่ะครับ

ไม่น่าจะเกียวกันนะครับ

edward_ed

  • บุคคลทั่วไป
อ้างถึง
คุณ jasda2003  ขอบคุณครับ ::)

ขอถามอีกข้อว่า ต้องเซตค่า acl local net ยังไง
ip address        10.0.0.9
subnet mask    255.0.0.0
gateway            10.0.0.2
ต่อ lan ตรงจาก router (squid conf. เดิมๆยังไม่ได้แก้ไขอะไร)