Forum Discussion

mfkk531_168091's avatar
mfkk531_168091
Icon for Nimbostratus rankNimbostratus
Sep 25, 2016

Need iRule for this requirement. Please help.

I have a irule with the logic to check for uri and then send to a pool with specific port

when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri] ] {
    "/service1*" {
        pool p-service1
    }
    "/service2*" {
        pool p-service2
    }

    and so on

I'm looking to add a sub condition under certain uri, to accept connection only from certain source IPs and drop all other IPs trying to access that uri

Thanks in advance!

1 Reply

  • You may use data-group which contains certain IPs and if client remote address equals data group, you will do what you want.