[squid-users] Problem with transparent proxying.

From: Pasi Holmström <pasihol@dont-contact.us>
Date: Tue, 12 Nov 2002 15:47:56 +0200

I have RedHat with Kernel 2.4 and Squid 2.4.STABLE1 and I'm trying to make
transparent proxy.
That's what I've done.
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 1.2.3.4
iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 \ -j DNAT --to-port
8080
iptables -t nat -A PREROUTING -p tcp --dport 8080 -i eth0 \ -j DNAT --to-
port 8080

Lines in squid.conf
        http_port 8080
        httpd_accel_host virtual
        httpd_accel_port 80
        httpd_accel_with_proxy on
        httpd_accel_uses_host_header on

Most of the addresses seem to work fine but for example:
http://www.foo.com/cgi-bin/psearch? does not. Also <form name="queryForm"
method="POST"
action="/jpQuery2/jpQuery.do;jsessionid=E4322F8C3469DB121E07CE8A09A7E5BA.jp1
"> does not work.
But http://www.google.com/search?q=ip&ie=UTF-8&oe=UTF-8&hl=fi&lr= does
work. What is going on???
Received on Tue Nov 12 2002 - 06:46:16 MST

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