Forum Discussion

  • Hi, did below testing and working as per requiremnet:

     

    when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/console" } { if { not [ class match [IP::client_addr] equals allowed_datagroup ] }{ HTTP::respond 404 noserver return } } }

     

    • fgf_165674's avatar
      fgf_165674
      Icon for Nimbostratus rankNimbostratus

      Since the traffic is HTTPS, you must do SSL offloading in the load balancer.

      when HTTP_REQUEST {

      if { [string tolower [HTTP::uri]] starts_with "/console"} {

      if { not ( [class match [IP::client_addr] equals ip_allowed_datagroup] ) } {
      reject 
      } else {
      pool A
      }
      

      } else {

      pool B

      }

      }

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    You need to be careful if you are restricting access for reasons of security. Try and test the following:

    when HTTP_REQUEST {
        if { [string tolower [URI::decode [HTTP::path]]] starts_with "/console"} {
            if { not ( [class match [IP::client_addr] equals acl_datagroup] ) } {
                reject
            }
        }
    }
    

    .