Forum Discussion
Redirection by uri + conditional NAT
Hello,
I have a VS balancing on an OpenShift cluster.
Recently we have the need to test some redirects by uri on a network segment outside of OpenShift, for this we thought of using a simple redirection iRule:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
“/uri/xxxx” { pool XXXX}
}
}
The problem is that the default VS does not apply any NAT to incoming traffic.
Would there be any way to apply sNAT only to incoming traffic that meets the iRule condition to be redirected, obviously without affecting OpenShift.
Thanks, any help is welcome.
Best regards
- zamroni777Nacreous
you can use snat command in irules.
there are some example in the doc below
Recent Discussions
Related Content
* 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