当前位置:网站首页>How VPN works
How VPN works
2022-06-24 07:30:00 【Chen Bucheng I】
. Usually ,VPN The gateway adopts dual network card structure , The external network card uses the public network IP Access Internet.
2. Network one ( Suppose it's a public network internet) Terminal A Visit network 2 ( Suppose it's the company intranet ) Terminal B, The destination address of the access packet is terminal B Internal IP Address .
3. The Internet is one of them VPN The gateway receives the terminal A Check the destination address of the sent access packet , If the destination address belongs to network two , Then encapsulate the packet , The way of encapsulation depends on the VPN Different technologies are different , meanwhile VPN The gateway will construct a new VPN Data packets , And the original package after encapsulation is regarded as VPN The load of the packet ,VPN The destination address of the packet is network 2 VPN The external address of the gateway .
4. The Internet is one of them VPN The gateway will VPN The packet is sent to Internet, because VPN The destination address of the packet is network 2 VPN The external address of the gateway , So the packet will be Internet The route in is correctly sent to network two VPN gateway Network two's VPN The gateway checks the received packets , If it is found that the packet is from network one VPN From the gateway , It can be determined that the packet is VPN Data packets , And unpack the data package . The process of unpacking is to first VPN Packet header stripping , And then reverse the packet processing to restore the original packet .
5. Network two's VPN The gateway sends the restored original data packet to the target terminal B, Because the destination address of the original packet is the terminal B Of IP, So the packet can be correctly sent to the terminal B. At terminal B It seems , The packets it receives are the same as the packets it receives from the terminal A It's the same as the one sent directly .
6. From the terminal B Return to terminal A The process of packet processing is the same as above , In this way, the terminals in the two networks can communicate with each other . From the above description, it can be found that , stay VPN When the gateway processes packets , There are two parameters for VPN Communication is very important : The destination address of the original packet (VPN Destination address ) And remote VPN default gateway . according to VPN Destination address ,VPN The gateway can determine which packets are processed VPN Handle , For packets that do not need to be processed, they can be directly forwarded to the superior route ; long-range VPN The gateway address specifies the processed VPN The destination address of the packet , namely VPN The other end of the tunnel VPN default gateway . Because network communication is bidirectional , It's going on VPN Communication time , At both ends of the tunnel VPN Gateways have to know VPN The destination address and the corresponding remote VPN default gateway .
边栏推荐
- Deploy loglistener in tke container to collect logs to CLS
- 20 not to be missed ES6 tips
- [WUSTCTF2020]alison_likes_jojo
- [WUSTCTF2020]alison_ likes_ jojo
- Description of module data serial number positioning area code positioning refers to GBK code
- 华为云数据库进阶学习
- Face pincher: a hot meta universe stylist
- 【小技巧】使用matlab的深度学习工具箱deepNetworkDesigner快速设计
- More than 60 million shovel excrement officials, can they hold a spring of domestic staple food?
- Graduation season advance technology
猜你喜欢

Accessing user interface settings using systemparametersinfo

Camera calibration (calibration purpose and principle)
![Selector (>, ~, +, [])](/img/7e/2becfcf7a7b2e743772deee5916caf.png)
Selector (>, ~, +, [])

How to delete / select an input method on your computer

Dichotomous special training

Canal installation configuration

华为云数据库进阶学习

二分专题训练

使用SystemParametersInfo访问用户界面设置
![[WUSTCTF2020]爬](/img/b6/4a0582144c3125e7a0666bbbbfe29d.png)
[WUSTCTF2020]爬
随机推荐
【Proteus】Arduino UNO + DS1307+LCD1602时间显示
Ultra wideband pulse positioning scheme, UWB precise positioning technology, wireless indoor positioning application
In JS, the regular expression verifies the hour and minute, and converts the input string to the corresponding hour and minute
A case study of apiserver avalanche caused by serviceaccount
【Cnpm】使用教程
Buuctf misc grab from the doll
[机缘参悟-29]:鬼谷子-内揵篇-与上司交往的五种层次
PCL calculates the area of a polygon
MFC multithreaded semaphore csemaphore critical area and mutually exclusive events
How can genetic testing help patients fight disease?
buuctf misc [UTCTF2020]docx
Analog display of the module taking software verifies the correctness of the module taking data, and reversely converts the bin file of the lattice array to display
Cisco router configuration notes: static routing, rip, OSPF, principles combined with experiments, worth a visit!
PCL point cloud random sampling by ratio
[MRCTF2020]千层套路
How to select a third-party software testing company? 2022 ranking of domestic software testing institutions
In the era of industrial Internet, there are no more centers in the real sense, and these centers just turn tangible into intangible
【WordPress建站】6. 文章内容防复制
[learn FPGA programming from scratch -41]: vision chapter - Moore's era and Moore's law and the arrival of the post Moore Era
学会使用楼宇控制系统BACnet网关没那么难