Forum Discussion
mbrandon32
Cirrus
Jan 16, 2022SNAT Persistence
We have two virtual servers that will need to serve the same SNAT IP from a SNAT pool for the same client IP address. Is there a way to accomplish this?
DevBabu
Cirrus
Jan 28, 2022I think we can create a datagroup that maps client IP to snat IP and apply an iRule to snat.
1. Create SNAT datagroup
ltm data-group internal client_snat_map {
records {
192.168.10.34 {
data 10.1.0.7
}
192.168.10.35 {
data 10.1.0.8
}
}
type string
}
2. Create iRule and apply to the virtual server
when LB_SELECTED {
if { [class match [IP::client_addr] equals client_snat_map] } {
snat [class match -value [IP::client_addr] equals client_snat_map]
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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