Results 1 to 3 of 3
i have configured squid configuration file to cache the websites using these commands
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
and i have reconfigured my ip tables by these ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-10-2007 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 4
squid cache missing TCP
i have configured squid configuration file to cache the websites using these commands
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
and i have reconfigured my ip tables by these commands
iptables --flush
/etc/init.d/iptables stop
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -i eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables --append FORWARD --in-interface eth0 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -A INPUT -i eth0 -j ACCEPT
iptables -A OUTPUT -o eth0 -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.3.1:8080
iptables -A INPUT -j LOG
iptables -A INPUT -j DROP
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/init.d/iptables save
/etc/init.d/iptables start
and the squid is working because the access.log file record every thing i searched but the problem that in every line of access.log i get this error
....TCP=miss....
and i have tried many things but i still losing TCP so can anybody help me!??
- 01-11-2007 #2
I dont understand what you mean by 'losing TCP'.
I could be wrong here, but doesn't 'miss' in this context mean that the file requested wasn't in the proxy cache, so squid had to go out to the real internet for it?Linux user #126863 - see http://linuxcounter.net/
- 01-12-2007 #3Just Joined!
- Join Date
- Jan 2007
- Posts
- 4
yeah sure, but even if i search any page for multiple times im always getting the TCP_miss for every sites i have searched >>?


Reply With Quote
