Forum Discussion
Brad_Parker_139
Sep 23, 2015Nacreous
Give this a try,
when CLIENT_ACCEPTED {
if {[TCP::local_port clientside] << 50000}{
pool pool1
}
else {
pool pool2
}
}
- Brad_Parker_139Sep 23, 2015Nacreousupdated to use TCP::local_port clientside as it is more appropriate.
- Misty_SpillersSep 23, 2015NimbostratusThank you for the quick response. If I wanted to look at source port instead, would I just change clientside to serverside? Sorry, the documentation I was given is confusing, want to make sure I could it either way. Thanks again!
- Brad_Parker_139Sep 23, 2015NacreousTCP::client_port would you give the clients source port. If you changed it to serverside, what you would have would be the source port of the LTM's connection to the backend server not the source port of the client's connection to the LTM.
- Brad_Parker_139Sep 23, 2015Nacreoushttps://clouddocs.f5.com/api/irules/TCP__local_port.html https://clouddocs.f5.com/api/irules/TCP__client_port.html https://clouddocs.f5.com/api/irules/TCP__server_port.html