NAT Terminology question

subflava

Senior member
Feb 8, 2001
280
0
0
Anyone know what terms are generally used to describe "reverse NAT'ing"?

Normally when people use "NAT" they mean that source addresses are translated (usually private IP's to a single internet IP) at a router device. What do you call it when you translate the destination address instead? Destination NAT? Outside NAT? Inside NAT?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
translate the destination address? Depends on the destination...the destination of packets coming into your network...or the destination of packets leaving your network.
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
there's nat which only deals with the IP address - ie it only modifies the layer 3 info.

There there port address translation - which modifes the layer3 and layer 4 info.

Most of the times nat is just for outbound connections like a client starting a TCP session with a web server. The source address is changed, and the ensuing reply from the server's destination address is changed.

PAT works the same way except the source port is changed as well. used when there is more than IP inside ip address being used.

In cisco terms what you're describing is a "static" NAT and is used for machines that will be receiving connection requests like servers. An outside address is translated to an inside address.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Linux netfilter calls them SNAT and DNAT, or Source NAT and Destination NAT.

When most people say NAT they really mean PAT.
 

subflava

Senior member
Feb 8, 2001
280
0
0
lol...guess I'm not being clear judging from the responses. Sorry, let me try again.

Normally when people use "NAT" they mean that source addresses are translated...

Oops. I realized I asked the question wrong because I wasn't thinking of the process correctly. When you're talking about NAT in the common scenario (ie. Some office computers with private addresses behind a router trying to reach a website on the internet), the outgoing packets from the workstations get their SOURCE IP addresses changed (yes I know technically there is also PAT being done in this scenerio, but let's just ignore that for my question) and the incoming packets from the webserver get their DESTINATION addresses changed when they hit the router. I was thinking the source addresses get translated in *BOTH* directions which obviously doesn't make sense.

In cisco terms what you're describing is a "static" NAT and is used for machines that will be receiving connection requests like servers. An outside address is translated to an inside address.

After reading the above I realize the stupidity of my question. I knew the answer all along..."static mapping/static NAT".

I've probably just confused more people like I was confusing myself, but thanks for the help guys.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
and the incoming packets from the webserver get their DESTINATION addresses changed when they hit the router. I was thinking the source addresses get translated in *BOTH* directions which obviously doesn't make sense.

Both do get changed in that scenario, because the webserver has a private address the router/firewall has to NAT it's address in the replies.
 

subflava

Senior member
Feb 8, 2001
280
0
0
Both do get changed in that scenario, because the webserver has a private address the router/firewall has to NAT it's address in the replies.

?? Are you talking about the other end of the connection? Well, assuming the webserver also has a private IP and sits behind NAT then you're right.