Announcement

Collapse
No announcement yet.

กำลังทำproxy serverด้วยsquidNTวานผู้รู้ช่วยตอบทีครับ

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • กำลังทำproxy serverด้วยsquidNTวานผู้รู้ช่วยตอบทีครับ

    ผมลงsquidที่เซฟเวอร์ แล้วรันผ่านทุกอย่าง เล่นเนตได้ และดูเหมือนมันจะทำงาน เพราะต้องไปใส่หมายเลข โลคอลไอพี คื่อ 127.0.0.1 ที่ proxyของIE ถึงจะเล่นเนตได้

    แต่เครื่องลูก ใส่ไอพีของเครือ่งแม่ที่proxyของIEแล้วเนตไม่วิ่ง

    หรือว่าsquidnt มันใช้เก็บแคชเวปเฉยๆ ไม่ได้เป็นตัวแชร์เนต หรือป่าวคับ ช่วยตอบที

  • #2
    ผมก็ใช้แชร์ได้นี่ครับ ปรับคอนฟิกครบยัง อีกอย่าง เวลาใช้งานจริงตอนกำหนดใน IE ของเครื่องลูก ต้องใส่ IP ของเครื่องที่ลง squid ลงไป แล้วใส่หมายเลขพอร์ตที่ทำ proxy ด้วยนะครับเช่น 3128 88 80 default มันคือ 3128 แต่ถ้าแก้ไว้ก็ต้องใช้ตามนั้น โดยใส่ที่ tools/internet option/connection/lan setting แล้วทำเครื่องหมายที่ Use proxy ............... อย่าลืมทำเครื่องหมายที่ bypass ด้วยเวลาใช้งานในวงมันจะได้ไม่ต้องวิ่งผ่าน proxy
    Last edited by ratth; 4 Apr 2008, 16:44:58.

    Comment


    • #3
      ที่เครื่องลูกผมทำตามนั้นแล้วครับ แต่เนตก็ยังไม่วิ่ง สงสัยว่าเป็นที่คอนฟิก ช่วยดูให้ทีครับว่าถูกไหม
      ผมโหลดsquidntมาจาก www.siamcafe.com เขาเขียนว่าลงแล้วใช้ได้เลย คอนฟิกเป็นแบบนี้คับ
      # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
      # 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
      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 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

      Comment


      • #4
        วง lan ท่าอะไรหรอครับ 192.168.0.0 หรอครับ แล้วก้เครื่อง server ปิดไฟวอ ด้วยนะครับบ

        Comment


        • #5
          น่านดิ ip เครื่องแม่ กับลูก อะไร แล้ว เครื่องแม่เป็น gateway ด้วยหรือเปล่า

          Comment


          • #6
            ใส่ ip เครื่องแม่ port 8080 แล้วใช้ C.Lan 1ใบ หรือ 2ใบล่ะ

            Comment


            • #7
              ใช้ได้แล้วครับ ผมใส่พีในคอนฟิก กับ ปิดไฟวอ แต่squidมันชอบstoเอง

              เปิดเนตไปสักพัก squidมันหยุดทำงาน ต้องกดสตาดใหม่ เป็นบ่อยเลยครับ แก้ไขยังไงดีครับ

              Comment


              • #8
                ผมเคยเจอปัญหาแบบนี้เหมือนกัน บางครั้งก็หลุดบ่อย ลงบางครั้งก็ใช้งานได้ดีครับ เค้าแนะนำให้ start service แบบ
                manual ครับ แต่ผมลองแล้วมันก็ยังหลุดอยู่ดีครับ ตอนนี้ใช้ Open source แล้วครับ โชคดีครับ

                Comment


                • #9
                  แล้วโปรแกรมนี้มันช่วยอะไรได้บ้างอ่ะครับ ว่าจะลงเหมือนกาน เซตไม่เป็น

                  Comment


                  • #10
                    ผมใช้สมัยเนต56kครับ ทำให้เปิดเวปเร็วขึ้น แต่พอเปลี่ยนมาเป็นadslก้อไม่ต้องใช้ครับ เพราะเปิดเร็วกว่าอยุแล้วอะ


                    ใครสนใจ ไปศึกษาได้ในwww.siamcafe.net

                    Comment


                    • #11
                      Originally posted by sicklab View Post
                      ผมใช้สมัยเนต56kครับ ทำให้เปิดเวปเร็วขึ้น แต่พอเปลี่ยนมาเป็นadslก้อไม่ต้องใช้ครับ เพราะเปิดเร็วกว่าอยุแล้วอะ


                      ใครสนใจ ไปศึกษาได้ในwww.siamcafe.net

                      ไม่ใช่แค่ทำให้เร็วขึ้นเท่านั้นครับ หลักๆคือใช้สำหรับ share internet connection กรณีไม่มีเราเตอร์เพราะสมัยก่อนเราเตอร์/บริดจ์มันแพง บางคนก็เอาไปใช้เพื่อควบคุมกวรใช้งาน อินเทอร์เนต เนื่องจากสามารถล็อกเว็บ หรือโปรแกรมบางตัวไม่ให้ใช้งานได้ๆด้วยครับ แต่การคอนฟิกมันยุ่งยากพอตัว

                      Comment


                      • #12
                        ใช้ได้แล้วครับ เป็นเพราะ nod32 นี่เอง ผมเอาnod32 ออก squid ทำงานตลอดละคับ

                        ขอบคุณท่าน MaKuBeck มากครับ

                        คือต้องปิดไฟล์วอร์ กับ nod32 แต่แบบนี้ server คงอยู่ได้ไม่นาน มีตัวแอนตี้ไวรัสที่ใช้คู่กับsquidได้บ้างครับ

                        ตอนนี้กำลังศึกษาคำสั่งsquid อยากทราบคำสั่งที่ทำให้มันเก็บแพทเกม กับ ไฟวีดีโอคลิบในเวปต่างๆเอาไว้ เพราะดูเหมือนว่ามันจะเก็บแต่เวป ไม่เก็บ วีดีโอ กับแพทเกม ที่เครือ่งลูกเคยเข้าไว้เลย พอกดดูสคริบวีดีโอทีก็โหลดใหม่ตลอด

                        รบกวนผู้รู้ช่วย ตอบทีครับ

                        Comment


                        • #13
                          ถ้าคุณยากทำให้ระบบคุณทำงานอย่างมีประสิทธิภาพ คงต้องนำลีนุกมาทำเกตเวย์แล้วล่ะครับ ก็มีหลายตัวนะที่ทำได้ดีและไม่ยุ่งยาก ก็คงขึ้นอยู่ที่คุณถนัดตัวไหนและขนาดของระบบ

                          Comment


                          • #14
                            ผมลง squid แต่เล่นเน็ตได้แต่เล่นเอ็มไม่ได้ครับและเครื่องไคลเอ็นก็เล่นเน็ตได้แต่เล่นเอ็มไม่ได้เหมือนกันครับ พอเอาออกแบบธรรมดาก็เล่นเน็ตไม่ได้เลยครับ ใครพอช่วยได้มั่งครับ เดือดร้อนมากๆ

                            Comment


                            • #15
                              ลง linux มั้ยครับ พวก clarkconnect ผมเอามาลงให้อยู่ ในกระทู้ล่างๆ นี่แหละ

                              น่าสนใจนะครับ ทำไรได้มากครับ เสถียร ไม่ติดไวรัส

                              Comment

                              Working...
                              X