Forum Discussion
RonaldV_224653
Nimbostratus
Dec 20, 2018iRule point to a different VS when HTTP_Request matches
Hi All,
At this moment we have an rule as following:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/corporate/" ) && ( [active_members [LB::server pool]] > 0)} {
persist none
...
Rico
Cirrus
Dec 20, 2018Ronald,
If your only issue is that you need SNAT enabled on certain URI paths, you could use the 'snat' command as shown below:
if { ([HTTP::uri] starts_with "/corporate/" ) && ( [active_members [LB::server pool]] > 0)} {
persist none
pool POOL.corporate.nl.prod
snat automap
}
The 'snat' command can utilize SNAT automap, SNAT pools, and can also SNAT to any address specified in the iRule.
Hope this helps.
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
