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? Or have examples of iRules based on UDP traffic?
Thanks.
I think you need to do something with
andUDP::payload
. For more info on these topics see:binary scan
- 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 }
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