Forum Discussion

Dennis__Lauder_'s avatar
Dennis__Lauder_
Icon for Nimbostratus rankNimbostratus
May 21, 2007

pass client_ip to server (not http or https)

I need to pass the client_ip address to a database connection for authentication. It sends the F5 IP right now. I have seen and use the X-Forwarded-for solutions for http but I do not see on to pass the client IP to a non-http port.

 

 

Thanks, Dennis

1 Reply

  • You can manipulate the packet headers and data with a rule, but the protocol it's being sent over needs to support the data you're changing/adding. HTTP supports custom headers, so you can insert the original client IP address and then configure the web server to log that custom header. Do you know if the protocol you're using supports something like this?

     

     

    If the protocol doesn't support it, you could consider changing the default gateway on the server to the BIG-IP. You could then disable SNAT on the virtual server so the original client IP address is preserved.

     

     

    Aaron