Forum Discussion
Does 10.234.133.222 $new_port actually exist in the pool?
I ask this because I think that LB:: commands typically are going to apply to the pool configured on the virtual server, or previously choosen with the "pool" command.
Yours is a truly odd requirement, but I think that the way to accomplish what you wish to accomplish is to make the selection earlier than LB_SELECTED (and not use LB::reselect), and then use the "node" command directly.
So for example, your irule look like:
`when CLIENT_ACCEPTED {
get the relevant port number
Call the node command to point to the IP address and server
}`
Possibly also since you seem to need the IP address of the server that the LTM will normally load balance to, instead of calling LB::reselect in your current irule, call LB::detach instead, and then call "node" to send the traffic to your desired server and IP address.
https://devcentral.f5.com/articles/irules-101-05-selecting-pools-pool-members-and-nodes