01-07-2020 11:36 AM
I have a question regarding Static PAT
I have a topology with HTTP server , router and PC.
I tried to pat on a router with the following command :
# ip nat inside source static tcp 192.168.1.10 80 1.1.1.1 8080
all ports configured correctly g0/0 as in and g0/1 as out.
when i try to access 1.1.1.1:8080 through web browser at PC1 it works perfectly.
- But my issue is when I try to access 192.168.1.10:80 I get Request Timeout.
My understanding that when the traffic first time goes from PC1 to Server it has no entry at nat translation table so it goes through routing tables.
then when the return trafic comes back from Server as (-192.168.1.10:80 source , 1.1.1.10:randport destination) it found entry for the source at the nat table so the source will be converted to 1.1.1.1:8080 .
the thing what i couldn't understand the outside global and outside local how it used port 0
Please if someone can explain this case for me i will be grateful.
01-07-2020 12:58 PM
Hello,
are you trying to access 192.168.1.10:80 from PC1 ? That won't work. Static inside-outside NAT lets you access the public IP address. In the real world, the public IP address is the only unique address that can be accessed. Keep in mind that 192.168.1.10 could be used anywhere, so how is the outside world supposed to know how to get to that private space address ?
Hope that makes sense...
01-07-2020 01:05 PM
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