The working principle of virtual private networks
Summary:1. Normally, VPN gateways adopt a dual network card structure, and external network cards use public IP addresses to access the Internet.2. Terminal A…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
1. Normally, VPN gateways adopt a dual network card structure, and external network cards use public IP addresses to access the Internet.
2. Terminal A of network one accesses terminal B of network two, and the destination address of the access packet it sends is the internal IP address of terminal B.
3. The VPN gateway of network one checks the destination address of the access packet sent by terminal A. If the destination address belongs to the address of network two, the packet is encapsulated. The encapsulation method varies depending on the VPN technology used. At the same time, the VPN gateway constructs a new VPN packet and uses the encapsulated original packet as the payload of the VPN packet. The destination address of the VPN packet is the external address of the VPN gateway of network two.
4. The VPN gateway of Network 1 sends VPN packets to the Internet. Since the destination address of the VPN packet is the external address of the VPN gateway of Network 2, the packet will be correctly routed to the VPN gateway of Network 2 through the Internet.
5. The VPN gateway of Network 2 checks the received data packet. If it is found that the packet is sent from the VPN gateway of Network 1, it can be determined as a VPN packet and unpacked. The process of unpacking mainly involves first stripping the packet header of the VPN data packet, and then reversing the data packet to restore it to its original form.
6. The VPN gateway of Network 2 sends the restored original data packet to the target terminal B. Since the destination address of the original data packet is the IP of terminal B, the packet can be correctly sent to terminal B. From the perspective of terminal B, the received packet is the same as the one sent directly from terminal A.
7. The data packet processing from terminal B back to terminal A is the same as the above process, so that the terminals in the two networks can communicate with each other.
From the above explanation, it can be found that there are two parameters that are crucial for VPN communication when processing data packets at the VPN gateway: the destination address of the original data packet (VPN destination address) and the remote VPN gateway address. Based on the VPN target address, the VPN gateway can determine which packets need to be processed by VPN. For packets that do not require processing, they can usually be directly forwarded to the higher-level router; The remote VPN gateway address specifies the destination address for sending processed VPN packets, which is the VPN gateway address at the other end of the VPN tunnel. Due to the bidirectional nature of network communication, during VPN communication, both ends of the tunnel's VPN gateway must know the VPN target address and the corresponding remote VPN gateway address.
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

