Forum Discussion
wscottb13_17908
Apr 24, 2015Nimbostratus
iRules for SNAT translations with ISP load balancing
I'm looking for a way to create iRules that would have SNAT translations for specific hosts that needed to be sourced with a specific IP address and autosnat all others. For example, Node A must be ...
wscottb13_17908
Apr 24, 2015Nimbostratus
As a follow up, would the following work?
class HostA {
host 192.168.1.10
}
class HostB {
host 192.168.1.11
}
class HostC {
host 192.168.1.12
}
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals HostA]} {
snat 100.0.0.12
use pool ISP_A
}
elseif { [matchclass [IP::client_addr] equals HostB]} {
snat 100.0.0.13
use pool ISP_A
}
elseif { [matchclass [IP::client_addr] equals HostC]} {
snat 200.0.0.11
use pool ISP_B
}
else {snat automap
use pool DefaultGWPool
}
}
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