Forum Discussion
Faizan
Nimbostratus
Oct 06, 2020Source port based load balancing using the persistence least connection
We have 1400 client with define source port from 8000 to 10000 and destination is 2 server for example (x.x.x.x and y.y.y.y) We need irules for 8000 to 8500 source port load balance to x.x.x.x serv...
RadekR
Altocumulus
Oct 08, 2020You can't use starts_with and ends_with that way.
starts_with and ends_with are string comparison operators.
Your code will check id string returned by [TCP:client_port] begins with 8000, it will be true only for port 8000.
You may for example use matches_regex and regular expresion:
matches_regex "8[01234][0-9][0-9]" to mach all ports from 8000 to 8499
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