Forum Discussion
Ijaz_37879
Nimbostratus
Aug 11, 2009Outbound 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
- Patrick_Chang_7Historic F5 Accountpre 9.4.2, you must use $::app_DB_Hosts
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