CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.13 Americas Headquarters Cisco Systems, Inc
Total Page:16
File Type:pdf, Size:1020Kb
CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.13 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) © 2021 Cisco Systems, Inc. All rights reserved. CONTENTS PREFACE About This Guide xix Document Objectives xix Related Documentation xix Document Conventions xix Communications, Services, and Additional Information xxi PART I Site-to-Site and Client VPN 23 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 Configure IKEv2 Fragmentation Options 12 AAA Authentication With Authorization 13 Enable IPsec over NAT-T 13 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.13 iii Contents Enable IPsec with IKEv1 over TCP 15 Configure Certificate Group Matching for IKEv1 16 Configure IPsec 18 Define Crypto Maps 18 Example of LAN-to-LAN Crypto Maps 21 Set Public Key Infrastructure (PKI) Keys 26 Apply Crypto Maps to Interfaces 27 Use Interface ACLs 27 Change IPsec SA Lifetimes 29 Change VPN Routing 30 Create Static Crypto Maps 30 Create Dynamic Crypto Maps 35 Provide Site-to-Site Redundancy 37 Managing IPsec VPNs 38 Viewing an IPsec Configuration 38 Wait for Active Sessions to Terminate Before Rebooting 38 Alert Peers Before Disconnecting 39 Clear Security Associations 39 Clear Crypto Map Configurations 40 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 High Availability Options 53 High Availability Options 53 VPN and Clustering on the FXOS Chassis 53 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.13 iv Contents VPN Load Balancing 54 Failover 54 VPN Load Balancing 54 About VPN Load Balancing 54 VPN Load-Balancing Algorithm 55 VPN Load-Balancing Group Configurations 55 Frequently Asked Questions About VPN Load Balancing 56 Licensing for VPN Load Balancing 57 Prerequisites for VPN Load Balancing 58 Guidelines and Limitations for VPN Load Balancing 58 Configuring VPN Load Balancing 59 Configure the Public and Private Interfaces for VPN Load Balancing 60 Configure the VPN Load Balancing Group Attributes 61 Configuration Examples for VPN Load Balancing 63 Viewing VPN Load Balancing Information 64 CHAPTER 4 General VPN Parameters 65 Guidelines and Limitations 65 Configure IPsec to Bypass ACLs 66 Permitting Intra-Interface Traffic (Hairpinning) 66 NAT Considerations for Intra-Interface Traffic 67 Setting Maximum Active IPsec or SSL VPN Sessions 68 Use Client Update to Ensure Acceptable IPsec Client Revision Levels 68 Implement NAT-Assigned IP to Public IP Connection 70 Displaying VPN NAT Policies 71 Configure VPN Session Limits 72 Show License Resource Allocation 72 Show License Resource Usage 73 Limit VPN Sessions 73 Using an Identify Certificate When Negotiating 73 Configure the Pool of Cryptographic Cores 74 Configure Dynamic Split Tunneling 74 Configure the Management VPN Tunnel 75 Viewing Active VPN Sessions 76 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.13 v Contents Viewing Active AnyConnect Sessions by IP Address Type 76 Viewing Active Clientless SSL VPN Sessions by IP Address Type 77 Viewing Active LAN to LAN VPN Sessions by IP Address Type 78 About ISE Policy Enforcement 78 Configure RADIUS Server Groups for ISE Policy Enforcement 79 Example Configurations for ISE Policy Enforcement 82 Troubleshooting Policy Enforcement 82 Configure Advanced SSL Settings 83 Persistent IPsec Tunneled Flows 87 Configure Persistent IPsec Tunneled Flows Using CLI 89 Troubleshooting Persistent IPsec Tunneled Flows 89 Is the Persistent IPsec Tunneled Flows Feature Enabled? 89 Locating Orphaned Flows 90 CHAPTER 5 Connection Profiles, Group Policies, and Users 91 Overview of Connection Profiles, Group Policies, and Users 91 Connection Profiles 92 General Connection Profile Connection Parameters 93 IPsec Tunnel-Group Connection Parameters 94 Connection Profile Connection Parameters for SSL VPN Sessions 95 Configure Connection Profiles 96 Maximum Connection Profiles 97 Default IPsec Remote Access Connection Profile Configuration 97 IPsec Tunnel-Group General Attributes 98 Configure Remote-Access Connection Profiles 98 Specify a Name and Type for the Remote Access Connection Profile 99 Configure Remote-Access Connection Profile General Attributes 99 Configure Double Authentication 103 Configure Remote-Access Connection Profile IPsec IKEv1 Attributes 105 Configure IPsec Remote-Access Connection Profile PPP Attributes 107 Configure LAN-to-LAN Connection Profiles 109 Default LAN-to-LAN Connection Profile Configuration 109 Specify a Name and Type for a LAN-to-LAN Connection Profile 109 Configure LAN-to-LAN Connection Profile General Attributes 110 CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.13 vi Contents Configure LAN-to-LAN IPsec IKEv1 Attributes 110 Configure Connection Profiles for Clientless SSL VPN Sessions 113 Configure General Tunnel-Group Attributes for Clientless SSL VPN Sessions 113 Configure Tunnel-Group Attributes for Clientless SSL VPN Sessions 116 Customize Login Windows for Users of Clientless SSL VPN Sessions 121 About Tunnel Groups for Standards-based IKEv2 Clients 122 Standards-based IKEv2 Attribute Support 123 DAP Support 123 Tunnel Group Selection for Remote Access Clients 123 Authentication Support for Standards-based IKEv2 Clients 124 Add Multiple Certificate Authentication 125 Configure the query-identity Option for Retrieval of EAP Identity 126 Configure Microsoft Active Directory Settings for Password Management 128 Use Active Directory to Force the User to Change Password at Next Logon 128 Use Active Directory to Specify Maximum Password Age 129 Use Active Directory to Enforce Minimum Password Length 129 Use Active Directory to Enforce Password Complexity 129 Configure the Connection Profile for RADIUS/SDI Message Support for the AnyConnect Client 130 Configure the Security Appliance to Support RADIUS/SDI Messages 130 Group Policies 132 Modify the Default Group Policy 133 Configure Group Policies 135 Configure an External Group Policy 135