Forum Discussion
vbhugra
Nov 10, 2023Nimbostratus
SNAT and Next hop based on Node address
I have a requirement wherein I have 2-nodes in a pool; of which 1 node is directly connected to F5 and the other one is behind a layer-3 router. I want to make an iRule if the directly connected nod...
vbhugra
Nov 13, 2023Nimbostratus
Thanks everyone I figured the solution
when CLIENT_ACCEPTED priority 500 {
set DEFAULT_POOL [LB::server pool]
}
when LB_FAILED priority 500 {
if { [active_members [LB::server pool]] == 0} {
LB::reselect snatpool SNAT_REP
LB::reselect pool DBS5G_REP_REMOTE
LB::reselect nexthop /DBS/DBS_CLIENT_174 10.219.30.65
} else {
pool DBS5G_REP_LOCAL
}
}
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