Forum Discussion
Marc_64323
Nimbostratus
Oct 03, 2013Need help debugging an iRule to route to a specific pool memeber based on source ip
Hello, I am trying to create an iRule that does source based routing to specific pool members. I have found a few examples online that I based the below code off of. My iRule is not working. What...
StephanManthey
Nacreous
Oct 03, 2013I´m using a data group as follows to map source IPs to nodes:
tmsh list ltm data-group internal dg_source_node
ltm data-group internal dg_source_node {
records {
10.133.133.101/32 {
data 10.131.131.101
}
10.133.133.102/32 {
data 10.131.131.102
}
10.133.133.103/32 {
data 10.131.131.103
}
}
type ip
}
The iRule looks as follows:
when CLIENT_ACCEPTED {
pool pool_web member [class match -value [IP::client_addr] eq dg_source_node] 80
}
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