Forum Discussion
Ganesh_Ramamoor
Nimbostratus
Nov 30, 2005UDP iRule help
Can I write an iRule to distribute a UDP packet based on a specific set of bytes, say byte 10 to byte 20 is less than 100 use pool A, and if the same of set of bytes is between 100 to 200 use pool B and so on?
Thanks in advance.
- Colin_Walker_12Historic F5 AccountYou certainly can. To do this, you'd use the UDP::payload information and only act upon the specific pieces you're interested in.
- Ganesh_Ramamoor
Nimbostratus
Thanks for the reference. - Colin_Walker_12Historic F5 AccountThere sure is...
- Ganesh_Ramamoor
Nimbostratus
I'm sorry I didn't make myself clear. You are talking about having a persistence profile, right? I was looking for a persistence that I can dynamically turn on and off based on the information in the incoming UDP packet. And in fact, turn it on only for those clients that come in with the specific information. Can I have a persistence profile (or even create one) dynamically and enable/disable it in my iRule? Even if that's possible, will it have any performance impact? Or is there an easier/better way to do this? - JRahm
Admin
Yes, you can.if { } persist } elseif { } persist none }
- Ganesh_Ramamoor
Nimbostratus
Oh, I see in the second reference I see, - JRahm
Admin
yes, that would persist only that client. You can use a profile, such as: - Ganesh_Ramamoor
Nimbostratus
Great! Thanks. - JRahm
Admin
Correct, once the LTM recognizes that the service is no longer available, any persistence records associated with that service will be deleted. - Ganesh_Ramamoor
Nimbostratus
Thanks.
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