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,

Is it not working? or are you just shocked it’s only one line?

It 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.

This is working now… Thank you for the reply.