当前位置:网站首页>NAT (network address translation)
NAT (network address translation)
2022-07-27 06:51:00 【Thousand tears 1999】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
List of articles
One 、NAT What is it?
NAT(Network Address Translation) Also known as network address translation , It is used to realize mutual visits between private networks and public networks .
Private network address and public network address
Public network address ( Hereinafter referred to as the public network address ) It refers to the only in the world on the Internet IP Address .2019 year 11 month 26 Japan , It is a memorable day in the era of human Internet , almost 43 One hundred million IPV4 Address officially exhausted .
Private network address ( Hereinafter referred to as private network address ) It refers to the internal network or host IP Address .
1.NAT How it works
NAT It is used to convert the intranet address and port number into a legal public address and port number , Set up a conversation , Communicate with the public network host
NAT An external host cannot actively follow NAT Internal host communication ,NAT The internal host wants to communicate , Must be active and one of the public networks IP signal communication , The router is responsible for establishing a mapping relationship , So as to realize data forwarding
2.NAT The function of
NAT Not only can it solve IP The problem of insufficient address , And it can also effectively avoid intrusion from outside the network , Hide and protect computers inside the network .
Broadband sharing : This is a NAT The biggest function of the host .
Safety protection :NAT Within PCc Online to Internet. Up there , What he showed IP yes NAT Host's public network IP, therefore client Terminal PC It has a certain degree of security , The outside world is portscan ( Port scanning ) When , You can't detect the source client Terminal PC.
advantage : Saving is legal IP Address 、 Handle address overlap 、 Increase flexibility 、 Security 20
shortcoming : Delay increases 、 The complexity of configuration and maintenance 、 Some applications are not supported ( such as VPN)21
3. static state NAT
static state NAT Realize one-to-one conversion between private network address and public network address . You need to configure as many public addresses as you have private addresses . static state NAT Can't save the public address , But it can hide the internal network .
When the internal network sends a message to the external network , static state NAT The source of the message IP Replace the address with the corresponding public network address . When the external network sends a response message to the internal network , static state NAT Replace the destination address of the message with the corresponding private network address .
4. dynamic NAT
Multiple private networks IP The address corresponds to multiple public networks IP Address , One to one mapping based on address pool .
1. Configure the configuration of external network port and internal network port IP Address
2. Define legal iP Address pool
5.PAT Port multiplexing
PAT Also known as NAPT (Network Address PortTranslation), It realizes the mapping between a public network address and multiple private network addresses , Therefore, the public network address can be saved .PAT The basic principle of is to source messages with different private network addresses IP Address conversion to the same public network address , But they are converted to different port numbers for that address , So you can still share the same address .
6. PAT The role of
Change the of the packet ip Address and port number :
2. Can affect a large number of public networks IP Address .
PAT There are the following types of :
dynamic PAT, Include NAPT and IEasy IP
NAT It's a one-to-one conversion
NAPT Many to one conversion
2. static state PAT, Include NAT Server.
边栏推荐
- Memo @restcontrolleradvice and exception interception class example
- Shell Function
- Px4 source code compilation to establish its own program module
- 如何避免漏洞?向日葵远程为你讲解不同场景下的安全使用方法
- Use -wall to clear code hidden dangers
- Basic knowledge of English: Rules for the use of non predicates Part 1
- Packaging of logging logs
- shell--条件语句(if语句、case语句)
- 项目实训经历2
- Is it feasible to fix the vulnerability with one click? Sunflower to tell you that one click fix vulnerability is feasible? Sunflower to tell you that one click fix vulnerability is feasible? Sunflowe
猜你喜欢

3D打印品牌的康复骨科支具有何特别之处?

For redis under windows, it can only read but not write

FTX.US推出股票和ETF交易服务,让交易更透明

Project training experience 2

如何避免漏洞?向日葵远程为你讲解不同场景下的安全使用方法

Sunflower teaches you how to prevent denial of service attacks?

Redis快速学习

Lamp -- source code compilation and installation

QGIS series (1) -qgis (server APACHE) win10 installation

How to avoid loopholes? Sunflower remote explains the safe use methods in different scenarios
随机推荐
Gin Vue admin uses the database in the docker container
2021-06-26
1. Install redis in CentOS 7
Go language learning
Open source WebGIS related knowledge
shell的编程规范and重定向与管道操作
pymysql查询查询结果转换json
ES6新特性(入门)
正则表达式
Pymysql query result conversion JSON
shell--自定义变量与赋值
Log in to Alibaba cloud server with a key
ArcGIS for JS API (2) get the ID set of element services
Geonode GeoServer win10 installation tutorial (personal test)
Do it yourself container
Linu performance tuning: how can we alleviate the situation in the face of DDoS attacks?
向日葵教大家如何防范拒绝服务攻击漏洞?
torch加载自定义模型的问题
Sunflower: don't worry when you encounter computer vulnerabilities, understand clearly and then judge sunflower: don't worry when you encounter computer vulnerabilities, understand clearly and then ju
Problems related to compilation and training of Darknet yolov3 and Yolo fast using CUDA environment of rtx30 Series graphics card on win10 platform