Forum Discussion
Linda_01_162621
Nimbostratus
Jan 23, 2015How to check if an iRule is active
PLEASE HELP.
I am trying to apply an iRule to a virtual server. So I am using the below code for testing if the iRule is active. All the below code suppose to do is to redirect all traffic to google...
StephanManthey
Nacreous
Jan 24, 2015Hi Linda01,
in case you want to redirect a client with your virtual server it has to be of type "Standard" and needs an HTTP-profile assigned. The type "Performance-HTTP" is very limited in capabilities (supports just cookie insert and XFF insert, afaik). If you change the configuration of your virtual server it will be necessary to close all connections from the client you are testing with because existing connections are not affected by the change. In case of using i.e. Firefox it really means to close all firefox instances! You can also temporarily add a log statement to your iRule to check the event is triggered:when HTTP_REQUEST {
log local0. "New http request from client <[IP::client_addr]> received <[HTTP::method] [HTTP::uri] [HTTP::version]>, will be redirected"
HTTP::redirect "http:://www.google.com"
}
From bash please run the following to track the new log events for /var/log/ltm facility:
tail -f /var/log/ltm
Thanks, Stephan
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