Jace_45978
Dec 06, 2011Nimbostratus
source_address persistence question
looking to add persistence to a VIP for all incoming source addresses with the exception if address = 10.243.0.0/16 or 10.96.0.0/16 I don't want persistence for these two network so they would be round-robin
i was thinking of something like this but would like confirmation prior to implementing the irule.
virtual xyz {
snat automap
pool foo
destination 1.1.1.1:http
ip protocol tcp
persist source_addr
profile http tcp
rules rule_persist_exception
}
rule rule_persist_exception {
when CLIENT_ACCEPTED {
if {([IP::addr [IP::remote_addr] equals 10.243.0.0/16]) or
([IP::addr [IP::remote_addr] equals 10.96.0.0/16])} {
persist none
}
}
}
thanks in advance this is by far the best forum on the internet!