Forum Discussion
jwhitene
Nimbostratus
Feb 02, 2017iRule to check if request comes from any node, any pool, or from list of pools or nodes.
Right now I have an iRule that does this:
when CLIENT_ACCEPTED {
Check if the client IP address is a node in the VIP's default pool
if {[matchclass [IP::client_addr] equals [active_nodes -list...
Kai_Wilke
MVP
Feb 03, 2017Hi jwhitene,
I'm using the iRule below to selectively enable SNAT for connection where the client and the pool member is hosted in the same subnet (via /CIDR mask). Its a much more universal approach which doesn't require any Data-Groups and
[active_node] queries...
when LB_SELECTED {
if { [IP::addr [getfield [IP::client_addr] "%" "1"]/24 equals [getfield [LB::server addr] "%" "1"]/24] } then {
snat automap
}
}
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
