cancel
Showing results for 
Search instead for 
Did you mean: 

LTM - X-Forwarded-for - Policy - Route domain id

vigyu
Altostratus
Altostratus

Hello!

 

We have a virtual server with policy that add some extra headers to the http head. For exaple X-forwared-for. The http header is checked in the pool members and we see the route domain id after the X-forwared-for client IP.

How can we hide the route domain id in the F5?

 

Policy that assign to the virtual server:

ltm policy /PART_1/LTMPOL-HTTP-HEADER-INSERT {

  last-modified 2020-04-02:10:18:52

  requires { http }

  rules {

    HTTP-HEADER-INSERT {

      actions {

        0 {

          http-header

          insert

          name X-Real-IP

          value tcl:[IP::client_addr]

        }

        1 {

          http-header

          insert

          name X-Forwarded-For

          value tcl:[IP::client_addr]

        }

        2 {

          http-header

          insert

          name X-Forwarded-Proto

          value https

        }

      }

    }

  }

  strategy /Common/first-match

}

 

Regards,

Gyuri

1 ACCEPTED SOLUTION

PeteWhite
F5 Employee
F5 Employee

 value tcl:[getfield [IP::client_addr] % 1]

View solution in original post

2 REPLIES 2

PeteWhite
F5 Employee
F5 Employee

 value tcl:[getfield [IP::client_addr] % 1]

vigyu
Altostratus
Altostratus

Thanks Pete!