cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1452
Views
5
Helpful
8
Replies

How to redirect all HTTP requests to a single web server

pambosch
Level 1
Level 1

we want to implement the following scenario: We want all URL requests from our users (i.e URL requests to any random web site) to be redirected from the local cisco router to another specific web site. i.e if a user wants to access www.cisco.com, then the router should redirect his request to www.whatever.com .

Can we do this using a router?

Thanks

8 Replies 8

milan.kulik
Level 10
Level 10

Hi, what about using

ip nat inside destination

command?

See http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/ipras_r/ip1_i2g.htm#1079025

for details.

Regards,

Milan

dear Milan,

thanks a lot for the info.

So this command translates the destination address from the inside users right?

Hi, where can i find more materials about the " ip nat inside desination" command ??

thanks a lot!!

leo

Since ip nat inside destination uses a standard access list, there is no way to define it for http traffic only, so this will redirect *all* traffic to the translated address, right?

To solve this, maybe you could implement PBR to route all http traffic to a loopback interface (or a dedicated other router) and perform the nat on the loopback only (or on the other router) ?

Herbert

Have you tested it?

I know it's written in the config manual but I think it might be a mistake and extended ACL might be allowed....

router(config)#ip nat inside destination list ?

<1-199> Access list number for global addresses

WORD Access list name for global addresses

Regards,

Milan

ashok_boin
Level 5
Level 5

Hi,

From which direction you want redirection. For internal users/external users?

Ashok.


With best regards...
Ashok

yes, preferably from internal users to external users.