Forum Discussion
Joseph_Goyette_
Nimbostratus
Mar 28, 2005matchclass + IP::remote_addr ?
Hi there,
I'm experiencing some odd behaviour when I attempt to develop an iRule that contains both a uri match and remote ip address check. The irule is below.
The odd behaviour appears as a "Document Contains No Data" popup message on my browser or a "page cannot be displayed" message whenever any of the ip address checks is TRUE and I've started my url with /CustomerX/ . The other redirect sections and the /junk/ check work as expected.
when HTTP_REQUEST
{
if {[HTTP::uri] starts_with "/junk/"} {
pool JOE-web003
}
elseif {[HTTP::uri] starts_with "/CustomerX/"} {
if { [matchclass [IP::remote_addr] equals $::block1] } {
pool JOE-web003
}
elseif { [matchclass [IP::remote_addr] equals $::block2] } {
pool JOE-web003
}
elseif { [matchclass [IP::remote_addr] equals $::block3] } {
pool JOE-web003
}
else {
HTTP::redirect "http://www.cnn.com/"
}
}
else {
HTTP::redirect "http://www.goyette.net/"
}
}
Has anyone here seen this type of behaviour before ? Is my rule constructed correctly ?
Thank you for any help !
Joe
- unRuleY_95363Historic F5 AccountJoe,
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