Operating System - Linux
1827893 Members
1666 Online
109969 Solutions
New Discussion

Re: how to configure squid server to cache for internet clients

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to configure squid server to cache for internet clients

Hi Gurus
Os: rhel 3.0, rhl 9.0

firewall box external interface ip: 202.a.b.c
firewall box internal interface ip: 10.0.0.1
Squid server ip: 10.0.0.2
Apache server ip: 10.0.0.3

I have configure the apache server for virtual hosting(multiple websites are running on the same physical machine and on the single ip) successfully.

My firewall server(iptables), is configured to DNAT, i.e firewall box redirect/forwards all the http request to my webserver.

But I want my firewall box, that instead of forwarding the http request to my webserver, firewall box forwards every http request to my squid server, and my squid get the webpage from webserver and forwards/reply the page back to the firewall server. likewise if squid server already have done its job.. then any new request will be directly serve from squid cache.

Is it possible ? if yes HOW ?

Regards
Maaz
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: how to configure squid server to cache for internet clients

My understanding was that squid cached content for your webusers looking out, not for content coming in.

I may be wrong, but this idea might not work. The documentation should be able to tell you weather it can work or not.

If possible, the squid users will tell you how.

What are the benefits you think you will achieve if this is possible?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Maaz
Valued Contributor

Re: how to configure squid server to cache for internet clients

Dear SEP, yes I want my squid server cache for internet clients.
The only benefit is that webserver receive a hit/request only when, the web content expires on the squid cache.

This implementation doesnt sounds me so good .. but my client was running MS ISA server for the same sake/pupose.
When configured for Web Publishing(i.e web servers are accessed via ISA)MS ISA server, also cache for internet clients, and this feature is called "Reverse Caching"

My clients want me to implement the Reverse Caching feature via squid.

Regards
Maaz
xyko_1
Esteemed Contributor
Solution

Re: how to configure squid server to cache for internet clients

Hi Maaz,

here you have some usefull instructions to do what you want.
http://library.n0i.net/linux-unix/applications/daemons/squid/squid-user-guide/c2521.htm

And here the full book of squid
http://library.n0i.net/linux-unix/applications/daemons/squid/squid-user-guide/book1.htm

Hope it helps.
Xyko
Maaz
Valued Contributor

Re: how to configure squid server to cache for internet clients

Great Help xyko ;)
I just read about the acceleration, and its all very easy and perfect.
I m sure, I'll succesfuly implement it. ;)

Regards
Maaz