I am trying to do a simple NAT translation so that I can have a web
server running on port 8000 that appears as a public IP instead of a
private one. I want
http://192.168.1.11:8000 to be addressable by
http://204.57.130.50:8000 . I can't figure out what I am doing wrong.
If I type
http://localhost:8000 it works. If go to another PC instead
the network and access it on port 8000 it works. But from the internet
it just does not work. I just get a page cannot be displayed message.
I am only running IOS 12.0.28 on my 2501 router so maybe I should
upgrade. I will post my configuration here. I've tried it with and
without the access list command. Any help would be appreciated:
Building configuration...
Current configuration:
!
! Last configuration change at 17:14:01 BKK Wed Oct 5 2005
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname m3koffice
!
enable secret 5 xxxxxxxxxxxxx
enable password 1234
!
ip subnet-zero
ip name-server 204.57.160.129
ip name-server 204.57.128.67
clock timezone BKK 7
!
!
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
ip nat inside
!
interface Serial0
description Connect to M2K-TOT
ip address 204.57.130.50 255.255.255.252
no ip directed-broadcast
ip nat outside
no ip mroute-cache
no fair-queue
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface TokenRing0
no ip address
no ip directed-broadcast
shutdown
!
ip nat inside source list 1 interface Serial0 overload
ip nat inside source static udp 192.168.1.11 8000 204.57.130.50 8000
extend
ip nat inside source static tcp 192.168.1.11 8000 204.57.130.50 8000
extend
ip nat inside source static tcp 192.168.1.11 8080 204.57.130.50 8080
extend
ip nat inside source static tcp 192.168.1.11 1813 204.57.130.50 1813
extend
ip nat inside source static tcp 192.168.1.11 1812 204.57.130.50 1812
extend
ip classless
ip route 0.0.0.0 0.0.0.0 204.57.130.49
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
line con 0
transport input none
line aux 0
line vty 0
password xyz123
login
line vty 1 4
password 1234
login
!
ntp clock-period 17180128
ntp server 204.57.160.2
end