any possibilities to setup the F5 box to pass the IP thru?
Main Topics
Browse All TopicsFirst off, let me explain the environment.
We have a web app on 2 machines setup identically running Apache 1.3 on AIX 5.2, which sits behind a F5 BIG IP load balancer. Problem is now in the logs of apache we no longer have the ip's of the users but of the BIG IP device. So no more user tracking and such, this is bad.
So my question is, without modifying the web app, is there a way to capture the browser IP in the access_log? I know you can pull such things are User-Agent and Referrer, is there a IP option in there? We are in a controlled enviro and everyone is using the same build of IE6 so that may be a plus. Any suggestions?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>>any possibilities to setup the F5 box to pass the IP thru?
Nope, these things, like Firewalls, accept the incomming connection and make a new forward connection. Strictly they are proxies and they *ought* to add a via header and *perhaps* in the header they'll put sender information in the comment field. Many however don't do this, they just put the protocol and the product, as in :-
Via: 1.1 nowhere.com (Apache/1.1)
The documentation *might* refer to this. The other possibility is that F5 Networks *might* add in a custom header (X-xxxx:) containing the I/P address and this is accessible in Apache through an HTTP_X_xxx environment variable. Again this *ought* to be in the documentation.
So the answer is that the sender I/P is lost unless F5 pass it in an extra header.
" I can't use any php scripting due to I have no way of intigrating it in front of the app."
To install php is not that hard, you can insert a piece of code in your font page (html file),
to run a php script and save the IP in a file for your app to use.
I have use the simlilar setup for a remote PC to use web broswer to start a X connection and
run app from a HP box. (HP-UX) (from PC -> Solaris WebServer -> HP app server).
Business Accounts
Answer for Membership
by: yuzhPosted on 2004-07-08 at 23:18:03ID: 11509249
You can use a "php" script to get the "RemoteIP()" and write to your log file.
byaddr
have a look at :
http://au2.php.net/gethost
PS: You might want to post a question in php TA to ask someone to write the script
for you.
If you want to use php you need to install it on your webserver.