Forum Discussion
Ethan_Erchinger
Nimbostratus
Mar 09, 2006Snat pool choice based on destination URL
Hi,
We have a group of servers that make outbound HTTP requests to a partner. We'd like requests going to a specific uri, call it partner.com/a to come from a specific pool of addresses. R...
JRahm
Admin
Mar 09, 2006I would make a specific vip for your partner site, even if it is only one server. You could try something like this:
rule snat_selection {
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/a" } {
use snatpool snat_a
use pool partner_pool
} elseif { [HTTP::uri] starts_with "/b" } {
use snatpool snat_b
use pool partner_pool
} else { }
}
}
snatpool snat_a {
member x.1.1.1
member x.1.1.16
}
snatpool snat_b {
member x.1.1.17
member x.1.1.32
}
snatpool snat_default {
member x.1.1.33
member x.1.1.254
}
pool partner_pool {
member :80
monitor all tcp or whatever is appropriate
}
virtual partner_virtual {
destination 10.1.0.100 assuming this is defined on your ltm
snatpool default_snatpool if necessary
ip protocol tcp
profile http
rule snat_selection
}Note that this is not tested. HTH
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
