Forum Discussion
Mohamed_Lrhazi
Mar 28, 2014Altocumulus
You probably dont need to know the selfip, it is the same subnet as the server right?
when LB_SELECTED {
set ClientIP [clientside {IP::remote_addr}]
set VirtualIP [clientside {IP::local_addr}]
set NodeIP [LB::server addr]
if { [IP::addr $ClientIP/24 equals $NodeIP/24] } {
if { $static::debug != 0 } {
log local0. "SNAT Client: $ClientIP to VIP: $VirtualIP targeting Node: $NodeIP"
}
snat $VirtualIP
}
}