Jump to content
Welcome to our new Citrix community!

iRule to Citrix Policy ADC


Hassan Ouserhir

Recommended Posts

Hi,

We planned to move from F5 to Citrix ADC and we need to convert followed iRules. Are there any tools to do this concersion? Else can you please help to concert it. 

 

ltm rule /Common/Comarch_Persist_IRule {

    when CLIENT_ACCEPTED {

              set add_persist 1

}

 

when HTTP_REQUEST {

 

              if { [HTTP::cookie exists "JSESSIONID" ] } {

                            persist uie [HTTP::cookie "JSESSIONID"] 1200 }

 

}

 

when HTTP_RESPONSE {

              if { [HTTP::cookie exists "JSESSIONID" ] and $add_persist } {

              persist add uie [HTTP::cookie "JSESSIONID"] 1200

              set add_persist 0 }

}

}

ltm rule /Common/Comarch_Persist_IRule_X-Forwarded {

    when HTTP_REQUEST {

    set clientip ""

    if { [HTTP::header exists "X-Forwarded-For"] } {

        set clientip [HTTP::header "X-Forwarded-For"]

    } else {

        set clientip [IP::client_addr]

    }

    persist uie $clientip

}

 

when HTTP_RESPONSE {

    persist add uie $clientip

}

}

ltm rule /Common/Redirect_Comarch {

    when HTTP_REQUEST {

             if { ([HTTP::uri] == "/") } {

                 HTTP::uri /hades/do/Login

             }

         }

}

 

 

regards

Hassan

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...