A little brainstorming (can't find any info on it): How could one redirect a HTTP request to some other URL and then throw the request back to the original one?

The environment is based on a NAT box. When I connect through it I want to be redirected to some other URL (no matter what I initially request) and after the redirection to be brought back to my initial HTTP request.

What could I use to achieve this? Iptables? Squid? I'm guessing I need some software to monitor the connections and remember where I initially wanted to go, to get me there after the redirection.

Ideas?

link|improve this question

64% accept rate
You could do this with apache or a web server and log the IP or you could do it with cookies with css-tricks.com/… – SLY Oct 12 '11 at 21:13
1  
It sounds like you're wanting to setup a reverse proxy. Could you please tell us the real situation? – quanta Oct 12 '11 at 23:18
You're after a 'captive portal'? – Ashley Steel Oct 20 '11 at 6:09
11 days and no update? It would be useful for others if you posted your solution if you found one on your own. – Ashley Steel Oct 24 '11 at 10:05
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.