Forum Discussion
Annsar_Akhtar
Nimbostratus
Sep 17, 2017APM, How to query custom header before routing to Logon Portal
Hi All
I am new to APM and setting up a POC to present a logon page, I have been able to set up a basic Access Policy but need to now look at only presenting the logon page to external users and...
Stanislas_Piro2
Cumulonimbus
Sep 17, 2017Hi,
you can use following irule to create a session variable with IP address in header:
when ACCESS_SESSION_STARTED {
ACCESS::session data set session.custom.CDN_client_IP [HTTP::header "X-Forwarded-For"]
}then, create a branch rule filtering on this variable
if you want to disable APM when client IP is internal, you can use following code
when HTTP_REQUEST {
if {[IP::addr [HTTP::header "X-Forwarded-For"] equals "1.1.1.0/24"]} {
APM::disable
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
