Forum Discussion
Chaddd
Nimbostratus
Dec 20, 2018Use iRule variable in Access Policy
I'm setting the XFF header address in a variable in an iRule. I know that piece is working because when I send it to the log I see it there successfully.
I'd like to use my variable in an access...
Faruk_AYDIN
Altostratus
Dec 20, 2018Hi Guy,
add ad iRule Event (setXFF), then use the following irule :when ACCESS_POLICY_AGENT_EVENT {
if { [ACCESS::policy agent_id] eq "setXFF" } {
ACCESS::session data set session.custom.XFF [HTTP::header X-Forwarded-For]
}
}
Then you can use session.custom.XFF anywhere in your flow.
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
