Forum Discussion
irule
- Jun 20, 2023
Hi Bhupendra ,
in Step 2 of rewrite >>> do you need the source ip matches as well or Not ?
So you need to match on specific source IP address/address first and then match /A or /B then move traffic to pool A but if the same match on source ip address/addresses but with uri starts with /c-new modify it to be /C and forward traffic to pool A
if non of those forward to pool B
that's Correct ? - Jun 20, 2023
Maybe think about using a local traffic policy rather than an iRule. It will be more efficient and easier for you to manage
- Jun 20, 2023
Hi Bhupendra ,
As PeteWhite recommended , yes it's eaiser than iRule and will give you the same result.
it should be like this :>>> Note that , the last condition "3rd match " should be All Traffic and then do those Actions ( Log and Forward to default pool )
This is an overview about Local Traffic policy :
https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/local-traffic-policies-getting-started-12-1-0/1.html
Goodluck
in Step 2 of rewrite >>> do you need the source ip matches as well or Not ? ------- >>>>No we don't want to match source IP here only URI with any source.
So you need to match on specific source IP address/address first and then match /A or /B then move traffic to pool A but if the same match on source ip address/addresses but with uri starts with /c-new modify it to be /C and forward traffic to pool A
if non of those forward to pool B
that's Correct ? ----------------->>First condition match on specific source IP address/address first then match URI /A or /B for selected source IPs then move traffic to pool A
Second condition -any source with uri starts with /c-new modify it to be /C and forward traffic to pool A
If no condition match from 1&2 then default traffic should be route POOL B
Hi Bhupendra ,
Have you tested the irule as well ?
just test it , you may take it as a reference in further implementations.
Also it will add to me that my code was correct or need further modifications.
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