Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Im using squid as a reverse proxy to host multiple web servers on one internet IP. It works fine and has been doing so for the past few months. I have just noticed that every request sent to my servers is logged as comming from the squid servers IP address.

Is there anyway to make squid pass the originating IP to the web servers?

share|improve this question

migrated from superuser.com Apr 20 '10 at 22:09

This question came from our site for computer enthusiasts and power users.

1 Answer 1

Squid uses the X-Forwarded-For header to pass the client IP through the reverse proxy. You'll need to configure forwarded_for on for Squid, and tell your backend servers to log the new header.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.