Chapter 9 Lab A: Configuring ASA Basic Settings and Firewall Using CLI
Chapter 9 Lab A: Configuring ASA Basic Settings and Firewall Using CLI
Chapter 9 Lab A: Configuring ASA Basic Settings and Firewall Using CLI
Topology
IP Addressing Table
Device Interface IP Address Subnet Mask Default Gateway Switch Port
Background/Scenario
The Cisco Adaptive Security Appliance (ASA) is an advanced network security device that integrates a
stateful firewall, VPN, and other capabilities. This lab employs an ASA 5506 to create a firewall and protect an
internal corporate network from external intruders while allowing internal hosts access to the Internet. The
ASA creates three security interfaces: Outside, Inside, and DMZ. It provides outside users limited access to
the DMZ and no access to inside resources. Inside users can access the DMZ and outside resources.
The focus of this lab is the configuration of the ASA as a basic firewall. Other devices will receive minimal
configuration to support the ASA portion of this lab. This lab uses the ASA CLI, which is similar to the IOS
CLI, to configure basic device and security settings.
In Part 1 of this lab, you will configure the topology and non-ASA devices. In Parts 2 through 4 you will
configure basic ASA settings and the firewall between the inside and outside networks. In part 5 you will
configure the ASA for additional services, such as DHCP, AAA, and SSH. In Part 6, you will configure a DMZ
on the ASA and provide access to a server in the DMZ.
Your company has one location connected to an ISP. R1 represents a CPE device managed by the ISP. R2
represents an intermediate Internet router. R3 represents an ISP that connects an administrator from a
network management company, who has been hired to remotely manage your network. The ASA is an edge
security device that connects the internal corporate network and DMZ to the ISP while providing NAT and
DHCP services to inside hosts. The ASA will be configured for management by an administrator on the
internal network and by the remote administrator. Layer 3 interfaces provide access to the three areas
created in the lab: Inside, Outside, and DMZ. The ISP has assigned the public IP address space of
209.165.200.224/29, which will be used for address translation on the ASA.
Note: The router commands and output in this lab are from a Cisco 1941 with Cisco IOS Release 15.4(3)M2
image with a Security Technology license. Other routers and Cisco IOS versions can be used. See the Router
Interface Summary Table at the end of this lab to determine which interface identifiers to use based on the
equipment in your class. Depending on the router model and Cisco IOS version, the available commands and
output produced might vary from what is shown in this lab.
The ASA used with this lab is a Cisco model 5506 with an 8-port integrated router, running OS version 9.8(1),
Adaptive Security Device Manager (ASDM) version 7.8(1), and comes with a Base license.
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 13
CCNA Security Chapter 9 Lab
Preconfiguration
Préembule 1: Préparation d’un routeur C1941
2. Ajouter un serveur
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 13
CCNA Security Chapter 9 Lab
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 13
CCNA Security Chapter 9 Lab
10. Sur le routeur, aller dans le CLI et effectuer les manœuvres suivantes pour récupérer le package « c1900-
universalk9-mz.SPA.155-3.M4a.bin » depuis le serveur FTP et les copier dans la memoire flash du rou-
teur.
Routeur>enable
N.B: la copie est case sensitive, il faut faire attention à copier le le nom du fichier exact qui se trouve sur le
serveur FTP
routeur(config)#end
routeur#wr memory
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 13
CCNA Security Chapter 9 Lab
1. Sur le routeur mis à jour, aller dans Physical, faire un shut down du routeur
2. Aller dans les modules disponibles et ajouter au routeur une carte HWIC-2T afin d’incorporer deux ports
serie au routeur
4. Sauvegarder la configuration
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 13
CCNA Security Chapter 9 Lab
Step 3: Enable the HTTP server and configure a user account, encrypted passwords, and crypto
keys for SSH.
Note: Passwords in this task are set to a minimum of 10 characters but are relatively simple for the purposes
of this lab. More complex passwords are recommended in a production network.
a. Enable HTTP access to R1 using the ip http server command in global config mode.
R1(config)# ip http server
b. Configure a minimum password length of 10 characters using the security passwords command.
R1(config)# security passwords min-length 10
c. What is a domain name, what is it used for. Configure a domain name.
R1(config)# ip domain-name ccnasecurity.com
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 13
CCNA Security Chapter 9 Lab
d. what is the usage of crypto keys in the context of a router. Configure crypto keys for SSH.
R1(config)# crypto key generate rsa general-keys modulus 1024
e. Configure an admin01 user account using algorithm-type scrypt for encryption and a password of admin01pass.
R1(config)# username admin01 algorithm-type scrypt secret admin01pass
what does the algorithm-type stand for? What are the different encryption algorithm types permitted
in Cisco routers
f. Configure line console 0 to use the local user database for logins. What is the role of exec-timeout command.
Set the log out time out to 5 minutes. What is the role of logging synchronous command?
Note: To avoid repetitive logins during this lab, the exec-timeout command can be set to 0 0, which
prevents it from expiring. However, this is not considered to be a good security practice.
R1(config)# line console 0
R1(config-line)# login local
R1(config-line)# exec-timeout 5 0
R1(config-line)# logging synchronous
g. What does vty stand for? Configure line vty 0 4 to use the local user database for logins and restrict access to
only SSH connections.
R1(config)# line vty 0 4
R1(config-line)# login local
R1(config-line)# transport input ssh
R1(config-line)# exec-timeout 5 0
h. Configure the enable password with strong encryption.
R1(config)# enable algorithm-type scrypt secret admin01pass
Step 6: Save the basic running configuration for each router and switch.
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 13
CCNA Security Chapter 9 Lab
Part 2: Accessing the ASA Console and Using CLI Setup to Configure Basic
Settings
In Part 2 of this lab, you will access the ASA via the console and use various show commands to determine
hardware, software, and configuration settings. You will clear the current configuration and use the CLI
interactive setup utility to configure basic ASA settings.
Note: Do not configure ASA settings at this time.
Hardware: ASA5506, 4096 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4
cores)
Internal ATA Compact Flash, 8000MB
BIOS Flash M25P64 @ 0xfed01000, 16384KB
<output omitted>
What is the name of the system image file and from where was it loaded?
_______________________________________________________________________________________
_______________________________________________________________________________________
The ASA can be managed using a built-in GUI known as ASDM. What does ASDM refer to and what version
of ASDM is this ASA running?
_______________________________________________________________________________________
How much RAM does this ASA have?
_______________________________________________________________________________________
-
network wo
What is another name for flash:?______________________________________________________
a. Display the contents of flash memory using one of these commands: show flash, show disk0, dir flash:, or dir
disk0:.
b. ciscoasa# show flash
Example of a response:
--#-- --length-- -----date/time------ path
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 13
CCNA Security Chapter 9 Lab
Note: To stop the output from a command using the CLI, press Q.
You can restore the ASA to its factory default settings by using the configure factory-default command.
ciscoasa# conf t
ciscoasa(config)# configure factory-default
Note: If you receive a prompt for Anonymous Error reporting, proceed by answering No.
Review this output and pay attention to the VLAN interfaces, NAT-related, and DHCP-related sections. These
will be configured later in this lab using the CLI.
You may want to capture and print the factory-default configuration as a reference. Use the terminal
emulation program to copy it from the ASA and paste it into a text document. You can then edit this file if
desired, so that it contains only valid commands. You should remove password commands and enter the no
shut command to bring up the desired interfaces.
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 13