Forum Discussion
Brian_Herr_1028
Nimbostratus
Feb 13, 2007Changing destination pool TCP port via iRules
Nickel tour: In order to change the destination port on a flow we have to define the pool, member, and port as the destination in the iRule. We need to be able to define the pool and port and le...
dannyk81_365606
Nimbostratus
Aug 07, 2018It's been quite a while since this was answered, but I had a similar requirement recently and came across this.
Using the
LB::reselect seemed like a good choice for us, however the above suggested solution doesn't work since the destination port cannot be specified when calling LB::reselect pool
But it can be specified when calling
LB::reselect node, like so:
when LB_SELECTED {
if { $new_dport != 0 } {
LB::reselect node [LB::server addr] $new_dport
}
}
The value of
new_dport is set in CLIENT_ACCEPTED block (and defaults to 0, i.e. should not be changed).
Just wanted to share, in case someone finds it useful.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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