08-12-2022 06:25 AM
Hello,
I would like to be able to access port 22 of Router1 10.0.1.1 from WAN IP A.B.C.D which is on Dialer0 of Router0 (10.0.1.2).
From LAN 192.168.1.X I access port 10.0.1.1:22 of Router1.
From the WAN it does not work using ip nat inside source static tcp 10.0.1.1 22 A.B.C.D 22 extendable
Thank you for the help
08-12-2022 06:29 AM - edited 08-12-2022 06:38 AM
ip nat inside source static tcp 10.0.1.1 22 A.B.C.D 22 extendable
A.B.C.D <<- are this static IP or dynamic via DHCP ??
if it dynamic then try use DNS instead of IP
08-12-2022 06:48 AM
A.B.C.D is an static IP !
For example if I do this for router0 it works : ip nat inside source static tcp A.B.C.D 2222 interface Dialer0 2222
But not for 10.0.1.1...
08-12-2022 06:57 AM
dialer interface is ip nat outside
g0/0 interface is ip nat inside ??
08-12-2022 07:20 AM
Dialer0 is ip nat outside
G0/0 is not ip nat inside, only G0/1 (LAN)
=> ip nat inside source list 101 interface Dialer0 overload
=> access-list 101 permit ip 192.168.1.0 0.0.0.255 any
08-12-2022 07:30 AM
That why NAT not work.
Need ip nat inside in g0/0
Note:- you can have more than one ip nat inside in router
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide