Forum Discussion
Michael_Mangret
Nimbostratus
Apr 17, 2007Is it possible in 4.x...
to search the incomming request for a paticular string, then either discard or loadbalance to a paticular pool. I am unable to find any reference material on rule syntax for 4.5.x. If anyone knows w...
Apr 19, 2007
The documentation for v4.x iRules are in the product user manuals available on ask.f5.com. These code samples are from the following link
https://tech.f5.com/home/bigip/manuals/bigip4_6_2/bigip4_6_2ref/BIGip_rules.html1208927
Click here
rule my_rule {
if (tcp_content contains "XYZ") {
use pool xyz_servers
}
else if (substr(tcp_content(100), 50, 3)) == "ABC" {
use pool abc_servers
}
else {
use pool web_servers
}
}
rule my_rule {
if (http_content contains "ABC") {
use pool http_pool
}
else if (http_content_collected < 20) {
accumulate
}
else {
discard
}
}
There are a couple of other examples in there but this should get you started.
-Joe
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
