04-15-2014 12:13 AM - edited 03-07-2019 07:05 PM
Is there a way to detect the URL domain name like yahoo.com and forward the HTTP request to some other server within the LAN. I need this for a customer POC , where I have to forward the request to a internal server to inject some parameters in the URL and re-post the http request.
Can this be done in a Firewall or a router or any other components in WLC. Do we need to have a custom proxy server for this ?.
please advice.
04-15-2014 02:19 AM
Hi,
I am not sure exactly what you are doing (re: inject parameters in URL) but there is always WCCP - which is used to cache web content locally, and fulfill requests from a local device rather than the internet.
Here is a link
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipapp/configuration/12-4t/iap-12-4t-book/iap-wccp.html
HTH
Mike
04-15-2014 02:33 AM
Hi Mike,
I am not intending to do a give the cached content, My scenario is as follows :
So in this, I am interested in achieving point 1 & 2. I would appreciate your help in suggesting ways to implement this.
Thanks,
JK
04-15-2014 03:29 AM
Hi,
the issue here is you want to configure the router to classify traffic, and then policy route that traffic based on the URL matched, i.e.
class-map match-any MATCHED_URLS
match protocol http host "*facebook.com*"
then policy route matching traffic using
policy_map REDIRECTED_TRAFFIC
class MATCHED_URLS
set ip next hop 1.1.1.1
apply service-policy on router's receiving interface
Where you need to be careful is on matching the URL, i.e. you want traffic that has been modified to not match this, i.e. not be policy routed, otherwise it could keep looping round.
so traffic matching url = policy routed to the server on the LAN
traffic matching url/parameter = routed based on destination ip address in header / routing table
HTH
Best wishes
Mike
04-16-2014 10:05 PM
Hi Mike,
Thanks for the reply. We are now trying to implement this as you said with two different URL domains so that it will not be trapped in a loop. I will get back to you with the results soon.
Regards,
JK
04-15-2014 04:53 AM
Hi,
A small idea, please check whether it will work or not.
You can achieve this by using combination of DNS server and reverse proxy server.( Customized apache). Make 'A' record for www.abcd.com to reverse proxy server IP address in your DNS.
So it will resolve your reverse proxy IP address for requests.
Configure appche to accept incoming request for www.abcd.com and points towards www.abcd.com/parameters.
I think this will solve your problem. Only one condition is that proxy server will communicate with www.abcd.com on behalf of client.
Follow the link for configuration of reverse proxy server
http://www.slashroot.in/how-configure-basic-apache-reverse-proxy
HTH
Naisam
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide