Announcement

Collapse
No announcement yet.

ใครมีความรู้เรื่อง Squid ช่วยด้วยครับ

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

  • ใครมีความรู้เรื่อง Squid ช่วยด้วยครับ

    เช็ตค่า proxy เป็นเครื่องที่ติดตั่ง Squid เเล้วเอาไปเช็ตที่เครื่องไคร์เอนท์
    เป็น 192.168.1.3 port 8080 มันขึ้นในรูป




    เเต่ ที่เครื่องลง Squid ใส่ 127.0.0.1 port 8080 กลับเล่นเน็ตได้

    งงมากมายครับ
    นี่เป็น 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 localnet src 192.168.1.0/255.255.255.0
    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



    #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


    ie_refresh on


    visible_hostname proxyBYsiamcafe.net

    cache_mgr webmaster@siamcafe.net

    ftp_sanitycheck off



    รบกวนช่วยดูด้วยครับว่าถูกต้องไหม
    Attached Files

  • #2
    icp_port 0
    http_port 3128
    http_port 800

    http_port 8080

    สีแดงเอาออกครับ มันซ้ำซ้อน
    ว่าแต่ท่านทำ auth ด้วยหรือครับ
    #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

    Comment


    • #3
      Originally posted by Namlai6 View Post
      icp_port 0
      http_port 3128
      http_port 800

      http_port 8080

      สีแดงเอาออกครับ มันซ้ำซ้อน
      ว่าแต่ท่านทำ auth ด้วยหรือครับ
      #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
      ขอบคุณมากครับ
      ไม่ได้ทำหรอกครับเเค่เอาจากเว็บมาเเปะว่าจะใส่ # เอาออกเเล้ว

      Comment


      • #4
        เอาออกเเล้วนะท่าน
        เเต่ยังไม่หายเลยเหมือนเดิม
        ไม่รู้นะว่าเกี่ยวไหม ผมใช้ พวก VM จำลองเอาเเล้วมา SET proxy OS หลัก
        แล้วอีกอย่างตอนติดตั่งขึ้นเเบบนี้ด้วยครับ
        Attached Files

        Comment


        • #5
          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.1.0/255.255.255.0
          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

          อยู่แถวๆ นี้แหละ ไปหาเอาเอง อิอิ

          นึกดูจะได้เก่งๆ


          ทำไมคุณถึงใส่ 127.0.0.1 แล้วเล่นได้

          แต่ทำไม 192.168.1.0/24 เล่นไม่ได้

          Comment

          Working...
          X