Forum Discussion
Jay_Henriques_1
Nimbostratus
Feb 11, 2010Multiple redirect/respond invocations not allowed
I've been seeing these errors in our ltm log:
Rule LockdownExternalAccessToDIsney HTTP_REQUEST: blocked request for /en/tools/players/edit_player.php?player_id=78745123 by 112.205.165.29
Thu Feb 11 04:15:28 PST 2010 tmm tmm[1904] 01220001 TCL error: irule-DOSC_HTTP_REDIRECT_HTTPS HTTP_REQUEST - Operation not supported. Multiple redirect/respond invocations not allowed line 562 invoked from within HTTP::respond 301 Location https://[HTTP::host][HTTP::uri]
These 2 rules are applied to the same Virtual Server:
rule LockdownExternalAccessToDIsney {
when HTTP_REQUEST {
if { (not [ matchclass [ IP::client_addr] equals ::Disney_Public_Source_Addresses] ) } {
log "blocked request for [HTTP::uri] by [IP::client_addr]"
HTTP::respond 403
return
}
}
}
rule irule-DOSC_HTTP_REDIRECT_HTTPS {
when HTTP_REQUEST {
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]"
}
}
My question is what is the preferred method for exiting out of an iRule and stop evaluating the rest of the iRules applied to the virtual server? I've seen reference to "return 0" in a different post but haven't been able to find anything definitive.
Thanks,
Jay
4 Replies
No RepliesBe the first to reply
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