Forum Discussion
Kevin_Nail
Nimbostratus
Aug 28, 2009LTM persistence with a SNAT pool
How do I set persistence on a virtual server with a SNAT pool where the IPs are always changing.
The scenario:
I have an LTM in a one-armed setup so all connections must be SNAT'd to ensure that they return. I have a SNAT pool setup with 5 addresses.
I have a virtual server setup that I need persistence to work. My problem is that I can't use source_address persistence because the back-end server will only see the SNAT IPs.
SO what is the best method to get persistence in my setup?
Thanks in advance.
Kevin
- hoolio
Cirrostratus
Hi Kevin, - Kevin_Nail
Nimbostratus
Thanks for the quick reply. - hoolio
Cirrostratus
I don't think there is a way to "persist" the client so the same IP in a SNAT pool is used over multiple TCP connections. Most apps do not check the client IP address though so this shouldn't be an issue. If the app uses NTLM authentication or the web app itself enforces the client IP address does not change over the course of a session, this would be a problem. In that case you might want to use an iRule to select the SNAT IP based on the client IP. If you need to do this, reply here and we can come up with some suggestions. - Kevin_Nail
Nimbostratus
Thanks Aaron, - hoolio
Cirrostratus
Here's an iRule example: https://devcentral.f5.com/wiki/irules.snat_pool_persistence.ashx
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