Showing results for 
Search instead for 
Did you mean: 

Cisco 877w port forwarding and internal network

I set up port forwarding using this statement:

ip nat inside source static tcp <internal_ip> 80 interface Dialer0 80

It works perfectly when access is made from external network but I get connection refused when I try to access public IP's port 80 from internal network.

I made some research and it seems that this behaviour is expected. What I couldn't find is explanation why this happens and how it could be resolved.

I know I could implement internal DNS to force the use of internal IPs where necessary. But is this the only way to go?

My old cheap netgear router was forwarding requests from both internal and external networks without any issue, so probably there is some other way to set up forwarding instead of using this NAT rule?

I'm new to cisco ios and this was the only way I found to forward a port.


hi Giedrius,

consider the following scenario:





ip address on the router: fa0/0--- ser0/0:

server:  ; public IP address for server

-PC goes out to the internet after getting PATed on the router.

-server is mapped using static NAT rule to the public IP address

say the PC is trying to access after resolving it to its public IP address(

here is how the packet will flow:

1.      Host 1 browses to the internal Web Server using its URL


2.      Host 1s browser sends a DNS request to the external DNS server to

resolve to its IP address.

3.      The external DNS server replies with the global IP address of

4.      Host 1s browser now attempts to make a connection with

and sends the traffic to its default gateway, fa0/0.

5.      Routing takes place, and the router sends this traffic out the s0

interface.  As this occurs, the source IP address is translated since it has

traversed both a NAT inside and outside interface.

6.      The ISP notes the destination address ( is routed back

out the same interface it came in on, and the traffic comes back to the s0


7.      Since s0 is a NAT outside interface, the source and destination

addresses are translated.  The packet now has a source of and a

destination of

8.      The Web Server receives the TCP request from Host 1 and, noting that

it is a local address, replies directly to Host 1.

9.      Host 1 receives a reply from its TCP request; however, since it

receives it from and not as it was expecting, it drops

the packet.

this is why you see this issue.

one workaround is to configure an internal DNS server so that the internal hosts resolve the URL to internal IP address. you could configure the DNS on the router itself.

you could also try NAT-ON-A-STICK config but that has been known to lead to high CPU issues.