Forum Discussion

Mike_Marvel_629's avatar
Mike_Marvel_629
Icon for Nimbostratus rankNimbostratus
Nov 14, 2012

ProxyPass Question

I had a request from our dev team to have the F5 do something with the ProxyPass iRule. I've implemented the following scenario (QA test environment):

 

User types:

 

User sees in browser:

 

User is actually hitting (URL hidden):

 

This part works fine but after this is where I have a problem. The page has 3 buttons, each redirects the user to another page. (302) After this redirect, the user sees the actual URL in their browser instead of the proxy URL. So they see this:

 

or or

 

But what they should see is this:

 

or or

 

What I need to know is how can I get PoxyPass to catch these redirects and keep the actual URL hidden while still redirecting to the new page?

 

What the dev team is trying to get to is a point where they present a URL to the customers that will never change and will mask whatever environment is actually behind it. The end result of all of this work will be something like this:

 

User types: http://www.test.com/replace

 

User sees: http://www.test.com/replace/app/page1.aspx

 

User is actually hitting: http://www.bogus.com/app/page1.aspx

 

or

 

User types: http://www.test.com/renew

 

User sees: http://www.test.com/renew/app2/index/index.html

 

User is actually hitting: http://www.notreal.com/app2/index/index.html

 

I'll need to keep any redirects hidden here as well because the users cannot see the backend URL. I've tried enabling the stream profile but that doesn't seem to make a difference.

 

Any ideas?

 

Thanks.

 

 

4 Replies

  • I'd suggest it would be easier to not use the redirects in the application as these are effectively impossible to mask; if you rewrite them, the client browser obviously won't go to the right place. Can they not be replaced with relative links?
  • I know this is more of a fire drill than anything... in the end, they need to fix the app but I had to go through it first.

     

    If anybody comes up with anything, let me know.

     

  • Do the two (or more) different domains names resolve to the same IP and Virtual Server?
  • Yes, for this QA exercise everything is on the same VS. I cannot say the same in the future.

     

     

    Just an update that our dev guys wanted to throw in... the page is asp.net and what is actually happening on the button is this:

     

     

    Response.Redirect("Default.aspx?clientID=" + clientid + "&UserAction=" + userAction + "&Culture=" + SelLanguage +"&Mode="+mode);