Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

HTTPS redirect to different pools

Hi Guys,

I'm trying to use an iRule to redirect traffic based on the URL. Let me give you the example:

The Virtual server is on port 443, but the pools are on 8443 and 9443.

https://10.10.10.10/blue goto pool_b

https://10/10.10.10/red goto pool_r

Image Text

The default pool in the virtual server is pool_b_8443. Traffic gets to there no problem.

However, I can not seem to get this iRule to work.

I'm not an expert with BIG IP LTM so please go easy on me :-)

Thank you

Euan

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Did you configure Client profile for SSL offloading in Virtual server ? SSL decryption has to be configured for HTTP traffic inspection and therefore irules manipulations.

0
Comments on this Answer
Comment made 1 week ago by phipse 63

I have the following configured

Image Text

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Your switch statement doesn't look right. Try this:

when HTTP_REQUEST {
    switch -glob [HTTP::uri] {
        "/blue*" {
            pool pool_b_8443
            persist ssl
        }
        "/red*" {
            pool pool_r_9443
            persist ssl
        }
    }
}
0
Comments on this Answer
Comment made 1 week ago by phipse 63

Thank you Niels that seems to have worked!

0