CLI Book 2: Cisco ASA Series Firewall CLI Configuration Guide, 9.12 Americas Headquarters Cisco Systems, Inc
Total Page:16
File Type:pdf, Size:1020Kb
CLI Book 2: Cisco ASA Series Firewall CLI Configuration Guide, 9.12 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 CHAPTER 1 Introduction to Cisco ASA Firewall Services 1 How to Implement Firewall Services 1 Basic Access Control 2 Application Filtering 2 URL Filtering 3 Threat Protection 3 Firewall Services for Virtual Environments 4 Network Address Translation 4 Application Inspection 5 Use Case: Expose a Server to the Public 5 PART I Access Control 7 CHAPTER 2 Objects for Access Control 9 Guidelines for Objects 9 Configure Objects 10 Configure Network Objects and Groups 10 Configure a Network Object 10 Configure a Network Object Group 11 Configure Service Objects and Service Groups 12 CLI Book 2: Cisco ASA Series Firewall CLI Configuration Guide, 9.12 iii Contents Configure a Service Object 12 Configure a Service Group 13 Configure Local User Groups 15 Configure Security Group Object Groups 16 Configure Time Ranges 17 Monitoring Objects 18 History for Objects 19 CHAPTER 3 Access Control Lists 21 About ACLs 21 ACL Types 21 ACL Names 23 Access Control Entry Order 23 Permit/Deny vs. Match/Do Not Match 23 Access Control Implicit Deny 23 IP Addresses Used for Extended ACLs When You Use NAT 24 Time-Based ACEs 25 Licensing for Access Control Lists 25 Guidelines for ACLs 25 Configure ACLs 26 Basic ACL Configuration and Management Options 26 Configure Extended ACLs 28 Add an Extended ACE for IP Address or Fully-Qualified Domain Name-Based Matching 28 Add an Extended ACE for Port-Based Matching 29 Add an Extended ACE for ICMP-Based Matching 30 Add an Extended ACE for User-Based Matching (Identity Firewall) 31 Add an Extended ACE for Security Group-Based Matching (Cisco TrustSec) 32 Examples for Extended ACLs 33 Example of Converting Addresses to Objects for Extended ACLs 34 Configure Standard ACLs 34 Configure Webtype ACLs 35 Add a Webtype ACE for URL Matching 35 Add a Webtype ACE for IP Address Matching 36 Examples for Webtype ACLs 37 CLI Book 2: Cisco ASA Series Firewall CLI Configuration Guide, 9.12 iv Contents Configure EtherType ACLs 38 Examples for EtherType ACLs 40 Edit ACLs in an Isolated Configuration Session 40 Monitoring ACLs 42 History for ACLs 42 CHAPTER 4 Access Rules 45 Controlling Network Access 45 General Information About Rules 46 Interface Access Rules and Global Access Rules 46 Inbound and Outbound Rules 46 Rule Order 47 Implicit Permits 47 Implicit Deny 48 NAT and Access Rules 48 Same Security Level Interfaces and Access Rules 48 Extended Access Rules 49 Extended Access Rules for Returning Traffic 49 Allowing Broadcast and Multicast Traffic 49 Management Access Rules 50 EtherType Rules 50 Supported EtherTypes and Other Traffic 50 EtherType Rules for Returning Traffic 50 Allowing MPLS 51 Licensing for Access Rules 51 Guidelines for Access Control 51 Configure Access Control 52 Configure an Access Group 52 Configure ICMP Access Rules 53 Monitoring Access Rules 55 Evaluating Syslog Messages for Access Rules 55 Configuration Examples for Permitting or Denying Network Access 56 History for Access Rules 57 CLI Book 2: Cisco ASA Series Firewall CLI Configuration Guide, 9.12 v Contents CHAPTER 5 Identity Firewall 61 About the Identity Firewall 61 Architecture for Identity Firewall Deployments 62 Features of the Identity Firewall 63 Deployment Scenarios 65 Guidelines for the Identity Firewall 67 Prerequisites for the Identity Firewall 69 Configure the Identity Firewall 70 Configure the Active Directory Domain 70 Configure Active Directory Agents 73 Configure Identity Options 74 Configure Identity-Based Security Policy 78 Collect User Statistics 79 Examples for the Identity Firewall 80 AAA Rule and Access Rule Example 1 80 AAA Rule and Access Rule Example 2 80 VPN Filter Examples 81 Applying Interface Access Rules to VPN Traffic Example 81 Applying VPN Filters with User Specifications Example 81 Monitoring the Identity Firewall 82 History for the Identity Firewall 83 CHAPTER 6 ASA and Cisco TrustSec 85 About Cisco TrustSec 85 About SGT and SXP Support in Cisco TrustSec 86 Roles in the Cisco TrustSec Feature 86 Security Group Policy Enforcement 87 How the ASA Enforces Security Group-Based Policies 88 Effects of Changes to Security Groups on the ISE 89 Speaker and Listener Roles on the ASA 90 Register the ASA with the ISE 91 Create a Security Group on the ISE 92 Generate the PAC File 92 CLI Book 2: Cisco ASA Series Firewall CLI Configuration Guide, 9.12 vi Contents Guidelines for Cisco TrustSec 92 Configure the ASA to Integrate with Cisco Trustsec 95 Configure the AAA Server for Cisco TrustSec Integration 96 Import a PAC File 98 Configure the Security Exchange Protocol 99 Add an SXP Connection Peer 102 Refresh Environment Data 103 Configure the Security Policy 103 Configure Layer 2 Security Group Tagging Imposition 105 Usage Scenarios 105 Configure a Security Group Tag on an Interface 107 Configure IP-SGT Bindings Manually 108 Troubleshooting Tips 108 Example for Cisco TrustSec 109 AnyConnect VPN Support for Cisco TrustSec 110 Add an SGT to Remote Access VPN Group Policies and Local Users 110 Monitoring Cisco TrustSec 111 History for Cisco TrustSec 112 CHAPTER 7 ASA FirePOWER Module 115 About the ASA FirePOWER Module 115 How the ASA FirePOWER Module Works with the ASA 115 ASA FirePOWER Inline Mode 116 ASA FirePOWER Inline Tap Monitor-Only Mode 117 ASA FirePOWER Passive Monitor-Only Traffic Forwarding Mode 117 ASA FirePOWER Management 118 Compatibility with ASA Features 118 What to Do if the ASA FirePOWER Module Cannot Filter URLs 118 Licensing Requirements for the ASA FirePOWER Module 119 Guidelines for ASA FirePOWER 119 Defaults for ASA FirePOWER 121 Perform Initial ASA FirePOWER Setup 121 Deploy the ASA FirePOWER Module in Your Network 121 Routed Mode 121 CLI Book 2: Cisco ASA Series Firewall CLI Configuration Guide, 9.12 vii Contents Transparent Mode 124 Register the ASA FirePOWER Module with a Management Center 126 Access the ASA FirePOWER CLI 126 Configure ASA FirePOWER Basic Settings 127 Configure the ASA FirePOWER Module for ASDM Management 128 Configure the ASA FirePOWER Module 130 Configure the Security Policy on the ASA FirePOWER Module 130 Redirect Traffic to the ASA FirePOWER Module 130 Configure Inline or Inline Tap Monitor-Only Modes 130 Configure Passive Traffic Forwarding 132 Enable Captive Portal for Active Authentication 133 Managing the ASA FirePOWER Module 134 Install or Reimage the Module 134 Install or Reimage the Software Module 134 Reimage the 5585-X ASA FirePOWER