Forum Discussion
paul_79097
Nimbostratus
Sep 14, 2009Unable to add a rule
hello there,
I am trying to add a rule to go to a specific node in a pool when specific ip address is connected.
when HTTP_REQUEST {
if {[IP::addr [IP::remote_addr] equals 216...
The_Bhattman
Nimbostratus
Sep 14, 2009Hi Scott,
Now expand the irule to include the IF statement
when HTTP_REQUEST {
if { [HTTP::uri] eq "/myinfo" } {
if {[IP::client_addr] eq "219.254.86.x" } {
HTTP::respond 200 Content "
client info
Client IP: [IP::client_addr] again
"
}
}
}
If this fails then this tells me that IF evaluation is not behaving as expected. At that point I would contact F5 support or perhaps perform a reload or failover to see if the condition is more related to the state of the F5.
CB
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