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

ผู้เขียน หัวข้อ: Set SquidNT แล้วเครื่องลูกยังเข้าไม่ได้ครับ  (อ่าน 4667 ครั้ง)

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

tommyswp

  • บุคคลทั่วไป
ผมอยาก Set เครื่อง ผม ให้เป็น เครื่อง Proxy Server โดยใช้ SquidNT

ผมมีเครื่อง Server อยู่ 1 เครื่อง WinXPSP2 Lan Card 2 ใบ
     - ใบที่ 1  ต่อ Cross Over กับ Router
                 Set    IP เป็น  192.168.1.2
                            Subnet Mask เป็น 255.255.255.0
          Defaut Gateway เป็น 192.168.1.1 (IP Router)
                             DNS เป็น 192.168.1.1 (IP Router)
    - ใบที่ 2  ต่อจากเครื่อง Server ไปที่ Hub  (อันนี้สงสัยเซ็ตไม่ถูก)
                 Set    IP เป็น  192.168.10.1
                            Subnet Mask เป็น 255.255.255.0
          Defaut Gateway เป็น 192.168.1.1 (IP Router)
                             DNS เป็น 192.168.1.1 (IP Router)

             - ได้ติดตั้ง SquidNT และ เซ็ต ที Lan Connection ของ IE เป็น 127.0.0.1 Port 8080 แล้ว เครื่อง Server สามารถเข้าเน็ตได้ แต่เครื่องลูกเข้าเน็ตไม่ได้
             *ใน Squid.conf  เป็นแบบนี้ครับ
   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


เครื่อง Client 
                 Set    IP เป็น  192.168.10.2
                            Subnet Mask เป็น 255.255.255.0
          Defaut Gateway เป็น 192.168.1.1
                            DNS เป็น 192.168.1.1
                เซ็ต ที Lan Connection ของ IE เป็น 192.168.1.2 (IP Card Lan ใบที่ 1 ของ Server) Port 8080

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

ออฟไลน์ artnid

  • นักเรียนมัธยม
  • *****
  • กระทู้: 168
  • Reputation: -1
Re: Set SquidNT แล้วเครื่องลูกยังเข้าไม่ได้ครับ
« ตอบกลับ #1 เมื่อ: มีนาคม 11, 2007, 02:23:31 pm »
ลองเปลี่ยนตรง acl localnet src 192.168.0.0/255.255.255.0

เป็น acl localnet src 192.168.10.0/255.255.255.0  ดูนะครับเพราะผมไม่เคยใช้การ์ด 2 ใบ แต่ก็งม แทบตายกว่าจะได้เหมือนกัน อิอิ...

สู้สู้ ครับ
Signature cleanned by Admin

TahTaelCom2007

  • บุคคลทั่วไป
Re: Set SquidNT แล้วเครื่องลูกยังเข้าไม่ได้ครับ
« ตอบกลับ #2 เมื่อ: มีนาคม 15, 2007, 05:46:41 pm »
ปิด firewall ให้หมดครับ

kkd370579

  • บุคคลทั่วไป
Re: Set SquidNT แล้วเครื่องลูกยังเข้าไม่ได้ครับ
« ตอบกลับ #3 เมื่อ: มีนาคม 17, 2007, 01:59:24 am »
ลองเปลี่ยนตรง acl localnet src 192.168.0.0/255.255.255.0

เป็น acl localnet src 192.168.10.0/255.255.255.0  ดูนะครับเพราะผมไม่เคยใช้การ์ด 2 ใบ แต่ก็งม แทบตายกว่าจะได้เหมือนกัน อิอิ...

สู้สู้ ครับ

อีกอย่างสายต้องแบบสายตรงนะที่ต่อเข้ากับ router นะ

cdf301

  • บุคคลทั่วไป
Re: Set SquidNT แล้วเครื่องลูกยังเข้าไม่ได้ครับ
« ตอบกลับ #4 เมื่อ: มีนาคม 26, 2007, 01:56:51 pm »
ลองเอา config ตัวนี้ไปใช้ดูครับ (save ตัวเก่าเก็บไว้ด้วยน่ะครับ...กันเหนียว)
แล้วเปลี่ยนค่า IP ของเครื่องลูกให้อยู่วงเดียวกันกับ server
ตั้งค่า Proxy Server เป็น IP ของเครื่อง server และใช้ port  8080

icp_port 3130
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 allow all
http_reply_access allow all
icp_access allow all



ie_refresh on


visible_hostname proxyBYAngcarn Gong-ngern

cache_mgr [email protected]

ftp_sanitycheck off

DAn

  • บุคคลทั่วไป
Re: Set SquidNT แล้วเครื่องลูกยังเข้าไม่ได้ครับ
« ตอบกลับ #5 เมื่อ: มีนาคม 27, 2007, 01:35:30 pm »
    - ใบที่ 2  ต่อจากเครื่อง Server ไปที่ Hub  (อันนี้สงสัยเซ็ตไม่ถูก)
                 Set    IP เป็น  192.168.10.1
                            Subnet Mask เป็น 255.255.255.0
          Defaut Gateway เป็น 192.168.1.1 (IP Router)
                             DNS เป็น 192.168.1.1 (IP Router)

           

ไอ้ตรง Default Gateway กับ DNS สำหรับใบที่ 2 ไม่ต้องใส่ครับ

artza

  • บุคคลทั่วไป
Re: Set SquidNT แล้วเครื่องลูกยังเข้าไม่ได้ครับ
« ตอบกลับ #6 เมื่อ: เมษายน 02, 2007, 03:17:43 pm »
ถ้าเครื่องแม่เข้าเนตได้ เครื่องลูกเข้าไม่ได้ ไฟร์วอล์ 100 เปอร์เซ็น ครับ ปิดให้หมดด้วย เมนบอร์ดบางชนิดตอนลง Driver มันมีไฟล์วอร์ด้วยนะคับให้เช็คด้วย ผมก็เคยเป็นอาการเดียวแบบคุณ หาตั้งนาน ที่แท้ไฟล์เวอร์ จาก Driver เมนบอร์ดไม่ได้ปิด โดยเฉพาะ บอร์ดที่เป็น ชิฟ Nvidia