Forum Discussion
jerm1020_254086
Aug 01, 2016Nimbostratus
create a new Header value manipulation iRule
create a new Header value manipulation iRule. This iRule needs to interrogate Header values and substitute the x-forwarded-for value with True-Client-IP value if available. our CDN is providing the a...
ekaleido
Cirrus
when HTTP_REQUEST {
if { HTTP::header exists X-Forwarded-For } {
HTTP::header replace X-Forwarded-For [[IP::client_addr]]
}
}
jerm1020_254086
Aug 01, 2016Nimbostratus
I am receiving this error when trying to input the iRule
01070151:3: Rule [/Common/CDN_Header_value_manipulation] error: /Common/CDN_Header_value_manipulation:2: error: [parse error: PARSE syntax 41 {syntax error in expression " HTTP::header exists X-Forwarded-For ": variable references require preceding $}][{ HTTP::header exists X-Forwarded-For }]
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects