Forum Discussion
Tariq_Sako_9038
Nimbostratus
Nov 19, 2015iRule - Specific Source to Specific Node
Hello All,
can someone please help me with an iRule to send specific host who access VS IP to be sent always to specific node. appreciate your help
Brad_Parker
Cirrus
Nov 19, 2015Here is a very basic way of doing it.
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 8.8.8.8] }{
node 10.0.0.1
}
}
Are you wanting to map multiple sources to multiple nodes? That would require a little more logic but can be accomplished with a data group with the value being the node you want a particular source to go to.
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals source_dg] }{
node [class lookup [IP::client_addr] source_dg]
}
else {
pool default_pool
}
}
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