Jump to content
Welcome to our new Citrix community!

Convert F5 Irule to Citrix Policy


yusuf rifqi

Recommended Posts

Hi , I have this F5 irule to be converted a Citrix Netscaler policy (Rewrite/Responder) :

 

when HTTP_REQUEST priority 600 {
  switch [string tolower [HTTP::host]] {

          "example.com" {

              HTTP::redirect "https://www.example.com [HTTP::uri]"

         }

     }

}

 

can anyone help? thank you

Link to comment
Share on other sites

See https://support.citrix.com/article/CTX221243

 

If you're trying to redirect from "example.com" to "www.example.com", then the policy expression should be:

 

http.req.hostname.set_text_mode(ignorecase).eq("example.com") so it's an exact equals match instead of a contains match.

 

Are you trying to redirect from 80 to 443? If so, then you need a port 80 LB vServer to bind the Responder to. 

Link to comment
Share on other sites

16 minutes ago, Carl Stalhood1709151912 said:

See https://support.citrix.com/article/CTX221243

 

If you're trying to redirect from "example.com" to "www.example.com", then the policy expression should be:

 

http.req.hostname.set_text_mode(ignorecase).eq("example.com") so it's an exact equals match instead of a contains match.

 

Are you trying to redirect from 80 to 443? If so, then you need a port 80 LB vServer to bind the Responder to. 

I Got it. thank you very much.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...