Forum Discussion
Kai_Wilke
Jan 25, 2016MVP
Hi Ken,
Its not a shame to have a non-SNAT scenario. Well, its far better (but more complex) than auto-natting everything... 😉
A customer of mine is using the iRule below to intelligently [snat] traffic depending on the source and destination of the connections...
when LB_SELECTED {
if { [IP::addr [getfield [IP::client_addr] "%" "1"]/16 equals [getfield [LB::server addr] "%" "1"]/16] } then {
snatpool Live_Global_SNAT_Pool
}
}
Note: Responding in a new answer, to enable code high lighting....
Cheers, Kai