APM irule to assign the "advance resource assign" and "static IP" based on username while connecting vpn
Hello Guys,
Im new to irule. I need help to write an irule for my access policy so that when e.g. "abc" username connects to ssl vpn "corporate network resource" assign to it along with a "static IP" and when "xyz" username comes in "dmz network resource" assign to it along with a "static IP". Network resources already defined in Access policy separately. I need to do this for around 100 users.
I have found the irule on f5 site for assign the static IP. but not able to figure out how to assign network resources via irule .
irule for static IP assign.
when ACCESS_POLICY_AGENT_EVENT { if { [ACCESS::policy agent_id] eq "VPN" } { ACCESS::session data set session.requested.clientip [class lookup [ACCESS::session data get "session.logon.last.username"] VPN ] } }