Forum Discussion
Does the Visual Policy Editor in APM only have visibility of session variables?
I am unable to parse an X-Forwarded-For header into the VPE directly using VPE tools like Variable Assign and MessageBox.
I can do it by setting the custom session variable in an iRule like below;
when ACCESS_SESSION_STARTED {
ACCESS::session data set session.custom.actualclientip [HTTP::header values X-Forwarded-For]
}
However I would prefer to use the VPE as it is much easier/cleaner to use and troubleshoot. Is the functionality there and am I just stuffing up the syntax?
- Stanislas_Piro2
Cumulonimbus
You can use following command in bash
sessiondump -allkeys
it will display all available variables.
there is no variable containing X-Forwarded-For header.
So the only solution is to do it within the irule, and the event ACCESS_SESSION_STARTED is the best one.
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