Virtual Private networks (VPNs) can extend a local area network (LAN) over the Internet to remote networks and remote client machines. A VPN uses the Internet to route LAN traffic from one location to another by encapsulating the data inside encrypted IP packets. The encrypted packets are unreadable by intermediary Internet devices and can contain any kind of network communications - such as file and printer sharing, e-mail, remote procedure calls, and database access.
VPNs can be setup using server computers, firewalls or routers. Client access to the VPN can be made using client-side VPN software or by connecting to an ISP that supports the VPN protocol.
VPNs solve the problem of accessing private servers over the Internet through a combination of IP encapsulation, cryptographic authentication and data payload encryption.
IP Encapsulation
IP encapsulation provides a way to protect the data while in transit between the remote client and the private LAN. computers outside the VPN should not be able to snoop on the traffic exchanged between the remote client and private server or be able to insert their own data into the communication stream. This is accomplished by creating what people refer to as a private and protected "tunnel" through the public Internet. When an IP packet contains another IP packet this is called IP encapsulation, and it provides a mechanism to refer to a host within a private network when a direct network connection may not exist. When this is combined with data encryption then we've effectively created our virtual tunnel.
Cryptographic Authentication
Cryptographic Authentication is used to securely validate the identity of the remote client so that the private LAN can determine what level of security should be applied to that user. VPNs use the authentication process to determine whether or not a remote user can participate in the encrypted tunnel, and for exchanging the public key that will subsequently be used for data encryption.
Data Payload Encryption
Data Payload Encryption uses a public key to encrypt the data field of the IP encapsulated packet. That is, data payload encryption is exactly like normal IP except that the data has been encrypted. It does not encrypt the header information, so details of the private network can be gleaned by analyzing the header information.
advantages and Disadvantages
Compared to Wide Area networks (WANs), VPNs offer some advantages but, also, present some disadvantages.
advantages - cheaper than WANs - easier to setup than WANs Disadvantages - slower than WANs - less reliable than WANs - less secure than isolated WANs
Example
Although there are a number of ways to configure a VPN here is an example of one scenario that is fairly common -- an employee wishes to work from home and exchange data between their home machine and a private web server on the corporate network. There are two important processes here -- the process of negotiating and building a VPN session, and the process of protecting and handling the data within an existing VPN connection. Here I'll briefly describe the latter and leave the former as a potential topic for a future article.
Suppose we have the following:
(a) a VPN client with a public IP address of 66.123.77.196 and a private IP address of 192.168.0.202 (provided by the corporation's DHCP server).
(b) a VPN server on the corporate network with two interfaces -- a public interface to the Internet that uses 168.156.192.75 and an interface to the private network with an IP of 192.168.0.101
(c) a web server on the corporate network with an IP address of 192.168.0.102
Prior to creating a VPN session the client host has one interface and a connection to the Internet through an ISP. The client machine can communicate with any host on the Internet but can not access the web server on the private network 192.168.0.X. After the VPN session has been created then the client host has 2 interfaces -- the original interface to the Internet and a new VPN interface. The new VPN interface becomes the default gateway -- that is, all packets will initially travel through the new interface. However, the VPN interface is not a physical network card -- it doesn't physically connect to anything. The VPN interface is used to encrypt and encapsulate packets that are subsequently sent as the payload of a new, outer packet. It is the outer packet that is sent out over the Internet (using the original interface) to the corporate VPN server.
The inner packet will use the client's private IP of 192.168.0.202 as the source IP address and the web server's private IP of 192.168.0.102 as the destination address. The VPN client encrypts the data field of the inner packet and this inner packet then becomes the payload of an outer packet. The outer packet uses the client's public IP of 66.123.77.196 as the source IP address and the public interface of the VPN server (168.156.192.75) as the destination IP. The IP encapsulated packet is then sent to the ISP and out over the Internet.
When the IP encapsulated packet reaches the VPN server at the edge of the private network it will unwrap the inner packet and decrypt its data field. Since the VPN server also has an interface to the private network it will then be able to forward the inner packet to the destination web server. When data is sent from the web server back to the client then the process is reversed -- that is, the VPN server handles the encryption/encapsulation and the VPN client is responsible for unwrapping/decoding.
Steve Leytus is a senior software engineer and develops applications for NutsAboutNets.com. For more information about low cost, PC-based diagnostic tools for installing, optimizing and trouble-shooting 802.11 (Wi-Fi) wireless networks please visit http://www.NutsAboutNets.com
Yoga DvdOct 31, 2007 Nov 1, 2007 Nov 2, 2007 Nov 3, 2007 Nov 4, 2007 Nov 5, 2007 Nov 6, 2007 Nov 7, 2007 Nov 8, 2007 Nov 9, 2007 Nov 10, 2007 Nov 11, 2007 Nov 12, 2007 Nov 15, 2007 Nov 18, 2007 Nov 20, 2007 Nov 21, 2007 Nov 22, 2007 Nov 23, 2007 Nov 24, 2007 Nov 25, 2007 Nov 26, 2007 Nov 27, 2007 Nov 28, 2007 Nov 29, 2007 Nov 30, 2007 Dec 1, 2007 Dec 2, 2007 Dec 3, 2007 Dec 4, 2007 Dec 5, 2007 Dec 6, 2007 Dec 7, 2007 Dec 8, 2007 Jan 14, 2008 Jan 15, 2008 Jan 16, 2008 Jan 17, 2008 Jan 18, 2008 Jan 20, 2008 Jan 21, 2008 Jan 22, 2008 Jan 23, 2008 Jan 24, 2008 Jan 25, 2008 Jan 27, 2008 Jan 28, 2008 Jan 29, 2008 Jan 30, 2008 Jan 31, 2008 Feb 1, 2008 Feb 4, 2008 Feb 7, 2008 Feb 8, 2008 Feb 9, 2008 Feb 10, 2008 Feb 11, 2008 Feb 12, 2008 Feb 13, 2008 Feb 14, 2008 Feb 15, 2008 Feb 16, 2008 Feb 17, 2008 Feb 18, 2008 Feb 19, 2008 Feb 20, 2008 Feb 21, 2008 Feb 22, 2008 Feb 23, 2008 Feb 25, 2008 Feb 26, 2008 Feb 27, 2008 Feb 28, 2008 Feb 29, 2008 Mar 1, 2008 Mar 2, 2008 Mar 3, 2008 Mar 4, 2008 Mar 5, 2008 Mar 6, 2008 Mar 7, 2008 Mar 8, 2008 Mar 9, 2008 Mar 10, 2008 Mar 11, 2008 Mar 12, 2008 Mar 13, 2008 Mar 14, 2008 Mar 15, 2008 Mar 16, 2008 Mar 17, 2008 Mar 18, 2008 Mar 19, 2008 Mar 20, 2008 Mar 21, 2008 Mar 22, 2008 Mar 23, 2008 Mar 27, 2008 Mar 28, 2008 Mar 29, 2008 Mar 30, 2008 Apr 1, 2008 Apr 2, 2008 Apr 3, 2008 Apr 4, 2008 Apr 5, 2008 Apr 6, 2008 Apr 7, 2008 Apr 9, 2008 Apr 10, 2008 Apr 11, 2008 Apr 12, 2008 Apr 13, 2008 Apr 14, 2008 Apr 15, 2008 Apr 16, 2008 Apr 17, 2008 Apr 18, 2008 Apr 19, 2008 Apr 20, 2008 Apr 21, 2008 Apr 22, 2008 Apr 23, 2008 Apr 24, 2008 Apr 25, 2008 Apr 26, 2008 Apr 27, 2008 Apr 28, 2008 Apr 29, 2008 Apr 30, 2008 May 1, 2008 May 2, 2008 May 5, 2008 May 6, 2008 May 8, 2008 May 9, 2008 May 10, 2008 May 11, 2008 May 14, 2008 May 15, 2008 May 16, 2008 May 17, 2008 May 24, 2008 May 25, 2008 May 28, 2008 May 29, 2008 May 31, 2008 Jun 1, 2008 Jun 2, 2008 Jun 4, 2008 Jun 6, 2008 Jun 7, 2008 Jun 8, 2008 Jun 11, 2008 Jun 14, 2008 Jun 15, 2008 Jun 16, 2008 Jun 18, 2008 Jun 20, 2008 Jun 21, 2008 Jun 24, 2008 Jun 28, 2008 Jun 30, 2008 Jul 3, 2008 Jul 7, 2008 Jul 9, 2008 Jul 10, 2008 Jul 11, 2008 Jul 12, 2008 Jul 16, 2008 Jul 18, 2008 Jul 19, 2008 Jul 20, 2008 Jul 22, 2008 Jul 23, 2008 Aug 3, 2008 Aug 5, 2008 Aug 7, 2008 Aug 8, 2008 Aug 9, 2008 Aug 11, 2008 Aug 14, 2008 Aug 15, 2008 Aug 22, 2008