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...
Hamish
Cirrocumulus
Jul 27, 2010You want the class command... There's two ways to do this...
1. Use datagroups of type address. Then simply drop addresses and netmasks into the group. A simple test for the group containing the IP address is as simple as
if { [class lookup [IP::CLIENT] $className] } {
do whatever...
}
However this doesn't scale very well as the number of datagroups increases (I'm assuming you're using different datagroups to indicate different connection limits).
What I'd do is have a single DG, and using key/value pairs. e.g.
address1:connlimit
address2:connlimit
and use the class command to lookup the address and get back the connlimit. The actual counting of connlimit, I'd do with a table. Just like you're doing above. Just replace the hardcoded '10' with the connlmit that you get back from the DG.
H
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
