Forum Discussion
Moti_Akrish_637
Nimbostratus
Dec 23, 2014create iRule using Excel sheet
Hi,
I need to create an iRule which searches for body string "register"
and comparing it with two excel sheet colums:
location equals IP range
any idea how can I create such iRule?
Tha...
Moti_Akrish_637
Nimbostratus
Dec 30, 2014I created this: when HTTP_REQUEST { if {([HTTP::payload] contains "register")} { if {([HTTP::payload] contains "location")} { if {([IP::client_addr] contains "1.1.1.")} { log local0. "Using uri-match pool - [HTTP::uri]" pool $defaultpool } else { drop log local0. "No uri matched using no-uri-match pool - [HTTP::uri]" if { !([HTTP::uri] contains "register") }{ pool $defaultpool } } } } }
does it looks like it'll work? I can only test it next Monday.
Thanks!
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