There are two main types of VPNs:
| User-to-Network This type of VPN allows a client to use a VPN to connect to a secure network, such as a corporate intranet. | |
| Network-to-Network This type of VPN connects two networks via a VPN connection. This effectively combines two disparate networks into one, eliminating the need for a Wide Area Network (WAN). |
In this article I will explain the basics of VPNs and show you how to set up one yourself using Windows 2003 Server and Windows XP Professional.
Tunneling and VPN Protocols
In a VPN, two computers communicate through a VPN tunnel. Tunneling is the process of encapsulating packets within other packets to protect their integrity and privacy during transit. A tunnel performs such tasks as encryption, authentication, packet forwarding, and masking of IP private addresses. Think of a tunnel as a private link between the two computers; whatever one sends to the other is only visible to the other, even though it is sent through a public network like the Internet.
If you're curious about what goes on under the hood of a VPN, there are three protocols you need to know about -- PPTP, L2TP, and IPSec.
Point-to-Point Tunneling Protocol (PPTP)
This was designed by Microsoft (and other companies) to create a secure tunnel between two computers. PPTP provides authentication and encryption services and encapsulates PPP packets within IP packets. It supports multiple Microsoft networking protocols such as LAN-to-LAN and dialup connections. However, it is proprietary and the encryption is weak.
Layer 2 Tunneling Protocol (L2TP)
This works like PPTP, except that it does not include encryption. L2TP was proposed by Cisco Systems and like PPTP, L2TP supports multiple networking protocols.
IPSec
This protocol addresses the shortcomings of L2TP by providing encryption and authentication of IP packets. As such, L2TP is often used together with IPSec to provide a secure connection.
PPTP and L2TP are among the most likely proposals as the basis for a new Internet Engineering Task Force (IETF) standard.





