Forum Discussion
Richard_Schmit_
Nimbostratus
Jun 21, 2011Snat automap and pool selection based on source and destination Ip
Trying to figure out an I-rule that will work for the follwing:
I have 3 ISP’s I’m load balancing to for outbound traffic. I have specific Virtual servers set up for specific outbound traffic. ...
Colin_Walker_12
Jun 21, 2011Historic F5 Account
I think what you really want to do is create a class (Data Group) and store the info there. What version are you running?
If you create a Data Group with the "address" type you'll be able to input each of those networks into the list. Once you have that, the iRule becomes very simple.
v10 or later:
when CLIENT_ACCEPTED {
if {[class match [IP::addr [IP::client_addr]] equals NameOfYourClassHere]} {
snat none
pool windstream_router_pool
} else {
snat automap
pool Pool-Outbound_EverythingElse
}
}
If you're on v9 let me know and I'll modify it a bit. 😉
Colin
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