Forum Discussion
Irule F5 LMT
Hi Everyone
I need build an Irule on F5 LTM, this appliance has a Virtual Service with load balance to proxy server. I need when the user data arrive on VS LTM, I can see the data and select on wich Pool distribuit this traffic. e.g. When a User go to google.com the F5 intercepts this traffic anddeliver to pool member 1. The other traffic go to pool memeber 2.
The F5 in this moment has a VS Performan L4, and I do capture the traffic, on the data contains I can see the requuest.
5 Replies
so create one :) there is lots of information on dev central to make this happen. learning to do it yourself will be much more useful then getting the irule here as an answer.
info on pool selection: https://devcentral.f5.com/articles/irules-101-05-selecting-pools-pool-members-and-nodes
more of an example: https://devcentral.f5.com/questions/irule-to-select-specific-pool-member
though that works on a URI, but still the idea should be clear, for example on doing it on host see this:
- james_lee_31100
Nimbostratus
when HTTP_REQUEST { if { ([string tolower [HTTP::payload]] contains "google.com") } { set pool pool1 { else { set pool pool2 } }
- Camilo_Mongui_B
Nimbostratus
James
Thanks For your Help
This Irule can take the traffic without Virtual Server in L7, Because currently is in L4.
Thanks
- DevBabu
Cirrus
TCP::collect would help https://devcentral.f5.com/wiki/iRules.TCP__collect.ashx
Just you need to find out how much length of TCP you need to collect to find google.com. I would not collect all TCP data.
when CLIENT_ACCEPTED { TCP::collect 15 } when CLIENT_DATA { if { [TCP::payload] contains "XYZ" } { pool xyz_servers } else { pool web_servers } TCP::release } - Camilo_Mongui_1
Nimbostratus
Hi Everyone
Today I did deployment this Irule. Until now, all traffic is redirect nice. I will wait attend to verify this behaviour
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