Forum Discussion
Gordon_Wong_347
Nimbostratus
Jul 19, 2006Newbie to irules
Gents,
I am a total newbie to irules and my boss has asked me to convert our production bigip 4.5 irules to our lab bigip 9.2 irules...I searched this forum and saw a thread that no conversion tool exists. So if you can point me in the right direction with the rule below...I will attempt to convert the other rules myself.
Here is one of the rule I need to convert,
if (client_addr == 1.2.3.4 netmask 255.255.255.255) {
use pool CMS_GOOGLE_HTTP
}
else if (http_cookie("author") == "true") {
use pool CMS_AUTHOR_HTTP
}
else {
use pool CMS_HTTP
}
Note the client addr is not what we are using but set to 1.2.3.4 for security reasons.
Thanks,
Gord.
- hoolio
Cirrostratus
Hi Gord,when HTTP_REQUEST { if { [IP::addr [IP::remote_addr] equals 1.2.3.4] }{ pool CMS_GOOGLE_HTTP } elseif { [HTTP::cookie exists "author"] && [HTTP::cookie "author"] == "true"} { pool CMS_AUTHOR_HTTP } else { pool CMS_HTTP } }
class my_hosts_networks_class { network 10.0.0.0 mask 255.0.0.0 host 192.168.0.100 }
if { [matchclass [IP::remote_addr] equals $::my_hosts_networks_class] } { ...
- Gordon_Wong_347
Nimbostratus
Hi Aaron,
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