Forum Discussion

Jace_45978's avatar
Jace_45978
Icon for Nimbostratus rankNimbostratus
Jun 18, 2011

source_address persistance question

having a VIP with source_addr persistence

 

what we are wanting to do:

 

if address 10.0.0.0/8 hits the VIP then we want source_addr persistence, but any other source address falls to default or round robin on the pool members.

 

do we need iRule for this or is there some way to configure it with profiles?

 

 

3 Replies

  • can u try this?

     

     

    [root@tulip:Active] config b virtual bar list

     

    virtual bar {

     

    snat automap

     

    pool foo

     

    destination 172.28.17.66:http

     

    ip protocol tcp

     

    rules myrule

     

    }

     

    [root@tulip:Active] config b rule myrule list

     

    rule myrule {

     

    when CLIENT_ACCEPTED {

     

    if {[IP::addr [IP::remote_addr] equals 10.0.0.0/8]} {

     

    persist source_addr

     

    }

     

    }

     

    }

     

     

    persist wiki

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/persist.html
  • thanks for your response will give it a try, and thanks for the wiki link.
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    What nitass is saying is correct. Basically if you set up your virtual to have no persistence enabled, then put an iRule in place to selectively enable persistence for whatever inbound client IPs you want, you can achieve selective persistence. It's pretty straight forward, but if you run into any problems or have any questions, ask here and I'm sure someone will jump on them for you.

     

     

    Colin