Options

Master Class List

Is it possible to create a master class list that would reference sub class lists?

Comments

  • Options
    mischamischa Member
    edited May 2014
    You could do something like that in aFleX where you have a class-list of class-lists, and use the class-list that comes out of the master class-list. But I believe this would make it overly complex. What would be the reason to do this?
  • Options
    cairnsbrycecairnsbryce Member
    edited May 2014
    currently we are using the following aFlex at the bottom.
    We have a number of websites that we only allow access from certain of our divisions or partners.

    Many of these partners accessing these sites are the same. But some websites will not have all.

    Currently we would need 6 Class Lists, each with about 100 ip address / subnets in each list. Many of these ip addresses/subnet will be the same in all the class list.

    So if i could have sub class lists for say division1,division2 and division 3. Each with there own ip ranges for those divisions defined. I would only have to update it in one spot and the 6 Master Class Lists would be able to reference it.

    when HTTP_REQUEST {


    switch -glob tolower[HTTP::host] {

    "tes1.example.com.au" {
    if { [CLASS::match [IP::client_addr] CL_Media] } {
    a pool SG_Media_RTSP
    } else {
    drop
    }
    }
    "test2.example.com.au" {
    pool SG_Opportunities

    }
    "test3.example.com.au" {
    if { [CLASS::match [IP::client_addr] CL_TestWesi] } {
    pool SG_test.wesi
    } else {
    drop
    }
    }
    "test4.example.com.au" {
    if { [CLASS::match [IP::client_addr] CL_TestWese] } {
    pool SG_test.wese
    } else {
    drop
    }
    }
    "test5.example.com.au" {
    if { [CLASS::match [IP::client_addr] CL_Wesi] } {
    pool SG_Wesi
    } else {
    drop
    }
    }
    "test6.example.com.au" {
    if { [CLASS::match [IP::client_addr] CL_Wese] } {
    pool SG_Wese
    } else {
    drop
    }
    }
    "test7.example.com.au" {
    if { [CLASS::match [IP::client_addr] CL_Admincm] } {
    pool SG_Admincm
    } else {
    drop
    }
    }
    default {


    }
    }
    }
  • Options
    cairnsbrycecairnsbryce Member
    edited May 2014
    okay if this is not recommended.
    Is there away I can do a Class list in a notepad++ as all five of the class list are almost identical.

    I have about 100 IP address and ranges. Could I please have an example of the single ip and a range.
    I did search but could not find what I was looking for.

    I will be saving each class list into the config.
    As the SE advised that this was better than using a file.
Sign In or Register to comment.