Forum Discussion
mmory09_63087
Mar 05, 2014Nimbostratus
Will this iRule work? Two iRules combined..
when RULE_INIT {
set static::snat_exch2007(0) 10.73.17.248
}
when CLIENT_ACCEPTED {
snat $static::snat_exch2007([expr {[crc32 [IP::client_addr]] % [array size static::snat_exch2007]}]) }
when LB_SELECTED {
if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {
snatpool snat_exch2007
}
}