Can I refer to an ACL within an aFlex?

Hi there, I have two pools that should explicitely be used depending on the clients source IP-adresses, and this already seems to works with the following aFlex example:

when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.0/24] } {
pool POOL1
} else {
pool POOL2
}
}

The problem is, that we have multiple networks, that should use POOL1 but not POOL2.
I think, I could fix this with multiple else-statements, but the idea is, to refere the if-statement to an ACL.

Does someone know if, and if so, how this is possible?
Or are there any better ideas to fix the service request?

Many thanks in advance
Hakan
Tagged:

Comments

  • edited August 2015
    Hi Hakan
    you can use a class-list for each list of networks you require use pool1 or pool2

    when CLIENT_ACCEPTED{
    if { ( [CLASS::match [IP::client_addr] CLserver1] ) } {
    pool Group_server1
    }
    if { ( [CLASS::match [IP::client_addr] CLserver2] ) } {
    pool Group_server2
    }
    }

    CLserver1 and CLserver2 are two classlist created
  • ip-netze@wdr.deip-netze@wdr.de Member
    edited September 2015
    Hi jyovani,

    sounds well, I will try it with the class list.
    Thanks!
Sign In or Register to comment.