10-05-2022 05:25 AM - last edited on 10-07-2022 09:55 AM by Translator
hi all,
I currently have a setup made, where I have NAT translated to the WAN-site. I want to be able to access the web-server on the LAN-site externally, and I have it configured correctly - I think. However, I'm still confused as to how it works, and even why it should work.
On my NAT-router, I have:
ip nat inside source list 10 interface GigabitEthernet0/0/2 overload
with a corresponding access-list with the desired internal networks to be NAT'ed.
I also needed
ip nat inside source static tcp 10.30.0.2 80 50.0.0.9 80
on the router for the portforwarding of port 80 to work. However, why would it not be
ip nat outside
if it's the outside address (50.0.0.9) that needs to be translated into a specific IP-address? Or is it as simple as "50.0.0.9 is our inside global, so we need to use ip nat inside"??
I know the answer is somewhere, but the answers I found seems a bit too complicated, and I'm having a hard time getting my head around it. I hope some of you can dumb it down for me
Here is my setup:
I can't attach my .pkt-file, so please let me know if you need any additional information.
Solved! Go to Solution.
10-05-2022 12:27 PM - last edited on 10-07-2022 10:00 AM by Translator
from Inside->Outside
ip nat inside NATing the source
ip nat outside NATing the destination
from Outside->Inside
ip nat inside NATing the destination
ip nat outside NAting the source
10-05-2022 07:31 AM
this not work
you need static NAT
10-05-2022 12:12 PM - last edited on 10-07-2022 09:58 AM by Translator
Hi MHM, thank you for your response
I know I need a static NAT. However, I'm asking why it wouldn't be a
ip nat outside static
since it's an outside address I need to NAT to an internal static address
10-05-2022 12:27 PM - last edited on 10-07-2022 10:00 AM by Translator
from Inside->Outside
ip nat inside NATing the source
ip nat outside NATing the destination
from Outside->Inside
ip nat inside NATing the destination
ip nat outside NAting the source
10-06-2022 12:19 PM
Short and precise, thank you so much MHM!
10-05-2022 12:49 PM - last edited on 10-07-2022 10:04 AM by Translator
Hello
@jacobholmjensen wrote:
ip nat inside source list 10 interface GigabitEthernet0/0/2 overloadwith a corresponding access-list with the desired internal networks to be NAT'ed.
This is for dynamic port address translation calling upon an access-list to tell the rtr what address range to translate, any static host within this range may/may not need to be included, if its decided that a static host doesn’t need to be translated for any additional port ranges other than its static port then it can be excluded from the nat acl
@jacobholmjensen wrote:
so neededip nat inside source static tcp 10.30.0.2 80 50.0.0.9 80on the router for the portforwarding of port 80 to work. However, why would it not beip nat outsideif it's the outside address (50.0.0.9)
This is a static pat statement translating a specific internal host and port to a specific inside global address which is normally a publicly/external routable ip address.
Externally when you state that specific public/external ip address and port, the receiving rtr will perform a lookup and translate the packet into its related internal host address and port
A rtr with
Ip nat outside
statement the rtr performs an translation so as/when the outside host is connecting to the nat rtr its ip address will be translated into a internal ip address, so internally that public ip can be reached via its internal translated address via other internal hosts
10-06-2022 12:18 PM
I must admit, I had to read your reply a few times before it made sense, but I think I finally got my head to understand it.
Thanks a bunch for your reply, Paul - it really helped clear things up
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide