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.254.x.x]} {
pool poolname member 10.1.0.101
}
}
for some reason it doesn't work :-/
- The_Bhattman
Nimbostratus
I believe you are missing a port - paul_79097
Nimbostratus
tried doing - The_Bhattman
Nimbostratus
What kind of error are you receiving? - paul_79097
Nimbostratus
actually there is no error - The_Bhattman
Nimbostratus
Did you perfom a tcpdump to see if the packet was leaving the F5 towards the server? - paul_79097
Nimbostratus
the thing is, everything is working just fine because I have other rules inside " when HTTP_REQUEST " - The_Bhattman
Nimbostratus
Can you post the entire irule? - paul_79097
Nimbostratus
when CLIENT_ACCEPTED { - The_Bhattman
Nimbostratus
Looking at your logic the condition is if the client IP matches then go to a specific pool member, but then if the clients URI matches go to the other pool members. Is it possible that you meeting 2 conditions that is forcing it to another pool? - paul_79097
Nimbostratus
i was thinking the same thing but first of all, the HTTP_REQUEST won't match in my case and second i added a log in side the
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