fearless13
25-11-2003, 03:40 PM
I am in the need of some sort of Cisco guru. Or at least someone that doesn't feel like shooting themselves when they see Cisco commands.
I have a Cisco 1710 at work (I am the network admin though I have no experiance/training/will to live)
Problem is I would like to Port forward to 2 different Internal hosts...... Problem??? Shouldn't be a problem, but yes it is.
I will paste below a piece of the config which will illustrate my problem (assuming you can read Cisco IOS(tis ver 12.0 btw)).
Start Of Cisco IOS commands
ip nat inside source route-map To-Internet interface Ethernet0 overload
ip nat inside source static 192.168.1.1 210.0.0.1 route-map To-Host1
ip nat inside source static 192.168.1.2 210.0.0.1 route-map To-Host2
!
!
ip access-list extended HOST1-TRAFFIC
permit tcp any any eq 110
permit tcp any any eq 25
!
ip access-list extended HOST2-TRAFFIC
permit tcp any eq 4028 any
permit tcp any eq 5029 any
permit udp any eq 4028 any
permit udp any eq 5029 any
permit tcp any any eq 4028
permit tcp any any eq 5029
permit udp any any eq 4028
permit udp any any eq 5029
!
ip access-list extended Not-Private
deny ip any 192.168.1.0 0.0.0.255 log
permit ip 192.168.1.0 0.0.0.255 any
!
route-map To-Host1 permit 10
match ip address HOST1-TRAFFIC
!
route-map To-Host2 permit 10
match ip address HOST2-TRAFFIC
!
route-map To-Internet permit 11
match ip address Not-Private
End Commands
Now as far as I can tell this should work marvelously. Unfortunately when I issue these commands then do a show running-config it returns the setup like this.
Start Running Config output
ip nat inside source route-map To-Internet interface Ethernet0 overload
ip nat inside source static 192.168.1.1 210.0.0.1 route-map To-Internet
!
!
ip access-list extended HOST1-Traffic
permit tcp any any eq 110
permit tcp any any eq 25
!
ip access-list extended HOST2-TRAFFIC
permit tcp any eq 4028 any
permit tcp any eq 5029 any
permit udp any eq 4028 any
permit udp any eq 5029 any
permit tcp any any eq 4028
permit tcp any any eq 5029
permit udp any any eq 4028
permit udp any any eq 5029
!
ip access-list extended Not-Private
deny ip any 192.168.1.0 0.0.0.255 log
permit ip 192.168.1.0 0.0.0.255 any
!
route-map To-HOST1 permit 10
match ip address HOST1-TRAFFIC
!
route-map To-HOST2 permit 10
match ip address HOST2-TRAFFIC
!
route-map To-Internet permit 11
match ip address Not-Private
End output
So as you can see for some reason it replaces the 2nd and 3rd static routes with one that it makes up using the route-map named for the first static route....WTF
I know I can have the first 2 static routes working together, but the moment I Put the thrid in it goes to crap.
Any help would be great. Point me at books if you don't know the answer. I have run out of places I can think of to find the answer to this.
Thanks PPL
I have a Cisco 1710 at work (I am the network admin though I have no experiance/training/will to live)
Problem is I would like to Port forward to 2 different Internal hosts...... Problem??? Shouldn't be a problem, but yes it is.
I will paste below a piece of the config which will illustrate my problem (assuming you can read Cisco IOS(tis ver 12.0 btw)).
Start Of Cisco IOS commands
ip nat inside source route-map To-Internet interface Ethernet0 overload
ip nat inside source static 192.168.1.1 210.0.0.1 route-map To-Host1
ip nat inside source static 192.168.1.2 210.0.0.1 route-map To-Host2
!
!
ip access-list extended HOST1-TRAFFIC
permit tcp any any eq 110
permit tcp any any eq 25
!
ip access-list extended HOST2-TRAFFIC
permit tcp any eq 4028 any
permit tcp any eq 5029 any
permit udp any eq 4028 any
permit udp any eq 5029 any
permit tcp any any eq 4028
permit tcp any any eq 5029
permit udp any any eq 4028
permit udp any any eq 5029
!
ip access-list extended Not-Private
deny ip any 192.168.1.0 0.0.0.255 log
permit ip 192.168.1.0 0.0.0.255 any
!
route-map To-Host1 permit 10
match ip address HOST1-TRAFFIC
!
route-map To-Host2 permit 10
match ip address HOST2-TRAFFIC
!
route-map To-Internet permit 11
match ip address Not-Private
End Commands
Now as far as I can tell this should work marvelously. Unfortunately when I issue these commands then do a show running-config it returns the setup like this.
Start Running Config output
ip nat inside source route-map To-Internet interface Ethernet0 overload
ip nat inside source static 192.168.1.1 210.0.0.1 route-map To-Internet
!
!
ip access-list extended HOST1-Traffic
permit tcp any any eq 110
permit tcp any any eq 25
!
ip access-list extended HOST2-TRAFFIC
permit tcp any eq 4028 any
permit tcp any eq 5029 any
permit udp any eq 4028 any
permit udp any eq 5029 any
permit tcp any any eq 4028
permit tcp any any eq 5029
permit udp any any eq 4028
permit udp any any eq 5029
!
ip access-list extended Not-Private
deny ip any 192.168.1.0 0.0.0.255 log
permit ip 192.168.1.0 0.0.0.255 any
!
route-map To-HOST1 permit 10
match ip address HOST1-TRAFFIC
!
route-map To-HOST2 permit 10
match ip address HOST2-TRAFFIC
!
route-map To-Internet permit 11
match ip address Not-Private
End output
So as you can see for some reason it replaces the 2nd and 3rd static routes with one that it makes up using the route-map named for the first static route....WTF
I know I can have the first 2 static routes working together, but the moment I Put the thrid in it goes to crap.
Any help would be great. Point me at books if you don't know the answer. I have run out of places I can think of to find the answer to this.
Thanks PPL