Forum Discussion

10 Replies

  • Hi Ihsanekici

     

    Go ahead and post up what you have now and what you want in the desired effect so the community can understand how to help

     

    Thanks, CB

     

  • example ; client_ip: x.x.x.x = node: 192.168.1.10 client_ip: y.y.y.y = node: 192.168.1.11

     

    this information will add http request header.

     

  • Try this:

    when HTTP_REQUEST {
        HTTP::header insert "client_ip" [IP::client_addr] "node" [IP::server_addr]
    }
    
    • Brad_Parker_139's avatar
      Brad_Parker_139
      Icon for Nacreous rankNacreous
      syntax may actually need to be when HTTP_REQUEST { HTTP::header insert [list "client_ip" [IP::client_addr] "node" [IP::server_addr]] }
    • Brad_Parker_139's avatar
      Brad_Parker_139
      Icon for Nacreous rankNacreous
      Do you have an HTTP profile on your virtual server? It is require for http manipulation via the irule.
  • Try this:

    when HTTP_REQUEST {
        HTTP::header insert "client_ip" [IP::client_addr] "node" [IP::server_addr]
    }
    
    • Brad_Parker's avatar
      Brad_Parker
      Icon for Cirrus rankCirrus
      syntax may actually need to be when HTTP_REQUEST { HTTP::header insert [list "client_ip" [IP::client_addr] "node" [IP::server_addr]] }
    • Brad_Parker's avatar
      Brad_Parker
      Icon for Cirrus rankCirrus
      Do you have an HTTP profile on your virtual server? It is require for http manipulation via the irule.