Forum Discussion

Jeff_Morrison_4's avatar
Jeff_Morrison_4
Icon for Nimbostratus rankNimbostratus
Jan 10, 2006

Pass Cient IP to back end servers

Is there a way in iRules to send the IP address of the client PC to a back end server? My web writer thinks I should be able to send the IP from the HTTP header (refer) field to the back end servers? How would I do this?

 

 

Thanks!

1 Reply

  • In an iRule:

    
    when HTTP_REQUEST {
      HTTP::header insert ORIG_CLIENT_IP [IP::remote_addr]
    }

    In a profile:

    profile http myhttp insert xforwarded for enable