Forum Discussion

Nik's avatar
Nik
Icon for Cirrus rankCirrus
May 06, 2011

http reverse proxy?

i'm moving some products over from a foundry serveriron to my bigip. they have a reverse proxy setup to basically "rebrand" a product so they can use an auto login and not have https cookies break. works something like this:

 

 

user requests www.mydomain.com

 

lb recieves request for www.mydomain.com

 

lb requests www.theirdomain from another server

 

lb recieves response from www.theirdomain.com

 

lb returns response from www.theirdomain.com to user

 

 

 

this means that the user will see www.mydomain in their web browser but the data is actually coming from www.theirdomain.com.

 

 

 

any ideas?

 

  • Hi Nik,

     

     

    You can use the ProxyPass iRule for this:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/proxypass (v9)

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/proxypass (v10)

     

     

    Aaron
  • i've been working on this a bit.. i get some debug output but it never does the actual proxying - i always get a response from the default pool, any idea why?

    May  6 19:31:01 local/tmm info tmm[2605]: Rule ProxyPass : nik_test: client_ip:21984 -> hostname:80
    May  6 19:31:01 local/tmm info tmm[2605]: Rule ProxyPass : VS=nik_test, Host=hostname, URI=/: Found Rule, Client Host=hostname, Client Path=/, Server Host=hostname_new, Server Path=/
    May  6 19:31:01 local/tmm info tmm[2605]: Rule ProxyPass : VS=nik_test, Host=hostname, URI=/: Using default pool default_pool
    May  6 19:31:01 local/tmm info tmm[2605]: Rule ProxyPass : VS=nik_test, Host=hostname, URI=/: New Host=hostname_new, New Path=/
    May  6 19:31:01 local/tmm info tmm[2605]: Rule ProxyPass : VS=nik_test, Host=hostname, URI=/: $stream_expression_cmd: STREAM::expression "@hostname_new/@hostname/@", $stream_enable_cmd: STREAM::enable
    May  6 19:31:01 local/tmm info tmm[2605]: Rule ProxyPass : VS=nik_test, Host=hostname, URI=/: Successfully configured and enabled stream filter