Forum Discussion
Kai_Wilke
Feb 03, 2017MVP
Hi jwhitene,
I'm using the iRule below to selectively enable SNAT for connection where the client and the pool member is hosted in the same subnet (via /CIDR mask). Its a much more universal approach which doesn't require any Data-Groups and
[active_node]
queries...
when LB_SELECTED {
if { [IP::addr [getfield [IP::client_addr] "%" "1"]/24 equals [getfield [LB::server addr] "%" "1"]/24] } then {
snat automap
}
}
Cheers, Kai