Forum Discussion
ispksas_39015
Nimbostratus
Jun 26, 2009iRule for persistence bsed on tcp source port
Hello,
Can anyone guide me on iRule to acheive persistence based on srouce tcp port?
when CLIENT_ACCEPTED {
if {[TCP::client_port] != 0} {
persist uie [TCP::c...
johns
Employee
Jun 26, 2009I did this once for a customer, you can remove the client_addr portion to to get what you want:
when CLIENT_ACCEPTED {
persist uie "[IP::client_addr]:[TCP::remote_port]"
}
To apply these, go to "Local Traffic -> iRule -> Create" and give appropriate name, then copy and paste the rule.
Then go to "Local Traffic -> Profiles -> Persistence (in the main frame, gray bar) -> Create" and name appropriately, and use "Universal" for the Persistence Type.
In the iRule section on the box below, select the iRule and specify the timeout value.
Finally, apply the persistence profile to appropriate virtual server under "Resources".
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