Forum Discussion
tyler_94987
Mar 29, 2009Nimbostratus
cmbhatt thanks for your reply.
I am kinda looking for a solution like this:
when LB_SELECTED {
if { ([LB::server addr] eq "1.1.1.254") and ([matchclass [IP::client_addr] equals $::ip_server]) } {
snat 1.1.1.X
}
else if { ([LB::server addr] eq "2.2.2.254") and ([matchclass [IP::client_addr] equals $::ip_server]) } {
snat 2.2.2.X
}
}
I don't know how to map 1.1.1.X and 2.2.2.X to server's Virtual Server ip address. Is there any variable to auto replace 1.1.1.X and 2.2.2.X to ip_server's Virtual Server ip address?