Forum Discussion
abachman_72712
Nimbostratus
Aug 03, 2009Filter by incoming IP address
I need to write an iRule for a pool that will direct traffic to the correct member by incoming IP address. The pool members are setup to push traffic to member on service port 9081.
(e.g). Traffic destined for IP address 10.10.10.20 will go to .20, but if .20 is down traffic will go to pool member 10.10.10.21 and vice versa. Traffic with IP header 10.10.10.21 will go to member .21, but if not available will go to .20.
I am sure this is a simple iRule, but my synax is terrible. Any help would be appreciated
pmanet
- hoolio
Cirrostratus
Hi, - hoolio
Cirrostratus
Nevermind... I thought you wanted to select the pool based on the source IP address. Can you elaborate on what you're trying to implement? - abachman_72712
Nimbostratus
Thanks. Sorry for any confusion. - hoolio
Cirrostratus
I don't think that would work as is. I don't think both servers could be configured for 10.10.10.20 and 10.10.10.21. You would get IP conflicts if both hosts answered ARPs for both addresses. - abachman_72712
Nimbostratus
I am not sure I follow. Do you think if the traffic intended for .20 cannot get there, then it would produce an IP conflict b/c it would then try to go to .21 but doesn't match that address. - hoolio
Cirrostratus
What protocol/type of application is this for? Have you done something like this before? - abachman_72712
Nimbostratus
Never done this. - hoolio
Cirrostratus
What protocol/type of application is this for? Is it TCP, HTTP, something custom built on UDP, etc? - abachman_72712
Nimbostratus
This will be for Soap calls over HTTP. The traffic is intended for IBM Websphere application (Java based). - abachman_72712
Nimbostratus
What if I create 2 VS"s? 10.10.10.20 generates data to LTM VS 1, with .20 priority 1 and .21 as priority 2. 10.10.10.21 generates data to LTM VS 2, and .21 is priority 1 with .20 as priority 2. Create separate pools for both VS.
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