Forum Discussion
MDPF5_152674
Altostratus
May 12, 2014iRule for Snat pool association
Hi Community, i want to realize an iRule that matches the Client ip address(when Client Accepted) with a list of subnets . If it matches, then associate the ip address to a Snat address(forced), if...
Henrik_Gyllkran
Nimbostratus
May 12, 2014Yes this is most certainly possible. Myself I'm awfully partial to using Data Groups, so if you create a Data group containing the subnets you need to snat, let's call it snatted_subnets and then you could use the following iRule:
when CLIENT_ACCEPTED {
if {class match [IP::client_addr] equals snatted_subnets]}[
snatpool your_snatpool_name
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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