Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

    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

    and i have tried many things but i still losing TCP so can anybody help me!??

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Nottingham, England
    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

  3. #3


    yeah sure, but even if i search any page for multiple times im always getting the TCP_miss for every sites i have searched >>?

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts