Forum Discussion
help with iRule
Hi folks, I'm trying to create an iRule that should handle a couple of things but I'm not sure how to manage this so I hope you can help me out.
- The iRule should block all traffic that has a payload over 10mb
- Traffic from a specific IP should go to a specific pool/member
- If the source address is "test.test.test" AND content has caller/test it should go to a specific pool/member
- all other traffic should go to a specific pool/member
I've been creating simple iRules for a while and I think that this is quite simple as well but I can't figure it out
3 Replies
- Mariusz_B
Nimbostratus
Hello,
I can help you with number 2, as I have recently implemented something similar:
when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 1.1.1.1] } { pool abc.example.com_Pool } }You can also use standard slash format for subnets:
[IP::addr [IP::client_addr] equals 1.1.1.0/24]Regards
Mariusz
- Kevin_Stewart
Employee
AND content has caller/test
Do you mean request payload or request URI?
- Kevin_Stewart
Employee
I can somewhat assume that the "content" is actual HTTP payload, perhaps via POST request? But the source is going to be an IP address, not "test.com", unless you intend to also do a reverse DNS lookup of the client source.
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