当前位置:网站首页>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 .
边栏推荐
- 2、 What is the principle of layer 3 and 4 switching technology? Recommended collection!
- 自动化测试是什么?什么软件项目适合自动化测试?
- 二分专题训练
- [Proteus] Arduino uno + ds1307+lcd1602 time display
- PCL 点云按比率随机采样
- 前缀和专题训练
- [image fusion] image fusion based on directional discrete cosine transform and principal component analysis with matlab code
- [image fusion] image fusion based on NSST and PCNN with matlab code
- [WUSTCTF2020]爬
- What is automated testing? What software projects are suitable for automated testing?
猜你喜欢

与(&&)逻辑或(||),动态绑定结合三目运算

取模软件 模拟显示验证取模数据正确性 逆向 把点阵数组bin文件转显示

Leetcode probability interview shock series 11~15

【帧率倍频】基于FPGA的视频帧率倍频系统verilog开发实现
![[tips] use the deep learning toolbox of MATLAB deepnetworkdesigner to quickly design](/img/74/f615191715a9ac58a8546f8d1e8f8d.png)
[tips] use the deep learning toolbox of MATLAB deepnetworkdesigner to quickly design

20 not to be missed ES6 tips

【Vulhub靶场】】zabbix-SQL注入(CVE-2016-10134)漏洞复现
![[OGeek2019]babyrop](/img/74/5f93dcee9ea5a562a7fba5c17aab76.png)
[OGeek2019]babyrop

What are the dazzling skills of spot gold?

bjdctf_2020_babystack
随机推荐
buuctf misc 从娃娃抓起
【图像分割】基于形态学实现视网膜血管分割附matlab代码
[WUSTCTF2020]爬
[DDCTF2018](╯°□°)╯︵ ┻━┻
How to select a third-party software testing company? 2022 ranking of domestic software testing institutions
RDD basic knowledge points
【帧率倍频】基于FPGA的视频帧率倍频系统verilog开发实现
利用微搭低代码实现级联选择
What is the mentality of spot gold worth learning from
Cisco router configuration notes: static routing, rip, OSPF, principles combined with experiments, worth a visit!
华为云图引擎服务
[OGeek2019]babyrop
Precipitation of architecture design methodology
What is automated testing? What software projects are suitable for automated testing?
MySQL enable binlog
捏脸师: 炙手可热的元宇宙造型师
jarvisoj_level2
两个链表的第一个公共节点_链表中环的入口(剑指offer)
The first common node of two linked lists_ The entry of the link in the linked list (Sword finger offer)
[GUET-CTF2019]zips