As you suspect for this to even have a chance of working correctly you need to use
httpd_accel_port virtual or else Squid will use port 80 even if the request was intercepted from port 8080.. (at least in theory..) Regards Henrik tis 2003-02-18 klockan 17.32 skrev Marcelo M. Miranda: > 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 -- Henrik Nordstrom <[EMAIL PROTECTED]> MARA Systems AB, Sweden
