1 อย่างแรก ต้องกำหนดในIPTABLES SERVICE ครับ ให้ REDIRECT PORT จาก 80>>>>>3128 (default).iptables
ทำให้ service iptables startทุกครั้งที่เครื่องเปิด chkconfig --level 345 iptables on
ในiptables ครับ ใช้ คำสั่ง iptables -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128(redirect จาก port 80>>>>3128
iptables
2.iptables -A POSTROUTING -o eth1 -j MASQUERADE (eth0 >local interface (Connect HUB , eth1 > net interface connect to router ip)
ส่วนการconfig ipต่างๆ อย่างท่านได้แนะนำมาเเล้วก่อนหน้านี้
3ในsquid.conf (/etc/squid/squid.conf)
เพิ่มค่าเข้าไป
คือ http_port 3128
httpd_accel_host localhost
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
start squid ดูค่าพวกacl ต่างๆ นะครับ(/etc/rc.d/init.d/squid start)
acl local src 192.168.XX.XX
chkconfig --level 345 squid on
http_access allow local