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

ผู้เขียน หัวข้อ: SquidNT 2.6 Stable 6 2 Fast Edition config ให้ทีคับ  (อ่าน 4005 ครั้ง)

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

aoodey

  • บุคคลทั่วไป
SquidNT 2.6 Stable 6 2 Fast Edition config ให้ทีคับ
« เมื่อ: สิงหาคม 24, 2009, 07:05:00 am »
คือที่ร้านม net 2 สายคับ อยากจะลง SquidNT 2.6  ไว้ที่เครื่องคิดตังอ่ะคับ แต่ก็ลองทำดูแล้วนะคับ  แต่ทำยังไงก็ทำไม่ได้อ่ะ เน็ตที่เครื่องแม่ก็ได้ตามปกติ ก็ถือว่า ok
แต่ที่เครื่องลูกอ่ะ ทำยังไงก็เข้าเนทไม่ได้ ผมคิดว่ามันคงเป็นที่ config แน่เลย ซึ่งตรงนี้ผมไม่มีความรู้เรื่องนี้สักเท่าไหร่ คือแก้หลายต่อหลายครั้งแล้ว แต่เครื่องลูกก็ยังเข้าเน็ท
ไม่ได้อยู่ดี คือ อยากจะให้ช่วยนิดนุงอ่ะคับ ทำ config ให้ทีเผื่อจะได้ทราบว่ามันผิดตรงไหนถึงมะได้ 
 ไอพี router  2 ตัวน่ะคับ ตัวแรก 192.168.1.1(ออกเกมส์)  ตัวสอง 192.168.1.2 (ออกเนท)  เครื่องแม่ ไอพีใช้ 192.168.1.100 (ตรงนี้ให้เปลี่ยนก็ได้นะคับ)  subnet 255.255.255.0 gateway เป็น 192.168.1.1
.
แล้ว DNS server ต้องใส่ป่าวคับ ของผมใช้ tt&t  202.69.137.137 202.69.137.138 หรือไม่ต้องใส่

อันนี้คือ config เดิมๆอ่ะ


icp_port 0
http_port 3128
http_port 800
http_port 8080


hierarchy_stoplist cgi-bin ? .acgi .asp .cgi .css .chtml .htm .html .jhtml .js .jsp .perl .phtml .pl .php .php3 .php4 .shtml .xhtml .xml
acl QUERY urlpath_regex cgi-bin \? \.acgi \.asp \.cgi \.css \.chtml \.htm \.html \.jhtml \.js \.jsp \.perl \.phtml \.pl \.php \.php3 \.php4 \.shtml \.xhtml \.xml
cache deny QUERY



#cache_peer proxy.asianet.co.th parent 8080 0 no-query
#cache_peer 203.144.143.6 sibling 8080 0 no-query

#peer_connect_timeout 5 seconds





cache_mem 128 MB
#maximum_object_size_in_memory 24 Kb
#half_closed_clients off
minimum_object_size 0 KB
maximum_object_size 25600 KB
#cache_swap_high 98%
#cache_swap_low 95%


memory_replacement_policy heap GDSF
cache_replacement_policy heap GDSF


cache_dir aufs c:/squid/cache/cache1 800 16 256



access_log none
cache_log none
cache_store_log none

mime_table c:/squid/etc/mime.conf


log_mime_hdrs off

cache_effective_user squid
cache_effective_group squid


refresh_pattern -i .(zip|gz|xfs|exe|arj|npz|lha|lzh|rar|tgz|tar|rar|jar|nup|wz|Z)$ 525960 99% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(class|pdf|rtf|doc|wp|wp5|ps|prn)$ 525960 99% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(mov|avi|mpg|wav|au|mid|mp3)$ 525960 95% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(jpg|gif|jpeg|png|css|js)$ 525960 18000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(bmp|tif|tiff|xbm)$ 525960 17000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(swf)$ 525960 20000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern ^ftp: 4320 20% 43200
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 1440 50% 14400

umask 027
via off
forwarded_for off
coredump_dir c:/squid/var/cache




acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 210 1025-65535 280 488 591 777
acl CONNECT method CONNECT
acl localnetwork0 src 127.0.0.0/8
acl localnetwork1 src 192.168.0.0/24


http_access allow manager localhost

http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnetwork0
http_access allow localnetwork1

http_access deny all
http_reply_access allow all
icp_access deny all



ie_refresh on


visible_hostname proxyBYsiamcafe.net

cache_mgr [email protected]

ftp_sanitycheck off



ต้องแก้ตรงไหนบ้างครับ ยังไงก็ช่วยทีนะครับ  wah :027:

ออฟไลน์ penpas

  • ปี 1 เทอม 2
  • ***
  • กระทู้: 10
  • Reputation: 0
Re: SquidNT 2.6 Stable 6 2 Fast Edition config ให้ทีคับ
« ตอบกลับ #1 เมื่อ: สิงหาคม 25, 2009, 09:18:23 am »
คือที่ร้านม net 2 สายคับ อยากจะลง SquidNT 2.6  ไว้ที่เครื่องคิดตังอ่ะคับ แต่ก็ลองทำดูแล้วนะคับ  แต่ทำยังไงก็ทำไม่ได้อ่ะ เน็ตที่เครื่องแม่ก็ได้ตามปกติ ก็ถือว่า ok
แต่ที่เครื่องลูกอ่ะ ทำยังไงก็เข้าเนทไม่ได้ ผมคิดว่ามันคงเป็นที่ config แน่เลย ซึ่งตรงนี้ผมไม่มีความรู้เรื่องนี้สักเท่าไหร่ คือแก้หลายต่อหลายครั้งแล้ว แต่เครื่องลูกก็ยังเข้าเน็ท
ไม่ได้อยู่ดี คือ อยากจะให้ช่วยนิดนุงอ่ะคับ ทำ config ให้ทีเผื่อจะได้ทราบว่ามันผิดตรงไหนถึงมะได้ 
 ไอพี router  2 ตัวน่ะคับ ตัวแรก 192.168.1.1(ออกเกมส์)  ตัวสอง 192.168.1.2 (ออกเนท)  เครื่องแม่ ไอพีใช้ 192.168.1.100 (ตรงนี้ให้เปลี่ยนก็ได้นะคับ)  subnet 255.255.255.0 gateway เป็น 192.168.1.1
.
แล้ว DNS server ต้องใส่ป่าวคับ ของผมใช้ tt&t  202.69.137.137 202.69.137.138 หรือไม่ต้องใส่

อันนี้คือ config เดิมๆอ่ะ


icp_port 0
http_port 3128
http_port 800
http_port 8080


hierarchy_stoplist cgi-bin ? .acgi .asp .cgi .css .chtml .htm .html .jhtml .js .jsp .perl .phtml .pl .php .php3 .php4 .shtml .xhtml .xml
acl QUERY urlpath_regex cgi-bin \? \.acgi \.asp \.cgi \.css \.chtml \.htm \.html \.jhtml \.js \.jsp \.perl \.phtml \.pl \.php \.php3 \.php4 \.shtml \.xhtml \.xml
cache deny QUERY



#cache_peer proxy.asianet.co.th parent 8080 0 no-query
#cache_peer 203.144.143.6 sibling 8080 0 no-query

#peer_connect_timeout 5 seconds





cache_mem 128 MB
#maximum_object_size_in_memory 24 Kb
#half_closed_clients off
minimum_object_size 0 KB
maximum_object_size 25600 KB
#cache_swap_high 98%
#cache_swap_low 95%


memory_replacement_policy heap GDSF
cache_replacement_policy heap GDSF


cache_dir aufs c:/squid/cache/cache1 800 16 256



access_log none
cache_log none
cache_store_log none

mime_table c:/squid/etc/mime.conf


log_mime_hdrs off

cache_effective_user squid
cache_effective_group squid


refresh_pattern -i .(zip|gz|xfs|exe|arj|npz|lha|lzh|rar|tgz|tar|rar|jar|nup|wz|Z)$ 525960 99% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(class|pdf|rtf|doc|wp|wp5|ps|prn)$ 525960 99% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(mov|avi|mpg|wav|au|mid|mp3)$ 525960 95% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(jpg|gif|jpeg|png|css|js)$ 525960 18000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(bmp|tif|tiff|xbm)$ 525960 17000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern -i .(swf)$ 525960 20000% 525960 override-lastmod override-expire reload-into-ims ignore-reload
refresh_pattern ^ftp: 4320 20% 43200
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 1440 50% 14400

umask 027
via off
forwarded_for off
coredump_dir c:/squid/var/cache




acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 210 1025-65535 280 488 591 777
acl CONNECT method CONNECT
acl localnetwork0 src 127.0.0.0/8
acl localnetwork1 src 192.168.0.0/24


http_access allow manager localhost

http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnetwork0
http_access allow localnetwork1

http_access deny all
http_reply_access allow all
icp_access deny all



ie_refresh on


visible_hostname proxyBYsiamcafe.net

cache_mgr [email protected]

ftp_sanitycheck off



ต้องแก้ตรงไหนบ้างครับ ยังไงก็ช่วยทีนะครับ  wah :027:

ของผม
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 210 1025-65535 280 488 591 777
acl CONNECT method CONNECT
acl localnetwork0 src 127.0.0.0/8
acl localnetwork1 src 192.168.1.1/24

สิ่งที่ต้องแก้นะคับ ที่จะทำให้เน็ตเครื่องลูกใช้ได้นั้น
acl localnetwork1 src 192.168.1.1/24
ตรง 192.168.1.1 เครื่อง IP เล้าเตอร์เรา นะคับ ส่วนเครื่องแม่ ตรง internet option > connet > lan ใส่ เป็น 192.168.1.2 8080 เครื่องลูก ก็ทำแต่ใส่เป็น 192.168.1.2 ทุกเครื่องเลยคับ
Signature cleanned by Admin

ออฟไลน์ penpas

  • ปี 1 เทอม 2
  • ***
  • กระทู้: 10
  • Reputation: 0
Re: SquidNT 2.6 Stable 6 2 Fast Edition config ให้ทีคับ
« ตอบกลับ #2 เมื่อ: สิงหาคม 25, 2009, 09:19:50 am »
แล้ว Squid เค้าเลิกใช้กันแล้วนะคับ หันไปใช้ cc ipcop กันแล้ว แต่ผมยังใช้ squid ทำระบบเก็บ ไฟล์ zip,exe, อื่นๆที่จำเป็นไว้เยอะแต่ก็ดีคับ ส่วนเนื้อ ที่นั้น ไห้ squid ไป 2-3g อิอิ ถ้าเยอะกว่านี้ เน่าเลย ช้ามากๆเวลา ดึงแคช มา นี่ผมเล่าให้ฟังนะคับ
Signature cleanned by Admin