Forum Discussion
John_Barrett_10
Nimbostratus
May 17, 2005Looking for a not equals
I am trying to do something as such.
rule MyRule{
when HTTP_REQUEST {
if { [HTTP::cookie exists "mine"] } {
if { [[HTTP::cookie "mine"] starts_with "3" ] and [IP::addr[IP::re...
John_Barrett_10
Nimbostratus
May 17, 2005yes I have a default pool that things will fall through to. I just put up th snippet that I was unsure of.
Another question, if I use the log statement in the iRule one of the other posters said that this will be logged in /var/log/ltm , but I am not seeing the entries. I must be missing something.
when HTTP_REQUEST {
if { [HTTP::cookie exists "mine"] } {
if { [[HTTP::cookie "mine"] starts_with "3" ] and not [IP::addr[IP::remote_addr] equals 10.1.1.0/255.255.255.0] } {
log "The cookie starts with 3"
pool bogus-onenode
} else {
log "Missed the cookie staring with 3"
pool failsafe
}
} else {
log "no cookie"
pool real-onenode
}
}
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
