For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

dbamini's avatar
dbamini
Icon for Nimbostratus rankNimbostratus
Apr 04, 2024

help irules for compatibilty

Please , someone can help me wiyh the irule below:

when HTTP_REQUEST {
  log local0. "HTTP Method = [HTTP::method]"
  log local0. "HTTP URI = [HTTP::uri]"
  log local0. "HTTP Path = [HTTP::path]"
  log local0. "HTTP Query = [HTTP::query]"
  log local0. "HTTP Version = [HTTP::version]"
  log local0. "HTTP Host Header = [HTTP::host]"
  log local0. "HTTP User Agent Header = [HTTP::header value "user-agent"]"
  if { [HTTP::host] eq "pp.appro-cb.pmu.fr" }{
    pool POOL__PREPR
    SSL::disable serverside
    HTTP::header insert X-Forwarded-For [IP::remote_addr]
  } elseif { [HTTP::host] contains "lab.tech.zu" }{
    pool POOL_GITLAB
  } elseif { [HTTP::host] contains "nessus.tech.ai" }{
    pool POOL_NEXUS
  } elseif { [HTTP::host] contains "rai5.pp.ei" }{
    pool POOL_STP_RE5_appv1
  } elseif { [HTTP::host] contains "apicccc-tech.ai" }{
    pool POOL_APICMD_TST
  } elseif { [HTTP::host] contains "myhome-pp.pcc.ai"}{
    pool POOL_MYBET_PP
     HTTP::header insert Access-Control-Allow-Origin "[HTTP::header Origin]" \
     HTTP::header insert Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" \
     HTTP::header inster Access-Control-Expose-Header "Pmu-Session-Id" \
     HTTP::header insert Access-Control-Allow-Headers "Pmu-Session-Id,OTT,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,correlationId,emetteur,idDevice" \
     HTTP::header insert Access-Control-Allow-Credentials "true"
        return

  } 

}

2 Replies

  • Looking at the iRule overall I don't see errors but as spalande stated, what exactly are you needing assistance with solving?