CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.4 Americas Headquarters Cisco Systems, Inc
Total Page:16
File Type:pdf, Size:1020Kb
CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.4 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883 THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. All printed copies and duplicate soft copies of this document are considered uncontrolled. See the current online version for the latest version. Cisco has more than 200 offices worldwide. Addresses and phone numbers are listed on the Cisco website at www.cisco.com/go/offices. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: https://www.cisco.com/c/en/us/about/legal/trademarks.html. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1721R) © 2005–2015 Cisco Systems, Inc. All rights reserved. CONTENTS PREFACE About This Guide xvii Document Objectives xvii Related Documentation xvii Document Conventions xvii Communications, Services, and Additional Information xix PART I Site-to-Site and Client VPN 21 CHAPTER 1 IPsec and ISAKMP 1 About Tunneling, IPsec, and ISAKMP 1 IPsec Overview 2 ISAKMP and IKE Overview 2 Licensing for IPsec VPNs 3 Guidelines for IPsec VPNs 4 Configure ISAKMP 4 Configure IKEv1 and IKEv2 Policies 4 IKE Policy Keywords and Values 6 Enable IKE on the Outside Interface 9 Disable IKEv1 Aggressive Mode 10 Configure an ID Method for IKEv1 and IKEv2 ISAKMP Peers 10 INVALID_SELECTORS Notification 11 Configure IKEv2 Pre-shared Key in Hex 11 Enable or Disable Sending of IKE Notification 11 AAA Authentication With Authorization 12 Enable IPsec over NAT-T 12 Enable IPsec with IKEv1 over TCP 13 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.4 iii Contents Configure Certificate Group Matching for IKEv1 14 Configure IPsec 16 Define Crypto Maps 16 Example of LAN-to-LAN Crypto Maps 19 Set Public Key Infrastructure (PKI) Keys 25 Apply Crypto Maps to Interfaces 26 Use Interface ACLs 26 Change IPsec SA Lifetimes 28 Create Static Crypto Maps 29 Create Dynamic Crypto Maps 32 Provide Site-to-Site Redundancy 35 Managing IPsec VPNs 35 Viewing an IPsec Configuration 35 Wait for Active Sessions to Terminate Before Rebooting 36 Alert Peers Before Disconnecting 36 Clear Security Associations 37 Clear Crypto Map Configurations 37 Supporting the Nokia VPN Client 37 CHAPTER 2 L2TP over IPsec 41 About L2TP over IPsec/IKEv1 VPN 41 IPsec Transport and Tunnel Modes 42 Licensing Requirements for L2TP over IPsec 43 Prerequisites for Configuring L2TP over IPsec 43 Guidelines and Limitations 43 Configuring L2TP over Eclipse with CLI 45 Creating IKE Policies to Respond to Windows 7 Proposals 48 Configuration Example for L2TP over IPsec 49 Feature History for L2TP over IPsec 50 CHAPTER 3 General VPN Parameters 51 Configure IPsec to Bypass ACLs 51 Permitting Intra-Interface Traffic (Hairpinning) 52 NAT Considerations for Intra-Interface Traffic 53 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.4 iv Contents Setting Maximum Active IPsec or SSL VPN Sessions 53 Use Client Update to Ensure Acceptable IPsec Client Revision Levels 54 Implement NAT-Assigned IP to Public IP Connection 56 Displaying VPN NAT Policies 57 Configure VPN Session Limits 57 Limit VPN Sessions 58 Using an Identify Certificate When Negotiating 58 Configure the Pool of Cryptographic Cores 59 Configure Dynamic Split Tunneling 59 Viewing Active VPN Sessions 60 Viewing Active AnyConnect Sessions by IP Address Type 60 Viewing Active Clientless SSL VPN Sessions by IP Address Type 61 Viewing Active LAN to LAN VPN Sessions by IP Address Type 62 About ISE Policy Enforcement 62 Configure RADIUS Server Groups for ISE Policy Enforcement 63 Example Configurations for ISE Policy Enforcement 66 Troubleshooting Policy Enforcement 66 Configure Advanced SSL Settings 67 Persistent IPsec Tunneled Flows 71 Configure Persistent IPsec Tunneled Flows Using CLI 73 Troubleshooting Persistent IPsec Tunneled Flows 73 Is the Persistent IPsec Tunneled Flows Feature Enabled? 73 Locating Orphaned Flows 74 CHAPTER 4 Connection Profiles, Group Policies, and Users 75 Overview of Connection Profiles, Group Policies, and Users 75 Connection Profiles 76 General Connection Profile Connection Parameters 77 IPsec Tunnel-Group Connection Parameters 78 Connection Profile Connection Parameters for SSL VPN Sessions 79 Configure Connection Profiles 80 Maximum Connection Profiles 81 Default IPsec Remote Access Connection Profile Configuration 81 IPsec Tunnel-Group General Attributes 82 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.4 v Contents Configure Remote-Access Connection Profiles 82 Specify a Name and Type for the Remote Access Connection Profile 82 Configure Remote-Access Connection Profile General Attributes 83 Configure Double Authentication 87 Configure Remote-Access Connection Profile IPsec IKEv1 Attributes 88 Configure IPsec Remote-Access Connection Profile PPP Attributes 91 Configure LAN-to-LAN Connection Profiles 92 Default LAN-to-LAN Connection Profile Configuration 92 Specify a Name and Type for a LAN-to-LAN Connection Profile 93 Configure LAN-to-LAN Connection Profile General Attributes 93 Configure LAN-to-LAN IPsec IKEv1 Attributes 94 Configure Connection Profiles for Clientless SSL VPN Sessions 96 Configure General Tunnel-Group Attributes for Clientless SSL VPN Sessions 96 Configure Tunnel-Group Attributes for Clientless SSL VPN Sessions 100 Customize Login Windows for Users of Clientless SSL VPN Sessions 104 About Tunnel Groups for Standards-based IKEv2 Clients 106 Standards-based IKEv2 Attribute Support 106 DAP Support 107 Tunnel Group Selection for Remote Access Clients 107 Authentication Support for Standards-based IKEv2 Clients 107 Configure the query-identity Option for Retrieval of EAP Identity 109 Configure Microsoft Active Directory Settings for Password Management 111 Use Active Directory to Force the User to Change Password at Next Logon 111 Use Active Directory to Specify Maximum Password Age 111 Use Active Directory to Override an Account Disabled AAA Indicator 112 Use Active Directory to Enforce Minimum Password Length 112 Use Active Directory to Enforce Password Complexity 113 Configure the Connection Profile for RADIUS/SDI Message Support for the AnyConnect Client 113 Configure the Security Appliance to Support RADIUS/SDI Messages 114 Group Policies 115 Modify the Default Group Policy 116 Configure Group Policies 118 Configure an External Group Policy 119 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.4 vi Contents Create an Internal Group Policy 120 Configure General Internal Group Policy Attributes 120 Group Policy Name 120 Configure the Group Policy Banner Message 120 Specify Address Pools for Remote Access Connections 121 Assign an IPv4 Address Pool to an Internal Group Policy 121 Assign an IPv6 Address Pool to an Internal Group Policy 122 Specify the Tunneling Protocol for the Group Policy 123 Specify a VLAN for Remote Access or Apply a Unified Access Control Rule to the Group Policy 124 Specify VPN Access Hours for a Group Policy 126 Specify Simultaneous VPN Logins for a Group Policy 127 Restrict Access to a Specific Connection Profile 128 Specify the Maximum VPN Connection Time in a Group Policy 128 Specify a VPN Session Idle Timeout for a Group Policy 129 Configure WINS and DNS Servers for a Group Policy 131 Set the Split-Tunneling Policy