Forum Discussion
Persistence and NAT
In that case internal F5 will see all the traffic as coming from the same IP so you won't be able to persist based on source IP. One alternative is to inject X-Forwarded-For header from the upstream device and retrieve it in the LB and persist based on it using an irule. You can find an example here: https://devcentral.f5.com/s/question/0D51T00006i7grt/enable-source-ip-persistence-based-on-x-forwarded-ip-info
Thanks again Amine; does that work even when my traffic is not HTTP (its port 4500 & 500 UDP VPN traffic)
- Amine_KadimiJan 18, 2021MVP
Sorry, I didn't notice that this is for vpn traffic. In this case xff header is not applicable as it only works with http(s) traffic
- Enfield303Jan 18, 2021Nimbostratus
If we disabled SNAT on all the devices above the internal F5s, do you hink that would work?
- Amine_KadimiJan 18, 2021MVP
Yes it should. And if you have two VS one for 500 and a second for 4500 you'll likely need to share persistence between them using the Match Across Services of the persistence profile.
Recent Discussions
Related Content
* 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