For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Deepak_Habbu_23's avatar
Deepak_Habbu_23
Icon for Nimbostratus rankNimbostratus
Oct 27, 2015

Adding conditions to the currently running irule

Hello Team, we want to add two more lines in currently running I rule. please help me to do that and let me know how and where we are going to add that

 

Currently running I rule:

 

when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/internal/connexion/service/v1" { HTTP::uri "/fft/proxy/connexion" pool flex-monolith } "/internal/manager/service/v1" { HTTP::uri "/fft/proxy/manager" pool flex-monolith } "/medq_esb/proxy_services/mmodal_voice_proxy_service*" { HTTP::uri "/fft/proxy/voice" pool flex-monolith } "/fft/proxy/voice" { pool flex-monolith } "/fft/rest" { pool flex-monolith } default { pool fft-osb } } }

 

adding contents are:

 

"/medq_esb/proxy_services/internal/medq_rule_engine_internal_proxy_service" { HTTP::uri "/rule-engine/services" pool } "/rule-engine/services" { pool }

 

1 Reply

  • You can just add them to the switch before

    default
    . Don't forget to specify the right pool names though.

    when HTTP_REQUEST { 
        switch -glob [string tolower [HTTP::uri]] { 
            "/internal/connexion/service/v1" { 
                HTTP::uri "/fft/proxy/connexion" 
                pool flex-monolith 
            } 
            "/internal/manager/service/v1" { 
                HTTP::uri "/fft/proxy/manager" 
                pool flex-monolith 
            } 
            "/medq_esb/proxy_services/mmodal_voice_proxy_service*" { 
                HTTP::uri "/fft/proxy/voice" 
                pool flex-monolith 
            } 
            "/fft/proxy/voice" { 
                pool flex-monolith 
            } 
            "/fft/rest" { 
                pool flex-monolith 
            } 
            "/medq_esb/proxy_services/internal/medq_rule_engine_internal_proxy_service" { 
                HTTP::uri "/rule-engine/services" 
                pool POOL_NAME
            } 
            "/rule-engine/services" { 
                pool POOL_NAME
            }
            default { 
                pool fft-osb 
            } 
        } 
    }