Forum Discussion

Vuong_Hong_Vu_1's avatar
Vuong_Hong_Vu_1
Icon for Nimbostratus rankNimbostratus
Aug 24, 2016

How to send ip address of client to the server ?

Hi all

 

I have 1 virtual server run not http service. Example 10.29.252.42 port 2699 with Snat auto-map. But my server need to check ip address of client. I don't know how to insert ip client send to app server. Please guide me resolve it.

 

Best regards

 

2 Replies

  • Without knowing anything about the app, I have no idea how to send the real client IP to the app, but here's a simple example of how to log the real client IP:

    when CLIENT_ACCEPTED {
      log local0. "Real Client IP is [IP::client_addr]"
    }
    
  • I created this means by which to "Kill SNAT AutoMap":

     

    https://devcentral.f5.com/codeshare/kill-snat-automap

     

    I have some changes I need to make to the doc and code (I want to offer up all 3 methods Ive used/tested with the most recent method proving to be the solution that we are running with).

     

    A few restrictions are that you must have selfIP/floatingIP presence in your pool members' subnet and your pool members must be linux (Well Ive only tested on this *nix flavor)