Forum Discussion

Martin182's avatar
Martin182
Icon for Nimbostratus rankNimbostratus
Sep 16, 2024

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