AJ_6093
Jan 16, 2009Nimbostratus
Modifying the source address in Load balancer (URGENT)
Hi
I want to change the source IP address of the packets inside the load balancer when the request is coming from a particular server segment (192.168.100.0 /24).
example: A packet coming from 192.168.100.10 to virtual server 172.10.10.100. In load balancer when the virtual server will direct the request to any of the member servers it should also change the source IP to 172.10.10.100 so that the return part should be via the load balancer. To avoid the internal path between the source and the server directly and we want the request to be load balanced.
will this work in this scenario:
class Hosts {
network 192.168.100.0/24
}
when SERVER_CONNECTED { {
if { [matchclass [IP::client_addr] equals $::Hosts]} {
snat 172.10.10.100
} else {
forward
}
}
}