Forum Discussion
Kenny_Lussier_5
Nimbostratus
Jul 27, 2010Limiting connections based on data group
Hi All,
Please excuse my lack of knowledge. I am very new to F5, and I am trying to work through a PoC with LTM v10.1. I have searched through and found several examples of how to limit traf...
hoolio
Cirrostratus
Jul 30, 2010Hi Kenny,
I think Hamish was suggesting that you use a single address type datagroup and then set a value to return if the client IP matches a particular host or network. Here is an example from the bigip.conf:
class conn_limit_class {
{
host 1.1.1.1 { "cust1" }
network 2.2.2.0/24 { "cust1 }
network 3.3.3.0/24 { "cust2" }
network 4.4.5.0/24 { "cust2" }
}
}
You could then use a class function to query the class and get the customer group name for that particular client. You could use the table command to track the number of active connections per customer group. You could store the connection limit for each customer group in a separate datagroup or hardcode it in an array in the iRule.
Aaron
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
