Forum Discussion

neil_t_66364's avatar
neil_t_66364
Icon for Nimbostratus rankNimbostratus
Mar 04, 2015

Multiple source addresses for virtual servers

Hi All,

 

Does anyone know the format for listing multiple source addresses in the source entry for a virtual server? I know I can use an IRule but I just wanted to know if I can enter multiple sources into the source area of the general properties of a virtual server. I've tried many different formats and can't find one that works. I'm using route domains. The IRule I have is below, what would it be for a subnet? Apologies for such a simple question but I'm new to IRules

 

when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 4.4.4.4] }{ discard } else {

 

log local0. "Allowed Traffic" } }

 

1 Reply

  • If you wanted to update your iRule to use a subnet, you can add the

    /XX
    suffix to the IP and the comparison will be based on that... So if you wanted 10.0.0.0/8, you could do this:

    when CLIENT_ACCEPTED { 
        if { [IP::addr [IP::client_addr] equals 10.0.0.0/8] }{ 
            discard 
        } else {
            log local0. "Allowed Traffic" 
        }
    }