Forum Discussion
khamlat_316003
Nimbostratus
Jun 01, 2017iRule - UDP payload/Netflow
I would like to create an iRule to look for [example] flowset length count in my UDP payload and forward traffic to a certain pool member based on that flowset length count.
Can someone assist?...
Jun 03, 2017
I think you need to do something with
UDP::payload and binary scan. For more info on these topics see:
- https://devcentral.f5.com/articles/irules-101-17-mapping-protocol-fields-with-the-binary-scan-command
- https://devcentral.f5.com/codeshare?sid=490
You could use something like this to grab the flowset length and do something based on the lenght you have captured from the packet.
when CLIENT_DATA {
skip packet header and flowset id
set field_offset 22
get flowset length
binary scan [UDP::payload] @${field_offset}S flowset_length
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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