
2-5
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 2 Objects for Access Control
Configure Objects
•
service
{
icmp
|
icmp6
} [
icmp-type
[
icmp_code
]]—For ICMP or ICMP version 6 messages. You can
optionally specify the ICMP type by name or number (0-255) to limit the object to that message
type. If you specify a type, you can optionally specify an ICMP code for that type (1-255). If you
do not specify the code, then all codes are used.
•
service
{
tcp
|
udp
} [
source
operator
port
] [
destination
operator
port
]—For TCP or UDP. You can
optionally specify ports for the source, destination, or both. You can specify the port by name or
number. The operator can be one of the following:
–
lt
—less than.
–
gt
—greater than.
–
eq
—equal to.
–
neq
—not equal to.
–
range
—an inclusive range of values. When you use this operator, specify two port numbers, for
example,
range 100 200
.
Example
hostname(config-service-object)# service tcp destination eq http
Step 3
(Optional) Add a description.
hostname(config-service-object)#
description
string
Configure a Service Group
A service object group includes a mix of protocols, if desired, including optional source and destination
ports for TCP or UDP.
Before You Begin
You can model all services using the generic service object group, which is explained here. However,
you can still configure the types of service group objects that were available prior to ASA 8.3(1). These
legacy objects include TCP/UDP/TCP-UDP port groups, protocol groups, and ICMP groups. The
contents of these groups are equivalent to the associated configuration in the generic service object
group, with the exception of ICMP groups, which do not support ICMP6 or ICMP codes. If you still want
to use these legacy objects, for detailed instructions, see the
object-service
command description in the
command reference on Cisco.com.
Procedure
Step 1
Create or edit a service object group using the object name.
ciscoasa(config)#
object-group service
group_name
Example
hostname(config)# object-group service general-services
Step 2
Add objects and services to the service object group using one or more of the following commands. Use
the
no
form of the command to remove an object.
•
service-object
protocol
—The name or number (0-255) of an IP protocol. Specify
ip
to apply to all
protocols.
Содержание ASA 5508-X
Страница 11: ...P A R T 1 Access Control ...
Страница 12: ......
Страница 60: ...4 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 4 Access Rules History for Access Rules ...
Страница 157: ...P A R T 2 Network Address Translation ...
Страница 158: ......
Страница 204: ...9 46 Cisco ASA Series Firewall CLI Configuration Guide Chapter 9 Network Address Translation NAT History for NAT ...
Страница 232: ...10 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 10 NAT Examples and Reference DNS and NAT ...
Страница 233: ...P A R T 3 Service Policies and Application Inspection ...
Страница 234: ......
Страница 379: ...P A R T 4 Connection Management and Threat Detection ...
Страница 380: ......
Страница 400: ...16 20 Cisco ASA Series Firewall CLI Configuration Guide Chapter 16 Connection Settings History for Connection Settings ...
Страница 414: ...17 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 17 Quality of Service History for QoS ...