Home > VPN gateway router configuration using transform sets
How-To:
EMAIL THIS

VPN gateway router configuration using transform sets

01 Aug 2008 | Michael J. Martin

Network security news, advice and technical information
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

Implementing IPsec VPN gateways on Cisco routers involves a number of different configuration elements. In addition to the ISAKMP and IKE configuration covered in previous articles in this series, transform set definitions and crypto maps are part of configuring gateways that will support Cisco software VPN client connections.

Read our entire series of step-by-step articles on building Cisco IPsec VPNs
IPsec/ISAKMP utilizes a two-phase negotiating process. The first phase authenticates the peers, and the second phase negotiates the algorithms (i.e., DES/3DES) and protocols (ESP/AH) the peers will use to protect data communications. Cisco IOS devices use transform set definitions to create IPsec security protocol/algorithm sets. These definition sets are then assigned to crypto map sequence entries. The VPN gateway (router) then provides these definition sets during the Phase 2 security association (SA) negotiation. If, however, the two peers cannot find a mutually acceptable set of security protocols to utilize, the SA negotiation will fail and the IPsec connection will not be established.

A transform set has three configuration elements: data encryption, data authentication, and encapsulation mode. The data encryption and authentication definitions are created with the configuration command <crypto ipsec transform-set {transform set name} {data encrypt} {data auth} comp-lzs>. The last option, "comp-lzs," enables IP compression. Once the transform set is created, you are dropped into a sub-configuration mode that allows you to define the encapsulation mode to be either tunnel mode, the default, which encrypts the whole IP packet, or transport mode, which encrypts only the data portion of the packet. The sub-configuration command is <mode {transport | tunnel}>. Here are the various encryption options available for IPsec ESP transform sets:

Data Encryption Data Authentication Security Service
esp-3des esp-md5-hmac/esp-sha-hmac 168-Bit Encryption/Authentication
esp-null esp-md5-hmac/esp-sha-hmac No Encryption/Authentication
esp-3des esp-md5-hmac/esp-sha-hmac 56-Bit Encryption/Authentication
esp-aes 128 esp-md5-hmac/esp-sha-hmac 128-Bit Encryption/Authentication
esp-aes 192 esp-md5-hmac/esp-sha-hmac 192-Bit Encryption/Authentication
esp-aes 256 esp-md5-hmac/esp-sha-hmac 256-Bit Encryption/Authentication

Here is a transform set configuration example:

outlan-rt02(config)#crypto ipsec transform-set AES-192-SHA-COMZ esp-aes 192 esp-sha-hmac comp-lzs
outlan-rt02(cfg-crypto-trans)#mode transport 
outlan-rt02(cfg-crypto-trans)#exit
outlan-rt02(config)#

Once you have built a transform set, you may need to make adjustments. Changes to transform sets that have been associated with a crypto map (and are being actively used to protect traffic) will only apply to post-change SAs. Any active SAs will re-negotiate to use the new set definition. To force a re-negotiation, a given SA can be cleared using <clear crypto sa>. To see the transform sets configured on the router, use <show crypto ipsec transform-set> You can see which transform set has been selected by looking at the IPsec SA. Use <show crypto ipsec sa peer x.x.x.x>:

inbound esp sas:
      spi: 0x26886B9F(646474655)
        transform: esp-3des esp-md5-hmac ,
        in use settings ={Tunnel, }
        conn id: 2157, flow_id: FPGA:157, crypto map: no-nat-crypto
        sa timing: remaining key lifetime (k/sec): (4530308/3529)
        IV size: 8 bytes
        replay detection support: Y
        Status: ACTIVE

The next step in the process is creating static and dynamic crypto maps. To read about that and the other details of implementing VPN gateways using Cisco routers, go to the main page of this series.

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
VPN Design
What's the difference between VPN pass-through and multi-tunneling?
How does IPv6 subnetting work in LAN and VLAN network design?
Direct transport VPN configuration
Network-to-network VPN gateway configuration for Cisco EzVPN
Full-crypto VPN hardware client configuration for Cisco EzVPN
Split-tunnel VPN hardware client configuration for Cisco EzVPN
Cisco Virtual Office gives remote workers simple and secure access
Split-tunnel Cisco IPsec VPN gateway with software client
Full-crypto Cisco IPsec VPN gateway with software client
IPsec VPN router configuration: The ISAKMP policy
VPN Design Research

Remote Access VPNs
How can I resolve this remote worker's VPN connection problem?
Problem connecting to virtual private network (VPN) through Linksys router
Direct transport VPN configuration
Cisco Virtual Office gives remote workers simple and secure access
Split-tunnel Cisco IPsec VPN gateway with software client
Full-crypto Cisco IPsec VPN gateway with software client
IPsec VPN router configuration: The ISAKMP policy
IPsec VPN authentication: Generating and exchanging pre-shared keys
VPN gateway router configuration using static and dynamic crypto maps
IPsec protocol details for implementing VPNs
Remote Access VPNs Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
extranet  (SearchNetworking.com)
Layer Two Tunneling Protocol  (SearchNetworking.com)
virtual private LAN service  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary




Network Management features current networking news and in-depth network white papers.
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersNetworking Product Trials
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts