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...
Corey_Smith_174
Nimbostratus
Feb 15, 2007Using this rule set:
when CLIENT_ACCEPTED {
set dport [TCP::local_port]
if { [lsearch $dport [list 12005]] != -1 } {
TCP::collect 1
return
}
}
when CLIENT_DATA {
if { [TCP::payload] contains "myData" } {
set new_port 12007
}
TCP::release
}
when LB_SELECTED {
pool member [LB::server addr] $new_port
}
I get the error: line 18: [can't find pool] [pool member [LB::server addr] $new_port]
I don't think there is a way to call the command "pool" without a pool name as the 2nd argument.
BTW: Tested on version BIG-IP 9.1.2 Build 40.6
-Corey Smith
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