Forum Discussion
Kai_Wilke
Feb 24, 2016MVP
Hi Vinitshah,
you have to keep in mind that
[IP::local_addr]
is the IP address of the virtual server. To have a SNAT exemption based on the pool members IP address, you have to use the [LB::server addr]
command. But this command is only valid for after a pool member was selected (e.g. LB_SELECTED
and later events)
when LB_SELECTED {
if { [class match [LB::server addr] equals no-nat-destination-based] } then {
snat none
log local0. "Client/Source Address -> IP address [IP::client_addr]"
log local0. "Server/Destination Address -> IP address [LB::server addr]"
}
}
Cheers, Kai