Basic Settings
This chapter describes how to configure basic settings on the ASA that are typically required for a functioning configuration and includes the following sections:
- Configuring the Hostname, Domain Name, and Passwords
- Setting the Date and Time
- Configuring the Master Passphrase
- Configuring the DNS Server
- http://www.cisco.com/en/US/products/ps6121/products_tech_note09186a0080aaeff5.shtml
- Performing Password Recovery for the ASA
- Performing Password Recovery for the ASAv
- Monitoring DNS Cache
- Choosing a Rule Engine Transactional Commit Model
Configuring the Hostname, Domain Name, and Passwords
- Setting the Login Password
- Changing the Enable Password
- Setting the Hostname
- Setting the Domain Name
- Feature History for the Hostname, Domain Name, and Passwords
Setting the Login Password
The login password is used for Telnet access when you do not configure Telnet authentication (see Configuring Authentication for CLI and ASDM Access). You also use this password when accessing the ASASM from the switch with the session command.
Prerequisites
- Enable Telnet access according to the Configuring Telnet Access.
- In multiple context mode, complete this procedure in the context execution space. To change from the system to a context configuration, enter the changeto context name command. For the ASASM in multiple context mode, set the login password in the admin context for use when you session to the system execution space.
Detailed Steps
Changing the Enable Password
The enable password lets you enter privileged EXEC mode if you do not configure enable authentication (see Configuring Authentication to Access Privileged EXEC Mode (the enable Command)).
The enable password also lets you log into ASDM with a blank username if you do not configure HTTP authentication (see Configuring Authentication for CLI and ASDM Access.
Prerequisites
In multiple context mode, complete this procedure in the context execution space. To change from the system to a context configuration, enter the changeto context name command.
Detailed Steps
Setting the Hostname
When you set a hostname for the ASA, that name appears in the command line prompt. If you establish sessions to multiple devices, the hostname helps you keep track of where you enter commands.
Guidelines
For multiple context mode, the hostname that you set in the system execution space appears in the command line prompt for all contexts. The hostname that you optionally set within a context does not appear in the command line, but can be used by the banner command $(hostname) token.
Detailed Steps
Setting the Domain Name
The ASA appends the domain name as a suffix to unqualified names. For example, if you set the domain name to “example.com” and specify a syslog server by the unqualified name of “jupiter,” then the ASA qualifies the name to “jupiter.example.com.”
Guidelines
For multiple context mode, you can set the domain name for each context, as well as within the system execution space.
Detailed Steps
|
|
---|---|
|
Feature History for the Hostname, Domain Name, and Passwords
Table 15-1 lists each feature change and the platform release in which it was implemented.
Setting the Date and Time
Note Do not set the date and time for the ASASM; it receives these settings from the host switch.
This section includes the following topics:
- Setting the Time Zone and Daylight Saving Time Date Range
- Setting the Date and Time Using an NTP Server
- Setting the Date and Time Manually
Setting the Time Zone and Daylight Saving Time Date Range
To set the time zone and daylight saving time date range, perform the following steps:
Setting the Date and Time Using an NTP Server
To obtain the date and time from an NTP server, perform the following steps :
Detailed Steps
|
|
|
|
||
|
Specifies an authentication key ID to be a trusted key, which is required for authentication with an NTP server. The key_id argument is a value between 1 and 4294967295. You can enter multiple trusted keys for use with multiple servers. |
|
ntp authentication-key key_id md5 key |
Sets a key to authenticate with an NTP server. The key_id argument is the ID you set in Step 2 using the ntp trusted-key command, and the key argument is a string up to 32 characters long. |
|
ntp server ip_address [ key key_id ] [ source interface_name ] [ prefer ] |
The key_id argument is the ID you set in Step 2 using the ntp trusted-key command. The source interface_name keyword-argument pair identifies the outgoing interface for NTP packets if you do not want to use the default interface in the routing table. Because the system does not include any interfaces in multiple context mode, specify an interface name defined in the admin context. The prefer keyword sets this NTP server as the preferred server if multiple servers have similar accuracy. NTP uses an algorithm to determine which server is the most accurate and synchronizes to that one. If servers are of similar accuracy, then the prefer keyword specifies which of those servers to use. However, if a server is significantly more accurate than the preferred one, the ASA uses the more accurate one. For example, the ASA uses a server of stratum 2 over a server of stratum 3 that is preferred. You can identify multiple servers; the ASA uses the most accurate server. Note In multiple context mode, set the time in the system configuration only. |
Setting the Date and Time Manually
To set the date and time manually, enter the following command:
Configuring the Master Passphrase
This section includes the following topics:
- Information About the Master Passphrase
- Licensing Requirements for the Master Passphrase
- Guidelines and Limitations
- Adding or Changing the Master Passphrase
- Disabling the Master Passphrase
- Recovering the Master Passphrase
- Feature History for the Master Passphrase
Information About the Master Passphrase
The master passphrase allows you to securely store plain text passwords in encrypted format and provides a key that is used to universally encrypt or mask all passwords, without changing any functionality. Features that use the master passphrase include the following:
Licensing Requirements for the Master Passphrase
|
|
---|---|
Guidelines and Limitations
This section includes the guidelines and limitations for this feature.
Supported in single and multiple context mode.
If failover is enabled but no failover shared key is set, an error message appears if you change the master passphrase, informing you that you must enter a failover shared key to protect the master passphrase changes from being sent as plain text.
Adding or Changing the Master Passphrase
This procedure will only be accepted in a secure session, for example by console, SSH, or ASDM via HTTPS.
To add or change the master passphrase, perform the following steps:
Detailed Steps
|
|
|
---|---|---|
key config-key password-encryption [ new_passphrase [ old_passphrase ]] |
Sets the passphrase used for generating the encryption key. The passphrase must be between 8 and 128 characters long. All characters except a backspace and double quotes are accepted for the passphrase. If you do not enter the new passphrase in the command, you are prompted for it. To change the passphrase, you must enter the old passphrase. see Examples for examples of the interactive prompts. Note Use the interactive prompts to enter passwords to avoid having the passwords logged in the command history buffer. Use the no key config-key password-encrypt command with caution, because it changes the encrypted passwords into plain text passwords. You can use the no form of this command when downgrading to a software version that does not support password encryption. |
|
|
Enables password encryption. As soon as password encryption is enabled and the master passphrase is available, all the user passwords will be encrypted. The running configuration will show the passwords in the encrypted format. If the passphrase is not configured at the time that password encryption is enabled, the command will succeed in anticipation that the passphrase will be available in the future. If you later disable password encryption using the no password encryption aes command, all existing encrypted passwords are left unchanged, and as long as the master passphrase exists, the encrypted passwords will be decrypted, as required by the application. |
|
|
Saves the runtime value of the master passphrase and the resulting configuration. If you do not enter this command, passwords in startup configuration may still be visible if they were not saved with encryption previously. In addition, in multiple context mode the master passphrase is changed in the system context configuration. As a result, the passwords in all contexts will be affected. If the write memory command is not entered in the system context mode, but not in all user contexts, then the encrypted passwords in user contexts may be stale. Alternatively, use the write memory all command in the system context to save all configurations. |
Examples
The following example shows that no previous key was present:
The following example shows that a key already exists:
In the following example, you want to key in interactively, but a key already exists. The Old key, New key, and Confirm key prompts appear on your screen if you enter the key config-key password-encryption command and press Enter to access interactive mode.
In the following example, you want to key in interactively, but no key is present. The New key and Confirm key prompts appear on your screen if you are in interactive mode.
Disabling the Master Passphrase
Disabling the master passphrase reverts encrypted passwords into plain text passwords. Removing the passphrase might be useful if you downgrade to a previous software version that does not support encrypted passwords.
You must know the current master passphrase to disable it. If you do not know the passphrase, see Recovering the Master Passphrase.
This procedure works only in a secure session; that is, by Telnet, SSH, or ASDM via HTTPS.
To disable the master passphrase, perform the following steps:
Detailed Steps
Recovering the Master Passphrase
You cannot recover the master passphrase. If the master passphrase is lost or unknown, you can remove it.
To remove the master passphrase, perform the following steps:
Feature History for the Master Passphrase
Table 15-2 lists each feature change and the platform release in which it was implemented.
Configuring the DNS Server
Some ASA features require use of a DNS server to access external servers by domain name; for example, the Botnet Traffic Filter feature requires a DNS server to access the dynamic database server and to resolve entries in the static database. Other features, such as the ping or traceroute command, let you enter a name that you want to ping or traceroute, and the ASA can resolve the name by communicating with a DNS server. Many SSL VPN and certificate commands also support names.
Note The ASA has limited support for using the DNS server, depending on the feature. For example, most commands require you to enter an IP address and can only use a name when you manually configure the name command to associate a name with an IP address and enable use of the names using the names command.
For information about dynamic DNS, see Configuring DDNS.
Prerequisites
Make sure that you configure the appropriate routing for any interface on which you enable DNS domain lookup so you can reach the DNS server. see Information About Routing for more information about routing.
Detailed Steps
http://www.cisco.com/en/US/products/ps6121/products_tech_note09186a0080aaeff5.shtml
Performing Password Recovery for the ASA
This section includes the following topics:
Recovering Passwords for the ASA
To recover passwords for the ASA, perform the following steps:
Step 1 Connect to the ASA console port according to the instructions in Accessing the ASA Services Module Console or the Accessing the Appliance Console.
Step 2 Power off the ASA, and then power it on.
Step 3 After startup, press the Escape key when you are prompted to enter ROMMON mode.
Step 4 To update the configuration register value, enter the following command:
Step 5 To set the ASA to ignore the startup configuration, enter the following command:
The ASA displays the current configuration register value, and asks whether you want to change it:
Step 6 Record the current configuration register value, so you can restore it later.
Step 7 At the prompt, enter Y to change the value.
The ASA prompts you for new values.
Step 8 Accept the default values for all settings, except for the "disable system configuration?" value.
Step 9 At the prompt, enter Y.
Step 10 Reload the ASA by entering the following command:
The ASA loads the default configuration instead of the startup configuration.
Step 11 Access the privileged EXEC mode by entering the following command:
Step 12 When prompted for the password, press Enter.
Step 13 Load the startup configuration by entering the following command:
Step 14 Access the global configuration mode by entering the following command:
Step 15 Change the passwords, as required, in the default configuration by entering the following commands:
Step 16 Load the default configuration by entering the following command:
The default configuration register value is 0x1. For more information about the configuration register, see the command reference.
Step 17 Save the new passwords to the startup configuration by entering the following command:
Disabling Password Recovery
To disable password recovery to ensure that unauthorized users cannot use the password recovery mechanism to compromise the ASA, enter the following command:
|
|
---|---|
|
On the ASA, the no service password-recovery command prevents you from entering ROMMON mode with the configuration intact. When you enter ROMMON mode, the ASA prompts you to erase all Flash file systems.Yyou cannot enter ROMMON mode without first performing this erasure. If you choose not to erase the Flash file system, the ASA reloads. Because password recovery depends on using ROMMON mode and maintaining the existing configuration, this erasure prevents you from recovering a password. However, disabling password recovery prevents unauthorized users from viewing the configuration or inserting different passwords. In this case, to restore the system to an operating state, load a new image and a backup configuration file, if available.
The service password-recovery command appears in the configuration file for information only. When you enter the command at the CLI prompt, the setting is saved in NVRAM. The only way to change the setting is to enter the command at the CLI prompt. Loading a new configuration with a different version of the command does not change the setting. If you disable password recovery when the ASA is configured to ignore the startup configuration at startup (in preparation for password recovery), then the ASA changes the setting to load the startup configuration as usual. If you use failover, and the standby unit is configured to ignore the startup configuration, then the same change is made to the configuration register when the no service password recovery command replicates to the standby unit.
Performing Password Recovery for the ASAv
This section includes the following topics:
Recovering Passwords or Images on the ASAv
To recover passwords or images on the ASAv, perform the following steps:
Disabling Password Recovery
Monitoring DNS Cache
The ASA provides a local cache of DNS information from external DNS queries that are sent for certain clientless SSL VPN and certificate commands. Each DNS translation request is first looked for in the local cache. If the local cache has the information, the resulting IP address is returned. If the local cache can not resolve the request, a DNS query is sent to the various DNS servers that have been configured. If an external DNS server resolves the request, the resulting IP address is stored in the local cache with its corresponding hostname.
To monitor the DNS cache, enter the following command:
|
|
---|---|
Show the DNS cache, which includes dynamically learned entries from a DNS server as well as manually entered name and IP addresses using the name command. |
Choosing a Rule Engine Transactional Commit Model
By default, when you change a rule-based policy (such as access rules), the changes become effective immediately. However, this immediacy comes at a slight cost in performance. The performance cost is more noticeable for very large rule lists in a high connections-per-second environment, for example, when you change a policy with 25,000 rules while the ASA is handling 18,000 connections per second.
The performance is affected because the rule engine compiles rules to enable faster rule lookup. By default, the system will also search uncompiled rules when evaluating a connection attempt so that new rules can be applied; since the rules are not compiled, the search takes longer.
You can change this behavior so that the rule engine uses a transactional model when implementing rule changes, continuing to use the old rules until the new rules are compiled and ready for use. Using the transactional model, performance should not drop during the rule compilation. The following table clarifies the behavioral difference.
|
|
|
|
---|---|---|---|
An additional benefit of the transactional model is that, when replacing an ACL on an interface, there is no gap between deleting the old ACL and applying the new one. This reduces the chances that acceptable connections will be dropped during the operation.
Tip If you enable the transactional model for a rule type, there are syslog messages to mark the beginning and the end of the compilation. These messages are numbered 780001 and following.
Detailed Steps
|
|
---|---|
asp rule-engine transactional-commit option ciscoasa(config)# asp rule-engine |
Enables the transactional commit model for the rule engine for the selected policies. Options include: |