Forum Discussion
Stanislas_Piro2
Dec 12, 2016Cumulonimbus
Hi,
you can assign this irule to the wide IP.
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals 10.0.0.0/8] \
or [IP::addr [IP::remote_addr] equals 192.168.0.0/16] \
or [IP::addr [IP::remote_addr] equals 172.16.0.0/12] } {
pool [string map {"_nat" "_int"} [lindex [pools -list] 0]]
}
}
With this irule, pool name must be :
- pool1_nat with VS with external IPs
- pool1_int with VS with internal IPs
The pool pool1_nat must be assigned to the VS.
VS with external IPs must be created manually with following parameters:
- IP address : External IP address
- NAT address : LTM virtual server IP address (used to monitor service)