Forum Discussion
Ken_B_50116
Cirrostratus
Jan 15, 2016iRule to match IP subnet in a routing domain
I need an iRule that matches a network subnet that is also a routing domain. In human terms, I need to match this:
10.15.115.0%1/24
Currently I am using this code and it works, but I want to be m...
Kai_Wilke
MVP
Jan 25, 2016Hi Ken,
Its not a shame to have a non-SNAT scenario. Well, its far better (but more complex) than auto-natting everything... 😉
A customer of mine is using the iRule below to intelligently [snat] traffic depending on the source and destination of the connections...
when LB_SELECTED {
if { [IP::addr [getfield [IP::client_addr] "%" "1"]/16 equals [getfield [LB::server addr] "%" "1"]/16] } then {
snatpool Live_Global_SNAT_Pool
}
}
Note: Responding in a new answer, to enable code high lighting....
Cheers, Kai
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
