Forum Discussion

smiley_dba_1116's avatar
smiley_dba_1116
Icon for Nimbostratus rankNimbostratus
Sep 05, 2012

GTM - iRule traffic - certain users get directed to a VIP

Here is my query. Im trying to figure out an iRule that, when certain external IP's (like 10 particular IP's) come in, they get directed to a particular Virtual Server a pool, while the remain Internet facing public gets pushed to a different VIP in a pool. Any suggestions?

 

 

Rob W>

 

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account
    This would be done with LTM, GTM would not see the end users IP but the LDNS servers IP address. To do this with the LTM would would create a data group with all the IP address and if the client IP is in the list goto pool1 other wise pool2.

     

     

    when HTTP_REQUEST {

     

    if { [class match [IP::client_addr] equals "IP_datagroup" ] } {

     

    use pool1

     

    } else {

     

    use pool2

     

    }

     

    }
  • Thank you Richard!!!! Hmmm, I was hoping that within the Wide IP in the GTM, that I would be able to help direct which VIP address certain clients could go to. Maybe a Topology addition?

     

  • Thank you Richard!!!! Hmmm, I was hoping that within the Wide IP in the GTM, that I would be able to help direct which VIP address certain clients could go to. Maybe a Topology addition?

     

  • Example: Wide IP - gtm-media.example.com

     

    pool: gtm-media.example.com

     

    members: 201.201.201.201 - VIP in New York

     

    201.202.201.202 - VIP in Kansas City

     

     

    Wanted to know if I would need to create an iRule/Whitelist so that certain clients would go to Kansas City, while everyone else on the internet would go to New York. Thanks again!!!