Forum Discussion
x-forward-for irule breaks http connections
Trying to retain the original IP address of the connection. Followed instructions in the below article but both options break http requests altogether.
https://support.f5.com/csp/article/K4816
When adding the iRule when HTTP_REQUEST { HTTP::header insert X-Forwarded-For [IP::remote_addr] }
The page does not load. We are using the fasthttp and I also tried to duplicate this while Enabling Insert X-Forwarded-For. WHen I do this HTTP work and the page loads but the server is not getting the IP originating address.
Any ideas?
- AceDawg1Nimbostratus
What type of virtual server are you configuring this on (e.g. standard, performance layer 4)? And what protocol (e.g. https)?
- Santiago_379062Nimbostratus
Performance HTTP
HTTP and HTTPS
- AceDawg1Nimbostratus
Can you send the config? Use the following to provide the necessary components:
tmsh list ltm virtual virtualServerName
tmsh list ltm rule iRuleName
- SurgeonRet. Employee
There are some limitations for using iRule with header insert command and performance HTTP VIP
"The HTTP Header Insert field of the Fast HTTP profile only supports insertion of a static text HTTP header. The Fast HTTP profile will not perform iRule variable expansion for the HTTP Header Insert field; this is considered an unnecessary performance hit for the Fast HTTP profile."
https://support.f5.com/csp/article/K8024
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com