25-22
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 25 Configuring Application Layer Protocol Inspection
DNS Inspection
c.
(Optional) To match a specific flag that is set in the DNS header, enter the following command:
hostname(config-cmap)#
match
[
not
]
header-flag
[
eq
] {
f_well_known
|
f_value
}
Where the
f_well_known
argument is the DNS flag bit. The
f_value
argument is the 16-bit value in
hex. The
eq
keyword specifies an exact match.
d.
(Optional) To match a DNS type, including Query type and RR type, enter the following command:
hostname(config-cmap)#
match
[
not
]
dns-type
{
eq
t_well_known
|
t_val
} {
range
t_val1
t_val2
}
Where the
t_well_known
argument is the DNS flag bit. The
t_val
arguments are arbitrary values in
the DNS type field (0-65535). The
range
keyword specifies a range and the
eq
keyword specifies
an exact match.
e.
(Optional) To match a DNS class, enter the following command:
hostname(config-cmap)#
match
[
not
]
dns-class
{
eq
c_well_known
|
c_val
} {
range
c_val1
c_val2
}
Where the
c_well_known
argument is the DNS class. The
c_val
arguments are arbitrary values in
the DNS class field. The
range
keyword specifies a range and the
eq
keyword specifies an exact
match.
f.
(Optional) To match a DNS question or resource record, enter the following command:
hostname(config-cmap)#
match
{
question
| {
resource-record answer
|
authority
|
any
}}
Where the
question
keyword specifies the question portion of a DNS message. The
resource-record
keyword specifies the resource record portion of a DNS message. The
answer
keyword specifies the Answer RR section. The
authority
keyword specifies the Authority RR
section. The
additional
keyword specifies the Additional RR section.
g.
(Optional) To match a DNS message domain name list, enter the following command:
hostname(config-cmap)#
match
[
not
]
domain-name
{
regex
regex_id
|
regex class
class_id
]
The
regex
regex_name
argument is the regular expression you created in
Step 1
. The
class
regex_class_name
is the regular expression class map you created in
Step 2
.
Step 4
Create a DNS inspection policy map, enter the following command:
hostname(config)#
policy-map type inspect dns
policy_map_name
hostname(config-pmap)#
Where the
policy_map_name
is the name of the policy map. The CLI enters policy-map configuration
mode.
Step 5
(Optional) To add a description to the policy map, enter the following command:
hostname(config-pmap)#
description
string
Step 6
To apply actions to matching traffic, perform the following steps.
a.
Specify the traffic on which you want to perform actions using one of the following methods:
•
Specify the DNS class map that you created in
Step 3
by entering the following command:
hostname(config-pmap)#
class
class_map_name
hostname(config-pmap-c)#
•
Specify traffic directly in the policy map using one of the
match
commands described in
Step 3
.
If you use a
match not
command, then any traffic that does not match the criterion in the
match
not
command has the action applied.
Summary of Contents for 500 Series
Page 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Page 45: ...P A R T 1 Getting Started and General Information ...
Page 46: ......
Page 277: ...P A R T 2 Configuring the Firewall ...
Page 278: ......
Page 561: ...P A R T 3 Configuring VPN ...
Page 562: ......
Page 891: ...P A R T 4 System Administration ...
Page 892: ......
Page 975: ...P A R T 5 Reference ...
Page 976: ......