Re: Q. How to configure transparency proxy with Redhat Linux??

From: Steve Snyder <swsnyder@dont-contact.us>
Date: Fri, 28 Jan 2000 09:30:50 -0500 (EST)

On Fri, 28 Jan 2000 12:28:12 +0800, fooler wrote:

>in /etc/rc.d/rc.local file:
>
> /sbin/ipchains -A input -p tcp -d 127.0.0.1 80 -j ACCEPT
> /sbin/ipchains -A input -p tcp -d <ip_address_of_your_server> 80 -j
>ACCEPT
> /sbin/ipchains -A input -p tcp -d 0.0.0.0/0 80 -j REDIRECT 3128
>
>in /etc/sysconfig/network file:
>
> FORWARD_IPV4=true

Using the lines above, I get something *really* strange: the host name
is stripped off the URL!

For example,

        http://www.os2ss.com/warpcast/

becomes

        949068432.886 1 192.168.0.2 NONE/400 1087 GET /warpcast/ - NONE/- -

This is with Squid v2.2S5 on a RedHat 6.0 system /w 2.2.14 kernel.

I've had Squid working great as a configured (non-transparent) proxy
for a couple of months. After adding the above rules to my firewall
script (no errors shown on execution), I changed my browser config
from using a proxy to "Direct connect to Internet" (i.e. port 80).
Doing a tail on access.log I get lines like the above: URLs with no
host name.

Squid is definitely getting my browser's request, but in a mangled
form. Any idea on what's going on?

Thanks.

*** Steve Snyder ***
Received on Fri Jan 28 2000 - 07:44:33 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:45 MST