1-7
Cisco ASA Series CLI Configuration Guide
Chapter 1 Configuring Inspection of Basic Internet Protocols
DNS Inspection
Step 7
(If you are using a DNS inspection class map)
policy-map type inspect dns
name
class
class_map_name
{
drop
[
log
] |
drop-connection
[
log
]|
enforce-tsig
{[
drop
] [
log
]} |
mask
[
log
] |
log
}
Example:
hostname(config)# policy-map type inspect
dns dns-map
hostname(config-pmap)# class dns-class-map
hostname(config-pmap-c)# drop
hostname(config-pmap-c)# match header-flag
eq aa
hostname(config-pmap-c)# drop log
Creates an inspection policy map, specifies the DNS inspection
class map, and sets the action for the class map:
•
drop
[
log
]—Drops the packet.
log
also logs the packet.
•
drop-connection
[
log
]—Drops the packet and closes the
connection.
log
also logs the packet.
•
enforce-tsig
{[
drop
] [
log
]}—Enforces the TSIG resource
record in a message.
drop
drops a packet without the TSIG
resource record.
log
also logs the packet.
•
mask
[
log
]—
M
asks out the matching portion of the packet.
log
also logs the packet.
•
log
—Logs the packet.
You can specify multiple
class
or
match
commands in the policy
map. For information about the order of
class
and
match
commands, see the
“Defining Actions in an Inspection Policy
.
Step 8
parameters
{
dns-guard
|
id-mismatch count
number
duration
seconds
action log
|
id-randomization
|
message-length maximum
{
length
|
client
{[
length
] [
auto
]} |
server
{[
length
] [
auto
]}} |
nat-rewrite
|
protocol-enforcement
|
tsig enforced action
{[
drop
] [
log
]}}
Example:
hostname(config-pmap)# parameters
hostname(config-pmap-p)# dns-guard
hostname(config-pmap-p)# id-mismatch
action log
hostname(config-pmap-p)# message-length
maximum 1024
hostname(config-pmap-p)# nat-rewrite
hostname(config-pmap-p)#
protocol-enforcement
Enters parameters configuration mode so you can set one or more
parameters:
•
dns-guard
—Enables DNS Guard. The ASA tears down the
DNS session associated with a DNS query as soon as the DNS
reply is forwarded by the ASA. The ASA also monitors the
message exchange to ensure that the ID of the DNS reply
matches the ID of the DNS query.
•
id-mismatch
count
number
duration
seconds
action
log
—Enables logging for excessive DNS ID mismatches,
where the
count
number
duration
seconds
arguments specify
the maximum number of mismatch instances per second
before a system message log is sent.
•
id-randomization
—Randomizes the DNS identifier for a
DNS query.
•
message-length maximum
{
length
|
client
{[
length
] [
auto
]}
|
server
{[
length
] [
auto
]}}—Sets the maximum DNS
message length, from 512 to 65535 bytes. You can also set the
maximum length for client or server messages.
auto
sets the
maximum length to the value in the Resource Record.
•
nat-rewrite
—Translates the DNS record based on the NAT
configuration.
•
protocol-enforcement
—Enables DNS message format
check, including domain name length of no more than 255
characters, label length of 63 characters, compression, and
looped pointer check.
•
tsig enforced action
{[
drop
] [
log
]}—Requires a TSIG
resource record to be present.
drop
drops a non-conforming
packet.
log
logs the packet.
Command
Purpose
Содержание 5505 - ASA Firewall Edition Bundle
Страница 28: ...Glossary GL 24 Cisco ASA Series CLI Configuration Guide ...
Страница 61: ...P A R T 1 Getting Started with the ASA ...
Страница 62: ......
Страница 218: ...1 56 Cisco ASA Series CLI Configuration Guide Chapter 1 Managing Feature Licenses Feature History for Licensing ...
Страница 219: ...P A R T 2 Configuring High Availability and Scalability ...
Страница 220: ......
Страница 358: ...1 22 Cisco ASA Series CLI Configuration Guide Chapter 1 Information About Failover Failover Messages ...
Страница 403: ...P A R T 2 Configuring Interfaces ...
Страница 404: ......
Страница 499: ...P A R T 2 Configuring Basic Settings ...
Страница 500: ......
Страница 516: ...1 16 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Basic Settings Monitoring DNS Cache ...
Страница 533: ...P A R T 2 Configuring Objects and Access Lists ...
Страница 534: ......
Страница 558: ...1 4 Cisco ASA Series CLI Configuration Guide Chapter 1 Information About Access Lists Where to Go Next ...
Страница 601: ...P A R T 2 Configuring IP Routing ...
Страница 602: ......
Страница 632: ...1 8 Cisco ASA Series CLI Configuration Guide Chapter 1 Defining Route Maps Feature History for Route Maps ...
Страница 680: ...1 48 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring OSPF Feature History for OSPF ...
Страница 745: ...P A R T 2 Configuring Network Address Translation ...
Страница 746: ......
Страница 780: ...1 34 Cisco ASA Series CLI Configuration Guide Chapter 1 Information About NAT Where to Go Next ...
Страница 844: ...1 32 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Twice NAT Feature History for Twice NAT ...
Страница 845: ...P A R T 2 Configuring AAA Servers and the Local Database ...
Страница 846: ......
Страница 859: ...1 13 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring AAA Servers and the Local Database Configuring AAA ...
Страница 871: ...1 25 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring AAA Servers and the Local Database Configuring AAA ...
Страница 981: ...P A R T 2 Configuring Access Control ...
Страница 982: ......
Страница 994: ...1 12 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Access Rules Feature History for Access Rules ...
Страница 1028: ...1 34 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Management Access Feature History for Management Access ...
Страница 1054: ...1 26 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring AAA Rules for Network Access Feature History for AAA Rules ...
Страница 1060: ...1 6 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Web Cache Services Using WCCP Feature History for WCCP ...
Страница 1061: ...P A R T 2 Configuring Service Policies Using the Modular Policy Framework ...
Страница 1062: ......
Страница 1093: ...P A R T 2 Configuring Application Inspection ...
Страница 1094: ......
Страница 1191: ...P A R T 2 Configuring Unified Communications ...
Страница 1192: ......
Страница 1333: ...P A R T 2 Configuring Connection Settings and QoS ...
Страница 1334: ......
Страница 1370: ...1 20 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring QoS Feature History for QoS ...
Страница 1379: ...P A R T 2 Configuring Advanced Network Protection ...
Страница 1380: ......
Страница 1448: ...1 20 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Threat Detection Configuration Examples for Threat Detection ...
Страница 1474: ...1 18 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Filtering Services Monitoring Filtering Statistics ...
Страница 1475: ...P A R T 2 Configuring Modules ...
Страница 1476: ......
Страница 1504: ...1 28 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring the ASA IPS Module Feature History for the ASA IPS module ...
Страница 1528: ...1 24 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring the ASA CX Module Feature History for the ASA CX Module ...
Страница 1548: ...1 20 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring the ASA CSC Module Feature History for the CSC SSM ...
Страница 1549: ...P A R T 2 Configuring VPN ...
Страница 1550: ......
Страница 1592: ...1 42 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring IPsec and ISAKMP Supporting the Nokia VPN Client ...
Страница 1612: ...1 20 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring L2TP over IPsec Feature History for L2TP over IPsec ...
Страница 1796: ...1 6 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring the PPPoE Client Using Related Commands ...
Страница 1965: ...P A R T 2 Configuring Logging SNMP and Smart Call Home ...
Страница 1966: ......
Страница 1988: ...1 22 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring Logging Feature History for Logging ...
Страница 2002: ...1 14 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring NetFlow Secure Event Logging NSEL Feature History for NSEL ...
Страница 2036: ...1 34 Cisco ASA Series CLI Configuration Guide Chapter 1 Configuring SNMP Feature History for SNMP ...
Страница 2059: ...P A R T 2 System Administration ...
Страница 2060: ......
Страница 2098: ...1 8 Cisco ASA Series CLI Configuration Guide Chapter 1 Troubleshooting Viewing the Coredump ...
Страница 2099: ...P A R T 2 Reference ...
Страница 2100: ......