
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Topic 3 Virtual Private Network (VPN) Topic lessons:
Lesson Objectives When a company tries to connect its private networks together using a public resource, meaning the wires and routers that make up the Internet, it has no control over the other people who are using the public resource. This leaves the company susceptible to security issues when the data is transmitted between private networks over the Internet. The older solution is to build a dedicated and direct connection, such as a leased line, between private networks that can only be used by the authorized users of the company. Many companies have chosen this route because of the need for security and reliability in connecting their remote offices. It is reliable, fast, but it is very expensive to build and maintain this connection even the sites are very close to each other. Virtual private network (VPN) provides a solution for an organization to use a public network infrastructure, such as the Internet, to offer secure and reliable data communication between its private networks at different geographic locations. This lesson provides an overview of the basic principles which are important to understand VPN technology, including the benefit, different types of VPN and the security mechanisms used by VPN. After reading this lesson, you should be able to: Define a VPN and explain how a VPN works Highlight VPN benefits Define remote-access VPN and site-to-site VPN Overview four security mechanisms of a VPN What is a VPN? VPN stands for Virtual Private Network. It is a network infrastructure constructed over a public infrastructure (i.e. the Internet) to deliver private network services. A VPN permits companies, through the use of security mechanisms such as encryption and tunneling, to establish secure and encrypted connections between private networks over the Internet. Figure 3-1 shows a typical VPN. It has a single central network at the corporate office of a company, a single LAN (local area network) at its remote office, a single LAN at its partner’s office, and individual users connecting from out in the field or working from home. The VPN enables other LANs and individual users to communicate with the central network in a secure and reliable manner. Instead of using a dedicated, real wire connection such as a leased line, a VPN uses the Internet as the medium to build “virtual” connections that link the company’s central network to the remote sites or mobile employee. The traffic is encrypted for confidentiality and then "wrapped" with enough networking information for the intervening machines on the virtual connections to pass it
Internet as the medium for transporting data, while maintaining the privacy of communications to ensure only authorized users can access the network and the data cannot be intercepted. It completely hides you from others on the public network infrastructure. Scalability – VPN that utilizes the Internet enables companies to add large amount of capacity without adding significant infrastructure. A VPN can grow to accommodate more users and different locations as long as the Internet access is available. Adding additional components to a VPN infrastructure is much easier than a lease line system previously used by many companies. Flexibility – VPN allows a company to keep its employees and partners securely connected to central network resources no matter where they are. It provides access to the entire network with any-to-any connectivity. VPN can be developed with different applications such as Full-Mesh topology for voice and Hub-and-Spoke for Internet access. The geographic locations of each office matter little in the creation of a VPN. Cost effectiveness – VPN helps to reduce connectivity charges and operational costs due to the sharing of Internet infrastructure. It enables network connections between sites by utilizing Internet to connect remote offices and remote users to the main corporate site. The cost of traditional lease lines, by contrast, can increases dramatically as an organization grows with more remote users and offices added to its corporate network. VPN Types There are two common types of VPN networks: remote access and site-to-site. Remote Access VPN A remote access VPN allows remote employee and telecommuters to securely connect to the company’s corporate network inexpensively using the Internet or an Internet Service Provider’s (ISP’s) backbone. It is also called a virtual private dial-up network (VPDN). In the past, the company supported remote users through a toll-free call to reach the company’s private network directly. With the advent of VPN, the remote users can make a local call to their ISP and use the VPN client software on their computers to access the company’s private network. They can basically access the company via the Internet from wherever they are. Remote-access VPNs permit secure, encrypted connections between a company's private network and remote users and save the expenditures of using toll-free numbers. For instance, a company with hundreds of sales people in the field would greatly benefit from a remote-access VPN. Site-to-Site VPN
Site-to-site VPN can be used to connect a company’s multiple fixed sites, such as remote offices and central offices, over the Internet. It has replaced a lease line or frame relay connection often used previously by companies to connect sites. There are two types of site-to-site VPN: Intranet VPN – An intranet VPN is built to connect all of a company’s remotes sites to be a single private network where companies can share information with employees and others with authorization. Extranet VPN – An extranet VPN is built to connect a company with other companies that it has a working relationship, such as a partner, supplier or customer. This allows all of the various companies to work in a shared environment with controlled network access. VPN Security Mechanisms A VPN generally uses the following security mechanisms to keep the connection and data secure: firewalls, encryption, IPSec, and AAA server. Firewall-based VPN A firewall provides a strong barrier between your private network and the Internet. A firewall-based VPN can manage the VPN network, terminate the VPN sessions, and also take advantage of the firewall’s built-in security mechanisms, such as restricting access to the internal network. It may also perform network address translation from a public IP address to the corporate office private IP address, and serve up real-time alarms and extensive logging. The existing firewall systems can be enhanced to support VPN services. Encryption Encryption ensures privacy and confidentiality of information during its transit over the VPN. It is the process of taking all the data that one computer is sending to another and encoding it into a form that only the other computer will be able to decode. Encryption is the security mechanism that provides the ‘P’ (privacy) in VPN. In a VPN network, the data is encrypted by using different encryption protocols at the sending end and decrypted at the receiving end. An additional level of security involves encrypting not only the data, but also the originating and receiving network addresses. Popular encryption methods include Data Encryption Standard (DES), Triple DES (3DES), and Blowfish. IPSec Internet Protocol Security (IPSec) is a security protocol used by most VPNs to set up private connections that span the Internet between the separate company sites. It is
medium such as the Internet to establish a secure, private connection with a central network. With a VPN deployed across the Internet, virtual private connections can be established from almost anywhere in the world. A wide variety of VPN technologies are deployed today. This lesson will discuss components needed in a VPN implementation and two different types of VPN. It will also talk about Cisco’s VPN solution in building these two types of VPN. After reading this lesson, you should be able to: Discuss the basic components of a VPN Describe how remote-access VPN and site-to-site VPN work Introduce Cisco’s VPN solutions VPN Components There are variations of VPN implementations depending on whether the VPN is managed by the customer or the service provider. In all cases, the VPN comprises two endpoints (peers) that may be represented by routers, firewalls, client workstations, or servers. Specifically, the following options are available for remote users or remote sites to implement a VPN: Software VPN client access option used by remote users to build VPN connections (i.e. Cisco VPN software client) Remote-site firewall option used by remote sites to support firewalling function and VPN connectivity to corporate networks Hardware VPN client option used by remote sites for VPN connectivity to corporate networks The following options are available in corporate main network to implement a VPN: Dedicated VPN server for remote-access VPN (e.g. Cisco VPN concentrator) VPN router to route traffic and terminate VPN sessions Firewall with VPN functionality (e.g. Cisco PIX firewall) The company configures the equipment at each end so that data can be transmitted over VPN connections between two VPN peers with privacy. Note that a VPN does not provide complete end-to-end security between user applications and server applications. Antivirus software, system patches, additional layers of encryption to finish the link between user applications and server applications are still required for system security. In addition, firewalls and other security measures are still recommended. The Remote Access VPN model
A remote-access VPN refers to the implementation in which individual remote users access the corporate network via their PCs. A remote-access VPN follows a client and server approach. All the remote user requires is a computer with VPN client software and connectivity to the Internet or ISP network via a dial-in or Ethernet connection. VPN clients authenticate users, encrypt data, and manage VPN connections and disconnections with VPN servers located on corporate networks. Computer Internet Application VPN Server Server User’s machine VPN Client Corporate Office LAN VPN connection Tunnel Figure 3-2 Remote access VPN model Figure 3-2 illustrates a remote-access VPN model to support a remote user to access an application server (e.g. web server) on the corporate office LAN. The remote user is connected to the Internet through either dial-up or Ethernet connection. The VPN client on the user’s computer establishes a secure VPN connection to the VPN server maintained at the corporate network. The request from the user is encrypted and then sent to the VPN server through the VPN connection. The data is encrypted until it reaches the VPN server. The VPN server then decrypts the received data and forwards it on to the target application server. Thus the remote user can communicate with the application server just as securely over the public network as if it resided on the internal corporate LAN. From the user’s perspective, the VPN connection is a point-to-point connection between the user’s computer and the company’s application server. However, the information that the user sends out will lose its VPN level of protection when the VPN server receives it and sends it along to the application server. After that point, security is the user's and the
Cisco has VPN products to support both remote-access VPN and site-to-site VPN. For remote access VPNs, there are Cisco VPN 3000 Series Concentrators, the PIX Firewall and the Cisco VPN client. For site-to-site VPNs, there are Cisco VPN routers and the PIX Firewall. Cisco Remote Access VPNs POP POP Internet Computer Computer Computer Computer Mobile user Small office of customer Hardware VPN client Telecommuter Cisco VPN software client Cisco Concentrator Cisco VPN software client Figure 3-4 Remote access VPNs – Cisco VPN client and Concentrator In a remote-access VPN model as shown in figure 3-4, the mobile user and telecommuter have Cisco VPN software client loaded on their PCs. The customer has a standalone Cisco hardware client located in its small office. On the corporate end, a Cisco Concentrator is placed to function as a VPN server. The Concentrator can communicate with both Cisco VPN software client and Cisco Hardware client. Note that a small Cisco Pix Firewall can act as a VPN server as well. VPN connections are formed from the VPN client to the VPN server (i.e. Cisco Concentrator). The Cisco VPN client allows secure connection between client machines and the VPN server. The VPN server terminates VPN connections initiated by remote users running Cisco VPN software client on their PCs. This flexibility makes it possible for remote or mobile users, such as sales people on the road or telecommuters, to access their headquarters intranet where critical data and applications exist. The VPN server can also terminate VPN tunnels initiated from customer’s VPN hardware client to enable customers with limited access to the company’s corporate resource. VPN Concentrator series is built specifically for creating a remote-access VPN with the most advanced encryption and authentication techniques available. It authenticates individual remote users and terminates their VPN connections. It includes components
that enable users to easily increase capacity and throughput. The concentrator series is offered in models suitable for everything from small businesses with up to 100 remote- access users to large organizations with up to 10,000 simultaneous remote users. Cisco Site-to-Site VPNs Cisco provides a suite of VPN-optimized routers and PIX Firewall 500 series to cover the entire spectrum of VPN site-to-site applications. Cisco VPN-optimized routers from the 800 series to the 7200 series routers can be scaled to meet different VPN requirements and network sizes, from small-office/home-office access through central-site VPN aggregation, to large-scale enterprise needs. VPN-optimized routers provide VPN solutions for hybrid VPN environment where modularity, port density, and flexibility are required for private WAN aggregation and other classic WAN applications. As shown in figure 3-5, these routers run the range of VPN applications from small offices/home offices with the Cisco 800/900 series; to small branch office connectivity with Cisco 1700/2000 series; to enterprise partner branch with Cisco 3600/3700 series; and to enterprise headquarters high-end VPN connectivity with Cisco 7100, 7200, 7400 series routers. Internet Remote Office 1700 / 2000 Series Parnter Office 3600 / 3700 Series Building 1 Building 1 Building 1 Corporate Office 7100 / 7200 / 7400 Series small office/ home office 800 / 900 Series Extranet Intranet Figure 3-5 Site-to-Site VPNs – Cisco Routers Cisco secure PIX (private Internet exchange) firewall can be used in remote site. It combines dynamic network address translation, proxy server, packet filtration, firewalling and VPN capabilities in a single piece of hardware. The primary role of the PIX firewall is security while the secondary role is terminating VPN traffic. It has the ability to handle a variety of protocols for extreme robustness and performance. The 500 series PIX firewall product is best positioned to satisfy the security requirements.
Basically, IPSec provides security by building tunnels between two peers. You define which packets are considered sensitive and should be sent through these secure tunnels. When the IPSec peer sees such a sensitive packet, it encapsulates a packet by wrapping another packet around it. This wrapped traffic forms a secure tunnel through which the packet is sent to the remote peer across an otherwise unsecured network. IPsec has two main framework protocols: Authentication Header (AH), which essentially allows authentication of the sender of data, and Encapsulating Security Payload (ESP), which supports both authentication of the sender and encryption of data. ESP and AH can either be used together or separately, depending on the environment IPSec is not bound to any specific encryption or authentication algorithms, keying technology, or security algorithms. It allows for newer and better algorithms to be implemented without patching the existing IPSec standards. IPSec Security Services IPSec provides four critical security services. Confidentiality (encryption) Internet Encryption algorithm Encrypt Encryption algorithm Decrypt Encryption key Decryption key 2 hDxMoN 97 IAB U 45 TPPotVBnO Alice Login: alm 102 Password: dbd 3 lop Alice Login: alm 102 Password: dbd 3 lop 2 hDxMoN 97 IAB U 45 TPPotVBnO Figure 3-6 Confidentiality (Encryption) Confidentiality protects the privacy of information being exchanged between communicating peers. Clear text data transported over the public Internet can be intercepted and read. In order to keep the data private, the sender can encrypt the packets before transmitting them across a network. Encryption is a technique that scrambles information (so that it is difficult or impossible to read) and unscrambles information (so that it can be read again). For encryption to
work, both the sender and receiver need to know the rules used to transform the original message into an unreadable cipher-text. Rules are based on an encryption algorithm and a key. An encryption algorithm is a repeatable technique for scrambling (encrypting) and unscrambling (decrypting) information that can be performed by people or computers. A key is a secret code that is used by the encryption algorithm to create a unique version of the cipher-text. There are two types of encryption keys: symmetric and asymmetric. With symmetric key encryption, each peer uses the same key to encrypt and decrypt the data. With asymmetric key encryption, the local end uses one key to encrypt, and the remote end uses another key to decrypt the traffic. For example as shown in figure 3-6, a file containing login and password information for a user Alice needs to be sent across the Internet. At the local end, the document is encrypted by an encryption algorithm combined with a key. The output is unreadable cipher-text. The cipher-text is then sent through the Internet. At the remote end, the message is recombined with a key and sent back through the encryption algorithm. The output is the original document in clear-text. Data integrity Integrity ensures that the data is not changed or tampered in any way during transmission over the public Internet. There are the following three technologies to guarantee integrity of the data: One-way hash functions – A hash function is a one-way algorithm that transforms an arbitrarily large message into a unique fixed-length number (called hash or hash value). Hashing is not an encryption and this process is irreversible, meaning it is computationally impossible to derive the original message from the hash. For example, for a message 'LOGIN' L = [0, 1, 0, 0, 1, 1, 0, 0] O = [0, 1, 0, 0, 1, 1, 1, 1] G = [0, 1, 0, 0, 0, 1, 1, 1] I = [0, 1, 0, 0, 1, 0, 0, 1] N = [0, 1, 0, 0, 1, 1, 1, 0] A hash value can be generated by XOR-ing each byte of the message, that is L XOR O XOR G XOR I XOR N. With XOR operation,
the sender is authenticated. It is used during the initial establishment of a VPN tunnel to authenticate both ends to the tunnel. There are two common digital signature algorithms: RSA and Directory System Agent (DSA). In VPN networking, it is necessary to authenticate the device on the other end of the VPN tunnel before the communication path is considered secure. This is called peer authentication. There are three peer authentication methods. Pre-shared keys – Manually enter a secret key value into each peer to authenticate the peer. RSA signatures – Uses the exchange of digital certificates to authenticate the peers RSA encrypted nonces – Uses the RSA encryption public key cryptography standard. Each peer generates a random number (nonce) and encrypts it in the other party’s RSA public key. The nonces are then exchanged between peers. The two nonces are used during the peer authentication process. Anti-replay protection Anti-replay protection verifies that each packet is unique, not duplicated. IPSec packets are protected by comparing the sequence number of the received packets and a sliding window on the destination host. The sequence number indicates the number of packets sent over the security tunnel for the communication. The destination host checks the sequence number against the sliding window to verify if a packet is considered late or duplicate. Late and duplicate packets are dropped. Lesson Wrap-UP IPSec provides numerous security features that enable encrypted communication between users and devices. It is ideally positioned to enforce corporate network security and can be implemented transparently and seamlessly into the network infrastructure. IPSec security headers are inserted between the standard IP header and the upper-layer data (e.g. a TCP packet), and therefore any network service or user applications that use IP (e.g. Telnet and FTP) can use IPSec without modifications. Also, IPSec traffic can pass transparently through existing IP routers on the Internet. Now that you have completed this lesson, you should be able to: Define IPSec and explain basic concepts of IPSec Explain four critical IPSec security services Lesson 5 IPSec Security Protocols Lesson Objective
The origin authentication and integrity functions are achieved by applying a keyed one- way hash function to the packet to create a hash (AH). The AH is combined with the original message and transmitted. Changes in any part of the packet that occur during transit are detected by the recipient when it performs the same one-way hash function on the received packet, and compares the value of the hash that the sender has supplied. By re-computing AH using the received message, and comparing it with the hash value received, the receiver can verify if the message has been altered or not during transit. As shown in figure 3-8, AH works as follows:
Computer Computer Internet VPN site 1 VPN site 2 VPN router VPN router IP Header Data IP Header Data New IP Header ESP Header IP Header Data ESP Trailer ESP Auth Encrypted Authenticated Figure 3-9 Authenticated ESP With authenticated ESP, IPSec first encrypts the payload using one symmetric key, and then sends the encrypted payload with a second symmetric key through a hash algorithm, such as HMAC-SHA1 or HMAC-MD5, to calculate an ESP authentication value. The authentication value is used to provide origin authentication and data integrity for the data payload. It is appended to the end of the packet as shown in figure 3-9. The recipient computes its own authentication value for the encrypted data payload using the second symmetric key and the same algorithm. The recipient compares the result with the transmitted authentication value. If the values match, the recipient then decrypts the encrypted portion of the packet with the first symmetric key and extracts the original data. IP Header AH Header ESP Header Data ESP Trailer Encrypted Authenticated Nested ESP in AH Figure 3-10 Nested ESP in AH The second method allows an ESP packet to be nested within an AH packet as shown in figure 3-10. For example, a 3DES ESP packet can be nested within an HMAC-MD packet. IPSec first uses 3DES to build an ESP packet with the data payload encrypted using a symmetric key. IPSec then nests the ESP packet within an AH packet, using a second symmetric key. All the contents of the packet are authenticated, except the mutable fields of the IP header. Alternatively, ESP may also enforce anti-replay protection by requiring that a receiving host set the reply bit in the header to indicate that the packet has been seen.