Forum Discussion
sose_86565
Nimbostratus
Jan 19, 2009SNAT descision based on client ip and link availability
I have 2 ISPs that are being load balanced. I also have a list of internal IP's that we do not want to use SNAT's if ISP-A is online. Can someone validate this iRule for me? The Hosts class is the ...
hoolio
Cirrostratus
Jan 20, 2009The logic looks fine. You could use IP::addr to perform the IP address comparison:
when LB_SELECTED {
if {[matchclass [IP::client_addr] equals "$::Hosts"}{
if {[IP::addr [LB::server addr] equals 128.94.240.254]}{
snat none
} else {
snat automap
}
} else {
snat automap
}
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
