Forum Discussion
SWG iRule per-packet policy
Hello,
I'm working on SWG and would like to configure/assign different per-request policy as per client request. - If request is from IP address A or IP address B then use per-request policy A or Per-request policy B, we need to configure dynamic per-request policy.
Is it possible to achieve this using iRule in APM access policy?
Thanks, Sachin
7 Replies
You can do it with an iRule. It is not possible use iRules to switch PRPs, but you can create source Ip-based branches within a single per-request policy. In the Per-Request Policy, you can create an Empty action, and assign a branch to it with the following check:
expr { [IP::addr [mcget {session.user.clientip}] equals "10.0.0.0/8"] }
That branch will hit if the IP address comes from 10.0.0.0/8 subnet. There is an IP Subnet Match action the main access policy that is unfortunately not available in Per request access policy - so you need to create it manually.
- sachin_80710
Nimbostratus
Thanks Michael, good I don't need irule. But as per SWG 11.6 implementation guide page 53 under Session variables for use in a per-requestpolicy. There they mentioned only 4 session that can be used in PRP. - This should work - try it.
- Michael_Koyfman
Cirrocumulus
You can do it with an iRule. It is not possible use iRules to switch PRPs, but you can create source Ip-based branches within a single per-request policy. In the Per-Request Policy, you can create an Empty action, and assign a branch to it with the following check:
expr { [IP::addr [mcget {session.user.clientip}] equals "10.0.0.0/8"] }
That branch will hit if the IP address comes from 10.0.0.0/8 subnet. There is an IP Subnet Match action the main access policy that is unfortunately not available in Per request access policy - so you need to create it manually.
- sachin_80710
Nimbostratus
Thanks Michael, good I don't need irule. But as per SWG 11.6 implementation guide page 53 under Session variables for use in a per-requestpolicy. There they mentioned only 4 session that can be used in PRP. - Michael_Koyfman
Cirrocumulus
This should work - try it.
- F5_Jeff
Cirrus
Hi all,
From what I've read, the IP subnet match is now included as VPE agent and no need to manually configure as a rule in version 15. It is under the endpoint security (server-side) per-request policy items
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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