www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / CompTIA / Network+ / Section V: Network Security / Chapter 28: Securing Network Access / Tunneling and Encryption

Tunneling and Encryption

Modern networks allow communication of remote or mobile devices to enterprise resources to improve productivity. One of the challenges of using this approach is to ensure that you provide a secure connection from the external location to the internal network. Two techniques that allow you to achieve this are tunneling and encryption over the public Internet. Details about VPNs and VPN concentrators have been covered in Chapters 16 and 21.

Some of the protocols used to set up tunneling and encryption are:

  • SSL
  • PPTP
  • L2TP
  • IPSec

 

SSL VPN

A common way of setting up a secure communication is using the Secure Sockets Layer (SSL) protocol (TCP 443), which can set up a VPN tunnel between two points. Because this is a very common protocol to use, the associated port is not likely to be blocked at some point between the two points, so this is a reliable method of setting up VPN tunnels.

SSL VPN is usually configured between a client and a site, and from an end-user perspective it can function from a browser (any operating system) or from a VPN client. SSL VPN allows functionalities such as:

  • User authentication
  • Data encryption

SSL VPN is also referred to as Web-VPN and is basically a technology that provides remote access through a gateway that can offer many different features, access methods, group configurations, and group policies. End-users can access the gateway from a wide variety of end-points. SSL VPN access can be set up in the following modes:

  • Clientless access
  • Thin client (port forwarding) access
  • Full tunnel access

Clientless mode involves the user accessing corporate resources through a Web browser that supports SSL certificates on different operating systems (Windows, Mac OS, or Linux). The user does not need to install any client software, as he has access to Web-enabled applications and file sharing services (using NFS or CIFS). The gateway will perform address and protocol conversion as well as perform content parsing and rewriting.

The thin client access method behaves differently than the clientless mode, in that it uses a Java applet and performs TCP port forwarding so you can use other services besides Web-enabled applications. You can also have TCP port forwarding with static port mapping to extend the application support beyond just Web-enabled applications. Finally, you can use SSH, Telnet, IMAP, POP3, and other protocols.

The full tunnel client mode offers extensive application support and user access by downloading a SSL VPN client. The VPN clients can be loaded through Java or ActiveX and they can operate in two modes:

  • Users can install the client and run it in workstation memory for the lifetime of the session and then clear off the machine, for example, when using public workstations
  • Users can install the VPN client permanently on a system, if they have administrative permissions

Full tunnel mode offers the most access of all the access methods because it supports all IP-based applications, not just TCP or HTTP as clientless mode does. This functions a lot like IPSec remote access VPN.

The next issue that must be analyzed involves the places that the VPN devices and firewalls will be installed. Unlike traditional designs, which included separate VPN and firewall devices, in modern networks the VPN concentrator and firewall are usually integrated into the same platform, like the ASA appliance from Cisco or other UTM devices from other vendors.

An issue security network engineers should think about is the IP addressing mechanisms to be used in a VPN solution. You can use statically configured IP pools on headend devices or you can leverage DHCP services, either inside the network or in a DMZ. When using DHCP, the recommended method is to associate a dedicated scope of DHCP addresses to the VPN headend devices.

Large enterprise organizations may want to use a RADIUS server or LDAP services to allow users single sign-on privileges. If the user device uses a clientless access method (via a Web browser), the headend device will proxy ARP on behalf of all the local subnet IP addresses, so the client will receive the traffic from the headend interface IP.

 

PPTP

Another way of bringing up a VPN tunnel is to use the Point-to-Point Tunneling Protocol (PPTP). As opposed to SSL VPN, PPTP only creates the tunnel; it does not perform any type of encryption or decryption along with that. This means that using PPTP is not enough, as you also have to run some type of encryption protocol to secure the communication.

PPTP uses different authentication methods, such as:

  • MS-CHAPv2 (Microsoft Challenge-Handshake Authentication Protocol): integrated into Windows
  • EAP-TLS (Extensible Authentication Protocol-Transport Layer Security): offers both authentication and encryption

From an encryption standpoint, PPTP can be used together with Microsoft Point-to-Point Encryption (MPPE). PPTP is one of the simplest tunneling techniques, as it can be configured to work by providing just a username and password to create the tunnel. PPTP clients are integrated in most operating systems.

 

L2TP

Layer 2 Tunneling Protocol (L2TP) is a successor to PPTP and it uses UDP port 1701. Just like PP2P, L2TP can create the tunnel but it is often used together with other protocols to ensure data encryption. One of those protocols is IPSec.

L2TP is built into a lot of operating systems (both desktop and mobile) and is often used by service providers to provide endpoint connectivity.

 

IPSec

IPSec represents a suite of protocols working together to achieve different security features in IP networks. Virtual Private Networks provide connections between devices that do not literally share a physical cable. Using VPNs, networks look like they are connected but the connection between them is just logical in nature. IPSec ensures data protection on top of those specific logical connections.

IPSec helps protect the information that is transmitted through the VPN. VPNs with IPSec can be of two main varieties:

  • Site-to-site VPNs
  • Remote access VPNs (client-to-site)

Site-to-site VPNs provide a permanent secured connection between two locations. Remote access VPNs are used when the virtual link is not always on. This is a situation where an individual needs to transfer something for a short duration of time, up to the corporate headquarters, and then the user will disconnect. Remote access VPN technologies are similar to dial-on-demand technologies, like old circuit-based technologies that functioned only after a number was dialed. The remote access connection closes after it is used and it does not remain permanently open like a site-to-site connection.

IPSec is a security suite that allows for many different degrees of security to be designed and implemented. Some situations might require strict security features to be implemented, while other situations might require the security policies to be relaxed for various reasons. The most important security mechanisms provided by IPSec are as follows:

  • Data origin authentication: ensures that the packet was sent by an authorized user
  • Data integrity: ensures that the packet was not changed or manipulated in the transit path
  • Data confidentiality: ensures that only the authorized users read the data so sensitive information is not compromised
  • Anti-reply: protects against DoS attacks that send the same packet multiple times

The IPSec VPN tunnel is built in two phases:

  • ISAKMP/IKE negotiation
  • Data transmission using negotiated IPSec SA

The ISAKMP/IKE negotiation phase is not very secure and it represents an initial security phase in which details about how the data will be secured are discussed. The secure VPN tunnel is built after this initial phase. ISAKMP/IKE negotiation serves as a mechanism for transferring the IPSec SA (Security Associations, which are forms of agreements on different IKE/IPSec parameters) and is composed of two distinct phases:

  • Phase 1: ISAKMP SA setup
  • Phase 2: IPSec SA negotiation

ISAKMP (Internet Security Association and Key Management Protocol) and IKE (Internet Key Exchange) establish an initial secure negotiation channel used for the initial exchange of parameters. The ISAKMP/IKE goals include:

  • Authentication of the parties and establishment of a secure negotiation channel (Phase 1, ISAKMP SA)
  • Perform additional negotiation (Phase 1, including Xauth and mode configuration)
  • Negotiate data protection parameters (Phase 2, IPSec SA)

In the first phase, ISAKMP uses a technology called Diffie-Hellman (DH), which can generate cryptographic keys to ensure that the communications are secure. Phase 1 can operate in two modes:

  • Main mode
  • Aggressive mode

Main mode takes longer to negotiate and hides the parties’ identities by performing the DH exchange ahead of time. The aggressive mode takes less time to negotiate but does not provide the same level of security as the main mode because it does not hide the parties’ identities. ISAKMP aggressive mode permits flexible authentication with pre-shared keys (e.g., Easy VPN).

The ISAKMP initial Phase 1 negotiation process provides several authentication mechanisms to verify the parties’ identities. These mechanisms offer different degrees of security, as follows:

  • Pre-Shared Keys (PSK): Using this technology, hosts know the same key via an out-of-band messaging system. This is the least secure authentication mechanism.
  • RSA signatures: Using this method, hosts trust a certificate authority for authentication. This is a much more secure mechanism than using PSK because a trusted third-party authority controls the process by verifying the identity of each party involved in the authentication process.
  • RSA encrypted nonces (IOS only): This technology uses RSA keys to hash random numbers (nonces) and other values.

Once ISAKMP Phase 1 is completed, you have to decide how the data will actually be secured. ISAKMP SA determines how the secure negotiation channel will be established and the ISAKMP SA peers must agree on the following parameters:

  • Authentication method: PSK (weak), RSA signatures (strong)
  • Encryption type: DES (weak), 3DES (medium), AES (strong)
  • Hash algorithm: MD5 (weak), SHA (strong)
  • Diffie-Hellman group: 1, 2, or 5

After ISAKMP Phase 1 is completed, a secure communication channel exists between the IPSec peers and the IPSec SA can be created. ISAKMP Phase 2 can be implemented based on two different technologies:

  • Authentication Header (AH)
  • Encapsulated Security Payload (ESP)

AH is rarely used in modern networks because it can only perform authentication, without securing the data. On the other hand, the ESP approach uses both authentication and encryption and is the preferred method to be used in ISAKMP Phase 2.

When you design IPSec VPNs and provide all the criteria for Phase 1 and Phase 2, you must define a lifetime for the entire negotiation process. ISAKMP and IPSec SAs have a definable lifetime and when this expires, the processes at Phase 1 and Phase 2 will rerun. A shorter lifetime means that you have more security and more overhead, and a longer lifetime implies less security and less overhead. This is because if the process is alive for a long period of time, a possible attacker also has a lot of time to hack the connection (by solving the algorithms).

The IPSec SA re-keying process can also involve Perfect Forward Secrecy (PFS), which is a technology that allows the re-keying to take place while the IPSec tunnel is in place. The PFS mechanism adds extra CPU overhead and it is used to run additional DH exchanges so the IPSec SA keys are not derived from ISAKMP SA keys.

All the details covered above confirm that IPSec VPNs are based on a complex suite of technologies, and for each of these technology areas you need to design the appropriate level of security. You always need to balance things like the SA lifetime and the number of IPSec tunnels you create against the router’s ability to handle these resource-intensive processes. An important thing to remember is to always monitor the network devices to make sure that their resource utilization stays within normal limits.

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.