[squid-users] Transparent PROXY error with port 8080

From: Marcelo M. Miranda <miranda@dont-contact.us>
Date: Tue, 18 Feb 2003 12:32:16 -0400

Hello,

    I have a linux gateway acting as a firewall and a proxy server with
transparent proxy
enabled. I am running RedHat 7.2 with iptables and squid 2.4STABLE7
compiled with
transparent proxy support.
    I make redirections from requests coming on ports 80 and 8080 as
follows:

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT
--to-port 3128
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 8080 -j REDIRECT
--to-port 3128

    The squid configuration is the same as indicated in the FAQ:

http_port 3128
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

    For sites with servers listening on default port 80, everything goes
well.
    But for those who listen to port 8080, the redirection FAILS
(timeout).
    But if I configure the browser with PROXY settings manually, it
works.
    Does anybody know what's wrong with my configuration ?
    Have you seen the same problem before ?
    I though the problem would be with the "httpd_accel_port 80", which
tells squid to connect to remote servers on port 80 but I'm not sure
about
this.
    Thanks all!

    Marcelo
Received on Tue Feb 18 2003 - 09:31:22 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:27 MST