Forum Discussion
rajesh1
May 02, 2012Nimbostratus
IRULE - Using a differnt snatpool based on the client ip address
Hello All,
I need to perform SNAT in the current setup to route the return traffic via the F5.
I am looking for an Irule on a virtual server to use a different snatpool based on the actual client ip address and this has to scale up to 100 differnt clients using the same virtual server.
If client ip matches X -->Use SNATPOOL Y
X1 --> Use SNATPOOL Y1
X100 --> Use SNATPOOL Y100.
Thanks
Raj
- MiLK_MaNNimbostratusYou have a few options, but the best two will to either use a switch statement, or use a data group.
"1.1.1.1" { snatpool Y }
"2.2.2.2" { snatpool Y2 }
etc...
}
snat $snatpoolname
} else {
}
- rajesh1NimbostratusThanks for the suggestion ...tested and the logic works .
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