The NAT rule above is pretty straight forward. When someone connects to TCP port 80 on the outside interface of R2 then it should be forwarded to R1. We will start with the most common scenario. Port forwarding using the outside IP address Let’s configure the inside and outside interfaces: R2(config)# interface FastEthernet 0/0 Let’s take a look at the configuration… Configurationįirst we will configure a static route on R1 so it knows how to reach the outside world: R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.12.2 ![]() R2 will make sure that the HTTP server is reachable on an IP address on the outside. Imagine R1 is a HTTP server on our LAN and R3 is some host on the Internet that wants to reach our HTTP server. Here’s an example:Ībove we have three routers, we’ll use these to demonstrate NAT port forwarding. This NAT router will forward traffic to host on the inside. A host on the outside (for example on the Internet) will connect to the outside IP address of a router that is configured for NAT. NAT port forwarding is typically used to allow remote hosts to connect to a host or server on our private LAN. Port forwarding using the outside IP address.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |