Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Apr 20 '10 at 22:09

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

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


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.