Forum Discussion
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
}
}