Forum Discussion
Kuerten_772
Feb 13, 2014Nimbostratus
APM Irule multiple access profile for one virtual server
Hello F5 Team,
i was asking if is possible to create irule to use multiple profile for one virtual, currently i have one access profile for one vs apm .
Thank you for your help.
Ahmed
Sam_Novak
Oct 15, 2019Altostratus
Not sure if anyone will stumble across this, but I was recently trying to figure this out for a Edge client setup. I wanted a single VS hosting the sign in, but then the policy and connectivity assignment were throwing me for a loop.
What I ended up doing was using an iRule to check the landinguri the client was sending, and then I used branches on the iRule event to assign different Webtops and Network Access assignments based on the requested location.
when ACCESS_POLICY_AGENT_EVENT {
if { [ACCESS::policy agent_id] eq "VPN_Resource_Check" } {
log local0. "Current virtual server name: [virtual name]"
log local0. "Current virtual server name: [HTTP::host]"
log local0. "Current virtual server name: [SSL::sni name]"
log local0. "[ACCESS::session data get session.server.landinguri]"
switch [string tolower [ACCESS::session data get session.server.landinguri]] {
"/nursing" { ACCESS::session data set session.custom.vpn "nursing" }
}
}
}
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