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

KaiTT's avatar
KaiTT
Icon for Nimbostratus rankNimbostratus
Sep 10, 2024

HTTP x-forward-for

Hi all,

 

I have configured the x-forward-for virtual server as below.

<vitual server>
type : standard
protocol : tcp
Source Address Translation : Automap
HTTP Profile : Added profile with 'Insert X-Forwarded-For' enabled

 

The symptoms are as follows.
1) Configure the service port of the virtual server to 80 or 8080.
   - BIG-IP recognizes the port as http and adds the Client IP to the header.

2) Configure the service port of the virtual server to 11211.
   - BIG-IP recognizes the port as TCP and does not operate X-forward-for.

 

I have a few questions.
Q1) For X-forward-for to operate, does the HTTP well-known(80,8080) port that BIG-IP knows must be configured as a service port?

Q2) Is there a way to make X-forward-for work by configuring unknown-port on the service port?

Q3) Are there any other service ports that F5 recognizes with HTTP other than 80,8080?

 

Thanks,

3 Replies

  • I hope you have applied correct profiles. Could you please check F5 able to communicate with backend pool or not. Please take a full capture that include front and backend communication. If backend communication success only , F5 will start the http connection.

    Hope your vip is up and F5 able to connect server via automap. Try via capture

    • KaiTT's avatar
      KaiTT
      Icon for Nimbostratus rankNimbostratus

      The capture below is the result of configuring XXF with 11211 ports.

      Because BIG-IP recognizes 11211 port as TCP, it appears that HTTP headers cannot be added.