I am having a ADSL connection with dynamic IP from my ISP, I am using a Cisco 837 router.
I need to access one of my servers from the internet. I am using a dyndns agent in my server so that I will know the updated IP address. I tried setting NAT on the dialer0 interface, but it did not work. I need to NAT 2 ports (port 22 and 122) to a LAN server: 192.168.5.11
Here is the original config file:
Please see attached.
I searched the web and I tried this:
ip access-group 104 in
access-list 104 permit tcp any any eq 22
access-list 104 permit tcp any any eq 122
ip nat inside source static tcp 192.168.5.11 25 interface dialer0 22
ip nat inside source static tcp 192.168.5.11 25 interface dialer0 122
After I entered these command, I can no longer access the internet.
May I know where did I do wrong?
Can anyone assist me?