Forum Discussion
breizho35_11667
Nimbostratus
Jan 07, 2016Persistence based on source tcp/udp port
Hello,
Is is possible to configure persistence based on source tcp/udp port ?
How can I do that ?
Thanks and regards.
Eric
BinaryCanary_19
Jan 07, 2016Historic F5 Account
Yes. The idea of Universal Persistence is so that you can write your own logic, if the system-supplied persistence criteria don't meet your needs.
The example on the solution article for universal persistence is extracting the key from a cookie value. In your case, you will be using source port instead of JSESSIONID cookie.
The idea is generally (pseudocode):
when CLIENT_ACCEPTED:
persist uie [TCP::client_port]
when SERVER_CONNECTED:
persist add uie [TCP::client_port]
Logic is a little simpler since the port is always present. YOu of course need to test this.
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