Forum Discussion

rameshr_132303's avatar
rameshr_132303
Icon for Nimbostratus rankNimbostratus
Jul 25, 2015

X Forwarded For On a Forwarding VIP

Hi All,

 

I'm trying to setup a Forwarder VIP for a range of IPs that are going to try and target the LTM.

 

However i see that i cannot use X forward for option whilst using a Forwarding VIP as i cannot apply a profile to the Forwarder VIP.

 

So the only way i thought was to use an iRULE on the Forwarder VIP to insert X forwarded For.

 

Is this possible? If it is, can someone give me the iRule i would have to use in this case? The ports are mainly for HTTP and HTTPs.

 

Thanks!

 

2 Replies

  • that is going to be tricky, because the HTTP event and command you would need also requires a HTTP profile attached.

     

    you might be able to build something with TCP payload, but that will become complex.

     

    can't you use a fast layer 4 http virtual server?

     

  • i did some tests with fast layer 4 and fast http virtual servers but they have too many limitations to be useful here. in both cases you do require a pool, with fast http you can't use the node command to do something dynamically, with fast L4 you can't change the headers.

     

    im afraid the only thing to do is to create standard virtual servers for all the IPs in the range and put the HTTP profile with XFF header insertion there.