[squid-users] Asyncronous squid ?

From: Adrian de los Santos <demon@dont-contact.us>
Date: Sun, 20 May 2001 11:51:44 -0500

Hi squid gurus.. first of all sorry for my bad english

Im trying to do something that i call "asycronous proxy" i mean send the
request over 1 interfase and recive the answer (the page) over another
interfase..

i will try to explain it with the following drawing..

Assume machine A has 2 ethernet interfaces.. the first interfase has
a Internet valid IP address (such as 200.39.164.129) but on the other
side it has a internal LAN ip address (192.168.1.241).. squid its
running on this machine and when a user request a page (and if the
page its not on the cache) it forwards the request to a parent squid
on the same LAN (machine B)..

Machine B has 2 interfaces also, interface 1 has a internal LAN address
192.168.1.1 and on the other side it has a valid IP address on the
Internet (148.235.170.1).. this machine will act as a packet modifier
for machine A. I mean when it recives a packet coming from machine A
(192.168.1.241) and the http request its not on his cache it will go
for the page on the Internet, changing the source address of the
request to 200.39.164.129 (instead of 148.235.170.1) and sends the
http request to the machine on the Internet (Machine C)

The Machine C its any web server on the NET, when it gets the request
it will reply to the valid ip address of machine A (200.39.164.129).

   200.39.164.129
+---+
| A |<------------------+
+---+ |
 | 192.168.1.241 |
 | |
 | |
 | |
 v 192.168.1.1 |
+---+ |
| B | |
+---+ |
 | 148.235.170.1 |
 | |
 v |
+--------------------------+
|The Internet |
+--------------------------+
 | |
 v |
+-----+ |
| C |-----------------+
+-----+
  Internet site (151.1.10.15)

My questions are:

- I suppose that squid maintains a on memory table for requests, clients,
and request ID (or something similar, correct me if i am wrong please) such
as:

Request | client | request id

www.yahoo.com 192.168.1.10 AABBCCD1134

So i suppose that the request ID travels to the requested site
(www.yahoo.com) and this request id travels back to the squid server so
it can be able to return the requested page to the client (192.168.1.10)

And thinking logically when a parent its configured it forwards the
request to the parent and expects the answer from the parent.. so for
the thing that i wish to make it needs to expect the answer from the
original internet site.

How can i do this ?

What part of the code i must check ?

Thanks a lot for your time reading this..

-- 
                               (\(\                    
                                OO +  _                
                              =(' = \/~)              
+----------------------------oOO----OOo-----------------------------+
Adrian de los Santos (aka: Demon) -  Linux, Unix Consultant
Cuautitlan Izcalli, Estado de Mexico, Mexico.
Email: demon@demon.com.mx, Phone: 58815312, Cel: 044-1-905-6767 
+-------------------------------------------------------------------+
GDP: Grin Defiantly at Programmer
---
GCS d- s: a- C++ UL++++$ UC++++$ US+++$ UB+++$ P+++>+++++ L++$>++++ 
E+ W++ N++ o K? w++ O M V PS PE Y+ PGP+ t- 5 X+ R- tv+ b+ DI++ D++ 
G+ e h+ r++ y+
===
Received on Mon May 21 2001 - 11:41:16 MDT

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