Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: Transparent proxy, squid, masqarading.

R Garth Wood
Fri, 16 Oct 1998 02:54:06 -0400 (EDT)

On Thu, 15 Oct 1998, Slava Voronin wrote:

> I'm having some trouble setting up transparent proxying.
> I've got squid installed. The idea is to use squid as a proxy cache.
> Correct me if I am wrong on that. .....I don't need to use any client
> program to work with transparent proxy. When client request,
> transparent proxy intercepts and redirects it to squid, which has some
> data cached . Squid gives this ready answer to client.
>
> I am trying to configure masquerading , squid and transparent proxy all
>
> together. I read on each subject separately
> Can somebody give me a more clear picture on that ?
> Or give me some resorses (I mean how it works all together not
> separatly).
> Thanks .

transprxy has nothing to do with masq'ing. So we'll deal with
them separately.

1 Check that you have squid working(netscape)
2 install tproxy and a kernel that supports the -r option in
ipfwadm (I forget which those are right now)
3 install the rule:
ipfwadm -I -i accept -r $TPROXY_PORT -D 0.0.0.0/0 80
4 config masq'ing as usual:
ipfwadm -F -i m -D 0.0.0.0/0 -W $EXTERNAL_IFACE

NOTE that tproxy and squid are different.
client -> gateway -> REDIR -> tproxy -> squid -> www_server

+-----------------------------------------------------------------------+
| R Garth Wood | <insert witty comment here> |
| | -R G Wood |
|
| |