Forum Discussion
HA13029
Nimbostratus
Dec 11, 2017Datagroup and switch command
Hello,
I created different datagroup (list of TCP ports) and based on this setting, selecting the correct pool within my irule.
ltm data-group internal DG_TCP-010901-10902 {
records {
...
Lee_Sutcliffe
Nacreous
Dec 11, 2017You cant really use datagroups in a switch statement (unless you nest an
if within the switch)
To look up a datagroup you'll need to use the
class command
when CLIENT_ACCEPTED {
if {[class match [TCP::local_port] equals "DG_TCP-010901-10902"]} {
reject
}
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