F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

muzammil_88686's avatar
muzammil_88686
Icon for Nimbostratus rankNimbostratus
May 12, 2013

X-Remote-Addr is showing as 0.0.0.0

Dear Dev Team,

 

 

Users are trying to access the URL "www.test.com/connect"

 

We are seeing X-Remote-Addr as 0.0.0.0 in HTTP header for some requests and we are seeing the "actual client ip address" for some requests on the same VIP

 

Nodes will determine the action to be performed based on -X-Remote-Addr.

 

Whenever the request consists of X-Remote-Addr as "0.0.0.0" the requests are failing.

 

BTW, we have LTM with WA module.

 

Could you pls someone give any suggession on how to overcome this behaviour?

 

Is it possible to overcome the issue with an iRule. If so can you give me a sample when the requests hit the URL: "www.test.com/connect"

 

2 Replies

  • Are those requests from the internet or are they sourcing from networks that you control?

     

     

    The Bhattman
  • Christian_30338's avatar
    Christian_30338
    Historic F5 Account
    I am not sure why sometimes the value isn't set but give this iRule a try.

     
     when HTTP_REQUEST {
    if {[HTTP::uri] starts_with "/connect"} {
    HTTP::header replace X-Remote-Addr "[IP::client_addr]"
    }
    }