พอดีเห็นว่า..ทำไม squid.conf มันมีแค่10 บรรทัดเลยเอามาคอมไฟล์เล่นดู...
อึ้ง..ครับ
เพราะว่า...มันแทบไม่มี config ใดๆเลย..
แต่มี rpm ให้ใครอยากลองโหลดไปดูแต่ของผมคอมไพล์เอง..เพื่อให้ใช้งานได้ full option
สำหรับลูกศิษย์ VIP ..ไว้ผมจะทำให้เป็นของขวัญชิ้นสุดท้ายที่จะให้..ก่อนจะปิด board VIP เพื่อย้ายไป TF เพื่อระบบป้องกัน..ที่ดีกว่า...
หลังจากน้นจะให้บุคคลทั่วไปใช้
เพราะยังไม่ได้เทสอะไรมากมาย..แต่..มันต้องมีอะไรมากกว่าเก่าแน่ๆ
ใครอยากลองก็ต้องลบ squid ของเก่าออกให้หมดโดยการใช้คำสั่ง
apt-get remove squid -y ก่อนนะครับ
แล้วค่อย ติดตั้งด้วย rpm
ส่วนตัตวคอมไพล์ขอเวลาทดอบก่อน..
download : ๛sc
http://files.siamcafe.net/download.php?file=263squid3-3.1.0.8-1.el4.pp.i386.rpm
ตัวนี้ใช้งานกับ CC ได้เลยครับเป็น rpm
ปล..ลองไปดู squid.conf แล้วจะงง..ว่าทำไมมันมีแค่ 10 บรรทัดเองหว่า..แค่เพิ่ม visablehostname ก็ใช้ได้แล้น..แต่ถ้าโมเพิ่มน่าจะแรง.ลองเล่นดูครับ :042:
copy ของผมไปใช้ก็ได้คร้บ
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access allow manager
http_access allow !Safe_ports
http_access allow CONNECT !SSL_ports
http_access allow localnet
http_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
coredump_dir /var/cache/squid
visible_hostname proxy.siamproxy.net