I have a
Cisco 1841(advanced IP services) with following setup:
LAN <-> [192.168.1.254/24:Fa0/0]Cisco1841[Fa0/1:194.22.12.1/30] <-> Internet
As you can see, my
inside local addresses are from 192.168.1.0/24 and
inside global address is 194.22.12.1. I have done some port forwarding in
Cisco1841:
ip nat pool NAT 192.168.1.7 192.168.1.7 netmask 255.255.255.0
ip nat inside destination list 150 pool NAT
access-list 150 permit tcp any any range 2222 2224
In 192.168.1.7 PC there is a SSH server running on port 2222. If I connect from Internet(from
outside global addresses) to this server using "ssh -l user 194.22.12.1 -p 2222" everything works. However, if I'm in the LAN and execute this very same command(ssh -l user 194.22.12.1 -p 2222), I'm not able to access the SSH server.
As I understand I need to set up NAT reflection? Any hints, how to achive this in IOS?