Squid configuration directive forwarded_for
Available in: 3.3 3.2 3.1 2.7 3.HEAD 2.HEAD 3.0 2.6
History:
- Changes in 3.1 forwarded_for
-
New setting options. transparent, truncate, delete.
If set to "transparent", Squid will not alter the X-Forwarded-For header in any way. If set to "delete", Squid will delete the entire X-Forwarded-For header. If set to "truncate", Squid will remove all existing X-Forwarded-For entries, and place the client IP as the sole entry.
- Changes in 2.7 forwarded_for
-
Has several new modes, allowing one to finetune how/if the requesting client IP should be forwarded in X-Forwarded-For
Configuration Details:
Option Name: | forwarded_for |
---|---|
Replaces: | |
Requires: | |
Default Value: | forwarded_for on |
Suggested Config: |
|
If set to "on", Squid will append your client's IP address in the HTTP requests it forwards. By default it looks like: X-Forwarded-For: 192.1.2.3 If set to "off", it will appear as X-Forwarded-For: unknown If set to "transparent", Squid will not alter the X-Forwarded-For header in any way. If set to "delete", Squid will delete the entire X-Forwarded-For header. If set to "truncate", Squid will remove all existing X-Forwarded-For entries, and place the client IP as the sole entry. |
|
Search
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Help Out or Donate
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
Miscellaneous
- Developer Resources
- Related Writings
- Related Software:
- Squid Artwork