RSS

Tag Archive | "Squid"

Increase the maximum file descriptors for Squid

Friday, June 13, 2008

Comments Off

ถ้า squid คุณเกิดปัญหาหรือ error message ขึ้นว่า WARNING! Your cache is running out of filedescriptors ในไฟล์ cache.log แสดงว่า Squid version ที่ใช้อยู่ได้ compile ให้ไฟล์ file descriptors ให้สามารถใช้ได้มากสุด 1024 ซึ่งปัญหานี้เราไม่สามารถแก้ไขด้วยวิธีการใช้ ulimit ได้โดยตรง ใน Squid ที่ support จะมี option max_filedesc เพิ่มขึ้นมาเพื่อใช้ในกาีรแก้ไขปัญหานี้ Linux ที่ support (ตอนนี้ทราบแต่ทาง Red Hat) Red Hat Enterprise Linux 3: squid-2.5.STABLE3-6.3E.18 Red Hat Enterprise Linux 4: squid-2.5.STABLE14-1.4E Red Hat Enterprise Linux 5 ส่วนวิธีการแก้ไขนั้นเราสามารถทำได้ตามขั้นตอนข้างล่างนี้ได้เลยครับ 1. [...]

Continue reading...

Transparent proxy in squid 2.6

Tuesday, August 28, 2007

0 Comments

การเซ็ต transparent proxy ใน squid 2.6 จะใส่แค่ค่า http_port 8080 transparent แทน (version เก่า) http_port 8080 httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on และเซ็ต iptables echo “1″ > /proc/sys/net/ipv4/ip_forward iptables -F iptables -t nat -F iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE iptables -t nat -A PREROUTING -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 8080 Permanent link to this post (60 words, estimated 14 [...]

Continue reading...

Warning: stristr() [function.stristr]: Empty delimiter in E:\ezylinux\wp-content\plugins\wassup\wassup.php on line 2093