Forum Discussion
Luis_Araujo_560
Dec 18, 2017Nimbostratus
Snat Pool Member Persist
Hello @ALL,
I´m facing issue with a snat persist. I need to persist a outbound connection in same snat pool member.
How is my scenario:
Clients -> Web Proxy -> F5 LTM -> ISP "X.X.X.X/...
Dec 19, 2017
Fun exercise! Not sure if I nailed the server side event here since it's a forwarding server. You might want to play around a bit with that part, but other than that this could work.
when CLIENT_ACCEPTED {
set newrecord 0
if { [table lookup "ippersist[IP::remote_addr]"] == "" } {
snatpool myPool
set cip [IP::remote_addr]
set newrecord 1
} else {
snatpool myPool member [table lookup "ippersist[IP::remote_addr]"]
}
}
when SERVER_CONNECTED {
if { $newrecord == 1 }{
table set "ippersist$cip" [IP::local_addr] indef indef
}
}
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