Forum Discussion
GaryZ_31658
Dec 07, 2005Historic F5 Account
FindClass using TCP::local_port
I am attempting to map NODE:PORT based on requesting port. This will allow me to have a single Client facing IP and have many node port combinations on the backend. (not concerned about health monitoring or lb'ing for this implementation)
I created a data group called Node_Group using String
29999 10.190.7.64:22
39999 10.190.7.64:443
28888 10.190.7.63:22
38888 10.190.7.63:443
My Virtual is a public facing IP port 0 (any)
My iRule looks like this:
when CLIENT_ACCEPTED {
node [findclass [TCP::local_port] $::Node_Group " "]
}
It seems like pretty basic stuff. Am I missing something?
Thanks,
- unRuleY_95363Historic F5 AccountIs it not working? or are you just shocked it's only one line?
- GaryZ_31658Historic F5 AccountIt was not working... So the fix was to enable port translation on the VIP. By default, when you create a port 0 VIP, BIG-IP disables port translation.
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