As I only have one static IP address I have been using Squid to redirect
requests to certain domains to seperate servers. For example my main
site is running on LAMP and another is running on IIS.
It's been running in this configuration happily for quite some time
however there is one thing that still bugging me. I'm not sure if what
I'm about to ask can be done but hopefully someone might be able to help me.
When the reverse proxy connects to the back end server, requests are
logged with the IP address of the proxy. Which is to be expected I
suppose, however I was wondering if there is any way to configure Squid
to pass the IP address of the client through the proxy so that the
clients IP is logged instead of the proxy's. I know this can be
configured in ISA server but needless to say I'm trying my best to avoid
using MS products.
I've been poking through the Squid-cache site but am none the wiser.
There is an example of my squid.conf here:
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!