Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

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

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.

5 REPLIES
Bronze

Hi, I am not sure exactly

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

 

 

New Member

Hi Mike,I am not intending to

Hi Mike,

I am not intending to do a give the cached content, My scenario is as follows :

  1. Detect the outbound request www.abcd.com in a router or a firewall.
  2. If it is www.abcd.com, then forward that request to a local server , say for example, http://10.1.206.85
  3. This server http://10.1.206.85 listens at port 80 and does some processing of the request and forward the request to www.abcd.com/parameters.

So in this, I am interested in achieving point 1 & 2.   I would appreciate your help in suggesting  ways to implement this.

 

Thanks,

JK

 

Bronze

Hi,the issue here is you want

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

New Member

Hi Mike,Thanks for the reply.

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

New Member

Hi,A small idea, please check

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

91
Views
0
Helpful
5
Replies