Outbound SNAT

Hi All,

I am wondering if somebody can verify if the following iRule:

There are two hosts:

host 172.22.128.169

host 172.22.128.172

which need to be SNATed when go out to Internet. SNAT address is 160.33.129.50.

Can somebody verify the following iRule:

iRule:

when CLIENT_ACCEPTED {

check if client_addr = any in the class

if { [matchclass [IP::client_addr] equals app_DB_Hosts]} {

snat using this source address

snat 160.33.129.50

}

}

++++++++++++++

Class:

class app_DB_Hosts {

host 172.22.128.169

host 172.22.128.172

}

Thanks,

Ijaz

pre 9.4.2, you must use $::app_DB_Hosts