Forum Discussion

Hartono_Tjung_3's avatar
Hartono_Tjung_3
Icon for Nimbostratus rankNimbostratus
Oct 18, 2011

Need about iRules to redirect certain outbound gateway

Dear All,

 

 

 

 

I need help regarding iRules. I have a wildcard Virtual Server for outgoing internet traffic called VS_Outbound, below is the detail

 

 

VS_outbound{

 

 

pools internet_gateway

 

 

}

 

 

pool internet_gateway {

 

 

members

 

ISPA_IP_address

 

ISPB_IP_Address

 

}

 

 

 

What I need is, when there are requests from users to http://update.microsoft.com then the F5 will pass the traffic into ISP_B member else , the traffic will go to ISP_A

 

 

 

 

Thanks

 

 

 

Hartono

 

 

 

 

 

 

 

1 Reply

  • can you try this?

    [root@iris:Active] config  b rule myrule list
    rule myrule {
       when HTTP_REQUEST {
            if {[string tolower [HTTP::host]] equals "update.microsoft.com"} {
                    pool internet_gateway member 1.1.1.1
            } else {
                    pool internet_gateway member 2.2.2.2
            }
    }
    }