Forum Discussion

Resources_15094's avatar
Resources_15094
Icon for Nimbostratus rankNimbostratus
Feb 25, 2010

ReDirect to external site - source = BigIP

This should be an easy one for the forum...

 

 

I am redirecting off of the big ip to an external site, so i have the usual irule:

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] equals "/" } {

 

HTTP::redirect https://externalwebsite.com

 

}

 

}

 

 

 

but, when i do that, the source is still the users PC. I need the source to be the BigIP instead.

 

 

 

I know i need to add the set http host, but dont know the syntax.

 

 

 

 

Thank you in advance
  • Hi Resources,

     

    Is the Client still going through the BIGIP to get to the external site?

     

     

    Thanks,

     

    Bhattman
  • Yes, they would need to hit the big ip in order to get to the site. Reason, the far end site is locked down by IPs and they want only 1 IP from us. So, i figured we could source it with the bigip address
  • Then you must have some kind of wildcard Virtual forwarding that the request is going through and sounds like you don't have SNAT turned on. If you turn SNAT on for that Wildcard Virtual forwarding then SNAT to the BIPs egress floating address.

     

     

    I hope this helps

     

     

    Bhattman