Forum Discussion
create a new Header value manipulation iRule
when HTTP_REQUEST {
if { HTTP::header exists X-Forwarded-For } {
HTTP::header replace X-Forwarded-For [[IP::client_addr]]
}
}
- jerm1020_254086Aug 01, 2016Nimbostratus
apologies for my ignorance on the subject, but this accomplishes what I was seeking? it looks correct from my limited knowledge of irules. true client is client IP within the irule?
- ekaleidoAug 01, 2016Cirrus
[IP::client_addr] is whatever IP the user is assigned.
- jerm1020_254086Aug 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 }]
- ekaleidoAug 01, 2016Cirrus
I edited above, should be the right syntax now.
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