Forum Discussion
chris_connell_1
Nimbostratus
Jul 24, 2009Persist on source IP and port
In a fast L4 server, can you persist on source IP AND tcp source port?
I cant see any information if you can do this.
Thanks
- hoolio
Cirrostratus
I think you could use persist uie and [IP::client_addr]:[TCP::client_port]. If you get a parsing error for TCP:: commands with a FastL4 VS, you can use eval:when CLIENT_ACCEPTED { Set persistence based on client IP:port for 3600 seconds set tcp_port_cmd "TCP::client_port" persist uie "[IP::client_addr]:[eval $tcp_port_cmd]" 3600 }
when CLIENT_ACCEPTED { log local0. "IP:port: [IP::client_addr]:[TCP::client_port]" log local0. "lookup: [persist lookup uie [IP::client_addr]:[TCP::client_port]]" log local0. "[persist uie [IP::client_addr]:[TCP::client_port] 3600]" } when SERVER_CONNECTED { log local0. "lookup [persist lookup uie [IP::client_addr]:[TCP::client_port]]" }
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