Script to display source IP address for home lab

  • Thread starter Thread starter devil_in_disguise
  • Start date Start date
D

devil_in_disguise

Hello everyone

I was hoping someone much smarter than me could help me out. Admittedly I am a complete noobie at Linux and would like some help.

The story unfolds thus...

I am setting up a home F5 load balancing lab using the virtual editions, VMware player and Apache running on Ubuntu to simulate my back end servers to which I load balance inbound traffic.

What I would like to do is this: when I browse to the F5's virtual IP and it then load balances that connection to one of the 3 web servers I have, rather than just displaying any string of text that happens to live on the page I've browsed to, I'd like it to display something like:

"Your source IP address is <source IP>"
"Your destination IP address is <destination IP>"

Why? I hear you asking. Well, it's really just so that as I begin to learn the ins and outs of the F5 platform, I'd like to be able to track my sessions as best as I can, for example, if I did secure NAT or SNAT, then my source IP will be different compared to if I wasn't doing it. By having a nice handy script to do the above it'll basically save me time and really help in my learning experience.

Is this something that can be done in Linux? In fact, as I write this I realise that actually the best place to post something like this would be on a forum that deals with all things HTTP. But since I'm here, I thought I'd go ahead and ask anyway. Please feel free to tell me to bugger off.

Again, many thanks for your help and advice.

Best regards

devil_in_disguise

Continue reading...
 
Back
Top