当前位置:网站首页>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 .
边栏推荐
- [DDCTF2018](╯°□°)╯︵ ┻━┻
- [cnpm] tutorial
- 20个不容错过的ES6技巧
- MFC multithreaded semaphore csemaphore critical area and mutually exclusive events
- Hyperledger fabric ledger snapshot - fast data synchronization
- Intranet learning notes (4)
- 取模软件 模拟显示验证取模数据正确性 逆向 把点阵数组bin文件转显示
- [OGeek2019]babyrop
- [image feature extraction] image feature extraction based on pulse coupled neural network (PCNN) including Matlab source code
- Deploy loglistener in tke container to collect logs to CLS
猜你喜欢
![[Proteus] Arduino uno + ds1307+lcd1602 time display](/img/96/d8c1cacc8a633c679b1a58a1eb8cb9.png)
[Proteus] Arduino uno + ds1307+lcd1602 time display

Win11分磁盘怎么分?Win11系统怎么分磁盘?

bjdctf_2020_babystack
![选择器(>,~,+,[])](/img/7e/2becfcf7a7b2e743772deee5916caf.png)
选择器(>,~,+,[])

華為雲數據庫進階學習

【图像融合】基于伪 Wigner 分布 (PWD) 实现图像融合附matlab代码

jarvisoj_level2

Description of module data serial number positioning area code positioning refers to GBK code

相机标定(标定目的、原理)

The fund management of London gold is more important than others
随机推荐
What is the mentality of spot gold worth learning from
PIP install XXX on the terminal but no module named XXX on pycharm
[frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog
[image fusion] image fusion based on NSST and PCNN with matlab code
【小技巧】使用matlab的深度学习工具箱deepNetworkDesigner快速设计
[MRCTF2020]千层套路
[learn FPGA programming from scratch -42]: Vision - technological evolution of chip design in the "post Moorish era" - 1 - current situation
简单使用Modbus转BACnet网关教程
Hubei College Upgraded to undergraduate - Hushi family planning department
Face pincher: a hot meta universe stylist
Development of IOT device end - establishment of development environment
A penetration test of c/s Architecture - Request encryption, decryption and test
The latest crawler tutorial in 2021: video demonstration of web crawling
How can genetic testing help patients fight disease?
Research on redis High Availability Mechanism
bjdctf_ 2020_ babystack
什么是CC攻击?如何判断网站是否被CC攻击? CC攻击怎么防御?
PCL calculates the area of a polygon
[image fusion] image fusion based on pseudo Wigner distribution (PWD) with matlab code
Serviceworker working mechanism and life cycle: resource caching and collaborative communication processing