You are here:Home > Best VPN > VPN Theory Explanation and Complete Configuration

VPN Theory Explanation and Complete Configuration

Summary:The use of IPSec tunnels for secure data transmission over the Internet is currently the main solution for communication between the company headquart…
horizonVPN Official website sandVPN Official website VPNhood Official website hailianVPN Official website
GoduckVPN Official website Fast Wind VPN Official website Fast Orange VPN Official website(Recommend) NetShekanVPN Official website

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

The use of IPSec tunnels for secure data transmission over the Internet is currently the main solution for communication between the company headquarters and branches. Its commercial value will not be mentioned here, just looking for any document would be worth discussing for a long time. The topology of IPSec networks can be either a hub and spoke structure or a full mesh structure. In practical applications, data traffic is mainly distributed between branches and centers, with less traffic distribution between branches. Therefore, the hub and spoke structure is usually the most commonly used and more economical. Because the hub and spoke structure uses fewer point-to-point links than the full mesh structure, it can reduce line costs. In a star topology, branch to branch connectivity does not require additional communication costs. But in a star structure, communication from branch to branch must cross the center, which consumes resources from the center and introduces latency. Especially when using IPSec encryption, the center needs to decrypt on the tunnel of the sending data branch and re encrypt on the tunnel of the receiving data branch. There is also a situation where two branches of communication are in the same city, while the center is in another city, which introduces unnecessary latency. As the scale of star shaped IPSec networks (hub and spoke) continues to expand, the configuration of traditional VPNs becomes increasingly cumbersome and difficult to maintain and troubleshoot. Therefore, dynamic routing of IP packets will be very meaningful. However, there is a fundamental issue between IPSec tunnels and dynamic routing protocols. Dynamic routing protocols rely on multicast or broadcast packets for routing updates, while IPSec tunnels do not support encryption of multicast or broadcast packets. The concept of Dynamic Multipoint VPN (DMVPN) is introduced here. Two protocols will be introduced here: GRE and NHRPGRE: Generic Routing Encapsulation. Defined by IETF in RFC2784. It is a protocol that can encapsulate any other network layer protocol on top of any other network layer protocol. GRE encapsulates the payload in a GRE packet, and then forwards this GRE packet based on the transmission protocol of the actual application. I think GRE is like a Trojan shell. ^_^IPSec does not support broadcast and multicast transmission, but GRE can effectively support carrying broadcast and multicast packets to the other end, and the data packets in GRE tunnels are unicast. This means that the data packets in the GRE tunnel can be encrypted by IPSec, also known as GRE over IPSec. By combining GRE tunneling with IPSec encryption, dynamic routing protocols are used to update routing tables on routers at both ends of the encrypted tunnel. The subnet learned from the opposite end of the tunnel will include the IP address of the opposite end of the tunnel as the next hop address to the opposite end network in the routing table entry. In this way, if there is a change in the network at any end of the tunnel, the other end will dynamically learn about this change and maintain network connectivity without changing the router configuration. IPSec uses access control lists (ACLs) to match data streams of interest. When a packet matches the defined ACL, an IPSec encrypted tunnel is established. When using GRE over IPSec, the configuration of the GRE tunnel already includes the address of the opposite end of the GRE tunnel, which is also the address of the opposite end of the IPSec tunnel. So, there is no need to separately define matching ACLs for IPSec. By binding GRE tunnel with IPSec, once GRE tunnel is established, IPSec encryption will be immediately triggered. When encrypting GRE packets with IPSec, IPSec can be configured for transport mode because GRE has already encapsulated the original data packet as a unicast IP packet, and there is no need for IPSec to encapsulate another packet header.

High-speed VPN Fast VPN Preferred Accelerator VPN Reliable VPN
High quality VPN Old fashioned VPN Stable VPN(Recommend) Smooth VPN
Share with Friends: