Port redirection

Unanswered Question
Feb 28th, 2007

Hi,

I have in my company a 2801 router with ADSL(WIC ADSL) and ISDN(WIC 1T)interfaces.

I want to know how we could configure a port redirection.

I want that the 80(www) traffic pass through the ADSL interfaces and FTP,SMTP traffic through the serial(ISDN) interfaces.

In advance Thank you very much

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
hoogen_82 Wed, 02/28/2007 - 06:55

Yeah you could.

Use PBR's Policy based routing.

!

route-map PBR permit 10

match ip address 101

set ip next hop x.x.x.x

!

route-map PBR permit 20

match ip address 102

set ip next hop y.y.y.y

!

route-map PBR permit 30

!

access-list 101 extended permit tcp any any eq 80

access-list 102 extended permit tcp any any eq smtp

Apply the ip policy route-map command on the interface connected to your LAN.

Your next hop determines where you want to send traffic through to adsl,isdn etc.

Cheers

Hoogen

Do remember the above configuration is just what came into my mind there might be syntax errors, but you can work that out ;)

youssef_bensouda Wed, 02/28/2007 - 10:15

i try it but it doesn't work

route-map PBR permit 10

match ip address 125

set ip next hop ip@ of the ADSL

route-map PBR permit 20

match ip address 130

set ip next hop ip @ of ISDN

access-list 125 extended permit tcp any any eq 80

access-list 130 extended permit tcp any any eq smtp

interface Fastethernet (LAN)

ip policy route-map PBR

!

ip classless

ip route 0.0.0.0 0.0.0.0 ISDN 0/2/0 permanent

ip route 0.0.0.0 0.0.0.0 ATM0/1/0 permanent

is the route correcte

do have any idea please :)

and how can i know the ip @ that gat the adsl interface (it was configured as easy ip )

hoogen_82 Wed, 02/28/2007 - 10:20

could you explain more what problem is happening now?

Hoogen

youssef_bensouda Wed, 02/28/2007 - 10:27

when i configure the next hope when i applay the policy to the lan inerface all trafic is stoped we don't have www or anything else

do u think that the default route are configured correctly

and by the way how could i know the ip addresse that get the adsl interface (i was given dynamicly by the ISP)

Actions

This Discussion