Forum Discussion
Transparent Web Proxy
Hello all,
Relative newb here!!!
Scenario:
User browses to website www.website1.co.uk , which has a link to an external website 2, or user can append a URI in the browser to get to the same external site.
Eg link points to ext.website2.co.uk and www.website1.co.uk/ext is also directed to ext.website2.co.uk...
Requirement: When a user is directed to ext.website2.co.uk, the browser still displays the original address (www.website1.co.uk/ext) and any subsequent browsing taking place on the ext website also maintains the same original address.
Progress:
I have implemented the Proxypass Irule for v10/11 and can get the www.website1.co.uk/ext (the link has not yet been added to the page, so my testing is only using the URL/URI combination) to redirect and rewrite to the ext website transparently to the user.
The original website is targeted by hitting intPool1 (contains the internal webserver) and the datagroup targets extPool2 (contains the external website IP),
www.website1.co.uk/ext := ext.website2.co.uk/ext extPool2
However, as soon as I click any other links on the ext website (after the initial sucessful redirect/re-write), my browser is immediately taken directly to the ext website and the original website (www.website1.co.uk/ext) is no longer seen/rewritten to the browser.
Also, I cannot get the URI transformations to work in the data groups, i.e when testing I could only get the redirect/rewrite to work if the URI is the same as the target URI on the website.
e.g - www.website1.co.uk/etx - to - ext.website2.co.uk/ext works
- www.website1.co.uk/test - to - ext.website2.co.uk/ext does not...
The second entry in the data group looks like this:
www.website1.co.uk/test := ext.website2.co.uk/ext extPool2
I may be way off here but its seems as though the proxy pass irule will only work on a single url/uri (on original website) to single url/uri mapping (on external website and the uri portion must exist on the external website for it to work)?
Any help or putting of me in my place appreciated!!!
Many thanks
1 Reply
- AlexJ
Nimbostratus
Update:
I have now managed to get the bulk of the irule working now. I can happily navigate the external site (with the browser re-writing to the main site) sucessfully.
However, this only works when the target pages of the external site are http.
When I click on a link/page that the external site would normally redirect to https, the browers comes back with the following error..
This web page has a redirect loopThe web page athttps://cns.metrobankonline.co.uk/more/Contact_Us/Default.asphas resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.Here are some suggestions:
Reloadthis web page later.Learn moreabout this problem.
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects
Any ideas how to ensure the external sites redirects do not create the redirect loop?
Many thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com