Forum Discussion
markj_58101
Jun 01, 2009Nimbostratus
Irule SNAT based on destination IP address.
Hi there, I am looking to create an Irule SNAT for outbound requests to a specific IP address. So when source = X and destination = Y then use the SNAT. I have seen various other similar methods on here using DNS etc but wanted to find out if anybody had done this before. How would you define the destination address in the Irule.
Many thanks
Mark
- I believe you would need IP::local_addr in this instance for the destination, and I think you have the irule in the right place.
when CLIENT_ACCEPTED { set failed 0 if {[matchclass [IP::client_addr] equals $::webserver_datagroup] \ and [matchclass [IP::local_addr] equals $::external_servers]}{ use snatpool snat_pool_1 } }
- The_BhattmanNimbostratusHi Mark,
- markj_58101NimbostratusThanks for the response.
- DJ_23086AltocumulusI believe you would need IP::local_addr in this instance for the destination, and I think you have the irule in the right place.
when CLIENT_ACCEPTED { set failed 0 if {[matchclass [IP::client_addr] equals $::webserver_datagroup] \ and [matchclass [IP::local_addr] equals $::external_servers]}{ use snatpool snat_pool_1 } }
- markj_58101NimbostratusThanks, I will give it a try.
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