Forum Discussion
John_Alam_45640
Oct 16, 2011Historic F5 Account
gto481:
Since the virtual server has 2222 as the destination port, [TCP::local_port] is always going to be 2222. This means that the irule as you show it is not doing anything more than assigning the SNAT pool in the virtual properties.
Even if we fixed the irule, you would only get the default SNAT.
So, remove the port from the virtual , replace it with 0, and try again.
remove the whole "else" structure, it is not needed.
Be sure to tail the log when you test. This will produce a line in the log.
if you are still having problems, send the tail of the log together with the virtual configuration.
HTH.