Network Address Translation. Purists like to reserve this for the specific case of one to one mapping: one internal address to one external address. That usually means that you'll have a block of public addresses, though it doesn't mean that you need a public IP for every internal address. It does mean that you can only have as many active connections as you have public addresses. If you had only two public IP's, only two internal machines could be active at any given time.
If you did have an equal number of public IP's, you'd use static mapping: your internal 192.168.1.2 machine would always use the same public IP, 192.168.1.3 would use another, and so on.
A special case is where you have one public IP and want every internal machine to have access whenever they want. Masquerading answers that problem by multiplexing connections through tracking port numbers. That does mean that there is always a bounded limit to the number of connections that can be made, but the default for Linux is 4,096 and can be increased (though obviously it can't be arbitrarily increased: you couldn't devote ALL ports to masquerading).
A good overview of all this is http://www.suse.de/~mha/linux-ip-nat/diplom/node4.html#SECTION00040000000000000000
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
"...you couldn't devote ALL ports to masquerading..."
Technically, masquerading should only use the dynamic port range, that is port numbers 49,152 to 65,535, to avoid conflict with registered ports. That amounts to some 16,000 usable ports, more than enough to support most applications.
--BigDumbDinosaur
"...you couldn't devote ALL ports to masquerading..."
Technically, masquerading should only use the dynamic port range, that is port numbers 49,152 to 65,535, to avoid conflict with registered ports. That amounts to some 16,000 usable ports, more than enough to support most applications.
--BigDumbDinosaur
Hmmm - actually NAT does not require a pure 1-1 mapping between external and external adresses ... see NAPT (a special case for NAT where ports are also taken into account). The main difference between NAT and Masquerade is that NAT is able to use more than one external IP-adress.
-- KimPetersen
---December 12, 2004
"...you couldn't devote ALL ports to masquerading..."
Technically, masquerading should only use the dynamic port range, that is port numbers 49,152 to 65,535, to avoid conflict with registered ports. That amounts to some 16,000 usable ports, more than enough to support most applications.
--BigDumbDinosaur
Hmmm - actually NAT does not require a pure 1-1 mapping between external and external adresses ... see NAPT (a special case for NAT where ports are also taken into account). The main difference between NAT and Masquerade is that NAT is able to use more than one external IP-adress.
(ref. to Comer - TCP/IP Principles, protocols and Architechture vol 1 - pp 394+ ISBN0-13-018380-6).
-- KimPetersen
---December 12, 2004
---December 12, 2004
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar