cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
983
Views
0
Helpful
3
Replies

SNAT on CISCO ROUTER(change source IP)

leonard.docea
Level 1
Level 1

Hello ,

I have 2 networks 10.10.10.0/24 and 192.168.9.0/24. Between them i have a Cisco Router 850. with 2 interfaces

10.10.10.1 (outside) and 192.168.9.3 (inside).From 10.10.10.12 i wanna access browser http:\\10.10.10.1:8080 and redirect to 192.168.9.159.(NVR video equipment)

PC 10.10.10.12 and 192.168.9.159 don't have Gateway!!!! or have another gateway but not 10.10.10.1 or 192.168.9.3.

So what can i do for comunicate PC  10.10.10.12 with NVR video equipment 192.168.9.159.

I tryed something like this

ip nat inside source static tcp 192.168.9.159 8080 10.10.10.1:8080

ip nat outside source static 10.10.10.12 192.168.9.3

int 'outside'

ip nat outside

int 'inside'

ip nat inside

....but doesn't work

 

I tryed the same situation on Linux and it worked usind PREROUTING and POSTROUTING.I change source  ip packet when the packet is out

something like IN-----> IPSRC 10.125.56.12:41423| IPDST 10.10.10.1:8080 and after out from router packet become OUT---> IPSRC 192.168.9.3:41423| IPDST 192.168.9.159:8080 and the result NVR comunicate with 10.10.10.0/24(10.10.10.12)

 

 

Please help

 

Thank you

3 Replies 3

leonard.docea
Level 1
Level 1

no one help me?I need a smart guy :)

A friend told me about NVI, but he didn't know how to apply

post your full config please?

this week i can't show you my config but i think is not important because i have few rules...default config c850(factory default) and i add 2 ip for networks;  for FA4 and VLAN 1 and just it.In rest NAT which is not working.

But the my question is ..can i change with command ios, my source IP?

 

thank's