Forum Discussion

Bruce_Bronczyk's avatar
Bruce_Bronczyk
Icon for Altostratus rankAltostratus
May 31, 2005

Multiple virtual servers using same pool

Does anyone know if it is possible to have multiple virtual servers using the same pool of servers for HTTP load balancing and be able to configure the BigIP to insert the IP of the virtual server, connected to by the requesting client, into the IIS logs of the web servers. We can see the client source IP in the IIS logs, but need to know which virtual IP they came through.

 

Thanks
  • bknotwell_12713's avatar
    bknotwell_12713
    Historic F5 Account
    Hi Bruce--

    Assuming I understand what you want correctly, you probably want to use the server_addr attribute:

    b pool blah '{ member www.xxx.yyy.zzz:aa header insert "x-client-ip: ${client_addr} vip: ${server_addr}"}'

    Good luck!

  • Thanks. I assume that 'blah' is the pool name, but do I need to run this command once for each member of the pool, replacing the www.xxx.yyy.zzz:aa with each members IP and port? Or can I leave the 'member' section out and just use the header insert section and run the command once? Also I am running 4.2 PTF06, so I want to make sure that this is compatible with that version.

     

    Thanks again
  • bknotwell_12713's avatar
    bknotwell_12713
    Historic F5 Account
    You set the header insert on a pool-wide basis. You'll do it once with *all* members included or use the appropriate syntax to modify the pool.

     

     

    I haven't tested it on 4.2 but a quick look in the source code makes me think you'll be fine.