9.3.1.2 Lab - Configure ASA 5505 Basic Settings and Firewall Using CLI
9.3.1.2 Lab - Configure ASA 5505 Basic Settings and Firewall Using CLI
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Topology
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
IP Addressing Table
Objectives
Part 1: Basic Router/Switch/PC Configuration
Cable the network as shown in the topology.
Configure hostnames and interface IP addresses for routers, switches, and PCs.
Configure static routing, including default routes, between R1, R2, and R3.
Enable HTTP and SSH access for R1.
Configure PC host IP settings.
Verify connectivity between hosts, switches, and routers.
Save the basic running configuration for each router and switch.
Part 2: Accessing the ASA Console and Using CLI Setup Mode to Configure Basic Settings
Access the ASA console and view hardware, software, and configuration settings.
Determine the ASA version, interfaces, and license.
Determine the file system and contents of flash memory.
Use CLI Setup mode to configure basic settings (hostname, passwords, clock, etc.).
Part 3: Configuring Basic ASA Settings and Interface Security Levels Using the CLI.
Configure the hostname and domain name.
Configure the login and enable passwords.
Set the date and time.
Configure the inside and outside interfaces.
Test connectivity to the ASA.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
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 5505 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 VLAN 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
[Link]/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 5505 with an 8-port integrated switch, running OS version 9.2(3),
Adaptive Security Device Manager (ASDM) version 7.4(1), and comes with a Base license that allows a
maximum of three VLANs.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Note: Ensure that the routers and switches have been erased and have no startup configurations.
Required Resources
3 Routers (Cisco 1941 with Cisco IOS Release 15.4(3)M2 image with a Security Technology Package
license)
3 Switches (Cisco 2960 with cryptography IOS image for SSH support – Release 15.0(2)SE7 or
comparable)
1 ASA 5505 (OS version 9.2(3) and ASDM version 7.4(1) and Base license or comparable)
3 PCs (Windows 7 or Windows 8 with SSH client software)
Serial and Ethernet cables as shown in the topology
Console cables to configure Cisco networking devices
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Step 4: 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. Set the console
and VTY passwords to cisco. This will provide web and SSH targets for testing later in the lab.
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. Configure a domain name.
R1(config)# ip domain-name [Link]
d. 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
cisco12345.
R1(config)# username admin01 algorithm-type scrypt secret cisco12345
f. Configure line console 0 to use the local user database for logins. For additional security, the exec-
timeout command causes the line to log out after five minutes of inactivity. The logging synchronous
command prevents console messages from interrupting command entry.
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. 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 class12345
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Note: If you can ping from PC-C to R1 G0/0 and S0/0/0 you have demonstrated that static routing is
configured and functioning correctly.
Step 7: Save the basic running configuration for each router and switch.
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.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Number of accelerators: 1
<output omitted>
What software version is this ASA running?
_______________________________________________________________________________________
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 version of ASDM is this ASA running?
_______________________________________________________________________________________
How much RAM does this ASA have?
_______________________________________________________________________________________
How much flash memory does this ASA have?
_______________________________________________________________________________________
How many Ethernet ports does this ASA have?
_______________________________________________________________________________________
What type of license does this ASA have?
_______________________________________________________________________________________
How many VLANs can be created with this license?
_______________________________________________________________________________________
File Systems:
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
b. Display the contents of flash memory using one of these commands: show flash, show disk0, dir flash:,
or dir disk0:.
ciscoasa# show flash
--#-- --length-- -----date/time------ path
168 25159680 Aug 29 2011 [Link] [Link]
122 0 Aug 29 2011 [Link] nat_ident_migrate
13 2048 Aug 29 2011 [Link] coredumpinfo
14 59 Aug 29 2011 [Link] coredumpinfo/[Link]
169 16280544 Aug 29 2011 [Link] [Link]
3 2048 Aug 29 2011 [Link] log
6 2048 Aug 29 2011 [Link] crypto_archive
171 34816 Jan 01 1980 [Link] [Link]
173 36864 Jan 01 1980 [Link] [Link]
174 12998641 Aug 29 2011 [Link] csd_3.[Link]
175 2048 Aug 29 2011 [Link] sdesktop
211 0 Aug 29 2011 [Link] sdesktop/[Link]
176 6487517 Aug 29 2011 [Link] [Link]
177 6689498 Aug 29 2011 [Link] [Link]
178 4678691 Aug 29 2011 [Link] [Link]
<output omitted>
c. What is the name of the ASDM file in flash:? ________________________________________________
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
:
ASA Version 9.2(3)
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
<output omitted>
Note: To stop the output from a command using the CLI, press Q.
If you see VLANs 1 and 2 and other settings as described previously, the device is most likely configured
with the default factory configuration. You may also see other security features, such as a global policy
that inspects selected application traffic, which the ASA inserts by default if the original startup
configuration has been erased. The actual output varies depending on the ASA model, version, and
configuration status.
b. 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
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
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.
Step 6: Use the Setup interactive CLI mode to configure basic settings.
When the ASA completes the reload process, it should detect that the startup-config file is missing and
present a series of interactive prompts to configure basic ASA settings. If it does not come up in this mode,
repeat Step 5. As an alternative, you can run the setup command at the global configuration mode prompt,
but you must first create a VLAN interface (VLAN 1), name the VLAN management (using the nameif
command), and assign the VLAN an IP address.
Note: The interactive prompt mode does not configure the ASA with factory defaults as described in Step 4.
This mode can be used to configure minimal basic settings, such as hostname, clock, and passwords. You
can also go directly to the CLI to configure the ASA settings, as described in Part 3.
a. Respond to the Setup interactive prompts as shown here, after the ASA reloads.
Pre-configure Firewall now through interactive prompts [yes]? <Enter>
Firewall Mode [Routed]: <Enter>
Enable password [<use current password>]: class
Allow password recovery [yes]? <Enter>
Clock (UTC):
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Part 3: Configuring ASA Settings and Interface Security Using the CLI
In Part 3, you will configure basic settings by using the ASA CLI, even though some of them were already
configured using the Setup mode interactive prompts in Part 2. In this part, you will start with the settings
configured in Part 2 and then add to or modify them to create a complete basic configuration.
Tip: Many ASA CLI commands are similar to, if not the same, as those used with the Cisco IOS CLI. In
addition, the process of moving between configuration modes and sub-modes is essentially the same.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Current IP Addresses:
Interface Name IP address Subnet mask Method
Vlan1 inside [Link] [Link] manual
Vlan2 outside [Link] [Link] manual
g. Use the show switch vlan command to display the inside and outside VLANs configured on the ASA and
to display the assigned ports.
CCNAS-ASA# show switch vlan
VLAN Name Status Ports
---- -------------------------------- --------- -----------------------------
1 inside up Et0/1, Et0/2, Et0/3, Et0/4
Et0/5, Et0/6, Et0/7
2 outside up Et0/0
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
h. You may also use the show running-config interface type/number command to display the
configuration for a particular interface from the running configuration.
CCNAS-ASA# show run interface vlan 1
!
interface Vlan1
nameif inside
security-level 100
ip address [Link] [Link]
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
5) Verify that the IP address has been added. Click OK to accept the changes.
c. Close the browser. In the next lab, you will use ASDM extensively to configure the ASA. The objective
here is not to use the ASDM configuration screens, but to verify HTTP/ASDM connectivity to the ASA. If
you are unable to access ASDM, check your configurations. If the configurations are correct contact your
instructor for further assistance.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
a. Ping from the ASA to R1 G0/0 at IP address [Link]. Was the ping successful?
____________________________________________________________________________________
____________________________________________________________________________________
b. Ping from the ASA to R1 S0/0/0 at IP address [Link]. Was the ping successful?
____________________________________________________________________________________
____________________________________________________________________________________
c. Create a “quad zero” default route using the route command, associate it with the ASA outside interface,
and point to the R1 G0/0 at IP address [Link] as the gateway of last resort. The default
administrative distance is one by default.
CCNAS-ASA(config)# route outside [Link] [Link] [Link]
d. Issue the show route command to display the ASA routing table and the static default route you just
created.
CCNAS-ASA# show route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, + - replicated route
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 17 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
b. The ASA splits the configuration into the object portion that defines the network to be translated and the
actual nat command parameters. These appear in two different places in the running configuration.
Display the NAT object configuration using the show run object and show run nat commands.
CCNAS-ASA# show run object
object network INSIDE-NET
subnet [Link] [Link]
Step 3: Modify the default MPF application inspection global service policy.
For application layer inspection, as well as other advanced options, the Cisco MPF is available on ASAs.
Cisco MPF uses three configuration objects to define modular, object-oriented, and hierarchical policies:
Class maps - Define a match criterion.
Policy maps - Associate actions to the match criteria.
Service policies - Attach the policy map to an interface, or globally to all interfaces of the appliance.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 18 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
a. Display the default MPF policy map that performs the inspection on inside-to-outside traffic. Only traffic
that was initiated from the inside is allowed back in to the outside interface. Notice that the ICMP protocol
is missing.
CCNAS-ASA# show run | begin class
class-map inspection_default
match default-inspection-traffic
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect ip-options
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
!
service-policy global_policy global
<output omitted>
b. Add the inspection of ICMP traffic to the policy map list using the following commands:
CCNAS-ASA(config)# policy-map global_policy
CCNAS-ASA(config-pmap)# class inspection_default
CCNAS-ASA(config-pmap-c)# inspect icmp
c. Display the default MPF polich map to verify ICMP is now listed in the inspection rules.
CCNAS-ASA(config-pmap-c)# show run policy-map
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 19 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 20 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 21 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
d. On PC-C, use an SSH client (such as PuTTY) to connect to the ASA outside interface at the IP address
[Link]. The first time you connect you may be prompted by the SSH client to accept the RSA
host key of the ASA SSH server. Log in as user admin and provide the password cisco12345. You can
also connect to the ASA inside interface from a PC-B SSH client using the IP address [Link].
CCNAS-ASA(config-if)# security-level 70
CCNAS-ASA(config-if)# no shut
b. Assign ASA physical interface E0/2 to DMZ VLAN 3 and enable the interface.
CCNAS-ASA(config-if)# interface Ethernet0/2
CCNAS-ASA(config-if)# switchport access vlan 3
CCNAS-ASA(config-if)# no shut
c. Display the status for all ASA interfaces using the show interface ip brief command.
CCNAS-ASA # show interface ip brief
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 unassigned YES unset up up
Ethernet0/1 unassigned YES unset up up
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 22 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Step 2: Configure static NAT to the DMZ server using a network object.
Configure a network object named dmz-server and assign it the static IP address of the DMZ server
([Link]). While in object definition mode, use the nat command to specify that this object is used to
translate a DMZ address to an outside address using static NAT, and specify a public translated address of
[Link].
CCNAS-ASA(config)# object network dmz-server
CCNAS-ASA(config-network-object)# host [Link]
CCNAS-ASA(config-network-object)# nat (dmz,outside) static [Link]
Step 3: Configure an ACL to allow access to the DMZ server from the Internet.
Configure a named access list (OUTSIDE-DMZ) that permits any IP protocol from any external host to the
internal IP address of the DMZ server. Apply the access list to the ASA outside interface in the IN direction.
CCNAS-ASA(config)# access-list OUTSIDE-DMZ permit ip any host [Link]
CCNAS-ASA(config)# access-group OUTSIDE-DMZ in interface outside
Note: Unlike IOS ACLs, the ASA ACL permit statement must permit access to the internal private DMZ
address. External hosts access the server using its public static NAT address, the ASA translates it to the
internal host IP address, and then applies the ACL.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 23 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
You can modify this ACL to allow only services that you want to be exposed to external hosts, such as web
(HTTP) or file transfer (FTP).
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 24 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
f. The DMZ server cannot ping PC-B on the inside network because the DMZ interface VLAN 3 has a lower
security level and because the no forward command was specified when the VLAN 3 interface was
created. Try to ping from the DMZ server PC-A to PC-B at IP address [Link]. The pings should not
be successful.
g. Use the show run command to display the configuration for VLAN 3.
CCNAS-ASA# show run interface vlan 3
!
interface Vlan3
no forward interface Vlan1
nameif dmz
security-level 70
ip address [Link] [Link]
Note: An access list can be applied to the inside interface to control the type of access to be permitted or
denied to the DMZ server from inside hosts.
Reflection
1. How does the configuration of the ASA firewall differ from that of an ISR?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
2. What does the ASA use to define address translation and what is the benefit?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
3. How does the ASA 5505 use logical and physical interfaces to manage security and how does this differ from
other ASA models?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 25 of 26
Lab - Configuring ASA 5505 Basic Settings and Firewall Using CLI
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(F0/0) (F0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
© 2015 - 2020 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 26 of 26
VLAN configuration in ASA helps organize and segregate network traffic, enhancing security and performance. Each VLAN can be assigned a specific name and security level. Interface security settings depend on these configurations, as interfaces are associated with VLANs, thereby inheriting their attributes. The 'nameif' command is used to assign a VLAN name, and 'security-level' sets the network's trust degree, influencing traffic flow and NAT configurations .
When configuring ASDM access, ensure HTTPS connections are allowed using the 'http' command on the ASA, limiting access to trusted networks, e.g., the inside network (192.168.1.0/24). It's crucial to manage security levels accurately and configure RSA keys for SSL connection security. Additionally, save configurations with 'write mem' to prevent configuration loss after reboots .
To determine the ASA software version and hardware information, use the 'show version' command in the CLI. This command provides details like the ASA device model, RAM, CPU, license, and software versions .
Using the 'reload' command reinitializes the ASA, applied typically after major config changes or initial setup to load a fresh configuration environment. It ensures no legacy configurations persist, which can disrupt new setups. Factors influencing this decision include desired configuration freshness, recent security policy overhauls, or diagnosing issues that involve configuration errors carried over from previous states .
ACL configuration on ASA differs from Cisco IOS devices primarily in handling and implementing access rules. ASA ACLs apply to interface directions (IN/OUT) and require explicit allowances matching internal IP addresses after NAT translation, while IOS ACLs are typically interface-based. This approach on ASA ensures security by controlling access to internal resources with precise NAT-aware configurations that reflect external to internal translations .
Static NAT on the ASA maps a specific internal IP address to a fixed external IP address, ensuring predictable connectivity for services such as DMZ servers. It allows inbound traffic to reach internal servers using well-known external addresses, facilitating service access across the internet while maintaining internal IP security. This configuration supports external-to-internal requests translating public to private IPs, seamless external connectivity, and simplifies firewall rule configurations .
The 'show running-config' command displays the current ASA configuration, crucial for verifying, diagnosing, and managing active settings. It enables administrators to review and confirm ASA's operational state and inspect adjustments to configurations, especially useful after planned modifications or troubleshooting. Consistent use helps ensure configurations align with security policies .
Accessing the ASA console involves connecting to the console port with a rollover cable and using a terminal emulation program like TeraTerm or PuTTy. Enter privileged mode with the 'enable' command, using 'class' as the default password. To configure basic settings, use the CLI interactive setup utility after clearing the previous configuration with 'write erase' and reloading the ASA. Respond to interactive prompts to set the hostname, management IP, and password .
The management IP settings define how the ASA is accessed and managed within the network, providing an IP address and subnet mask for remote access, usually via SSH or ASDM. This IP serves as the network administrator's entry point to configure and monitor the ASA. Proper configuration ensures secure access paths and reliable administration of the firewall’s implementation, impacting how its policies interact with network traffic .
SSH timeout settings dictate connection persistence in ASA. Adjusting timeouts, for example, increasing from default 5 to 10 minutes, balances security (against unauthorized access if a session is left open) with administrative convenience (preventing frequent disconnections during longer administrative tasks). This setting should consider network security policies and typical use cases, ensuring remote access remains both secure and practical .