16-14
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 16 Identifying Traffic with Access Lists
Simplifying Access Lists with Object Grouping
To add a service group, perform the following steps:
Step 1
To add a service group, enter the following command:
hostname(config)#
object-group service
grp_id
{
tcp
|
udp
|
tcp-udp
}
The
grp_id
is a text string up to 64 characters in length.
Specify the protocol for the services (ports) you want to add, either
tcp
,
udp
, or
tcp-udp
keywords.
Enter
tcp-udp
keyword if your service uses both TCP and UDP with the same port number, for example,
DNS (port 53).
The prompt changes to service configuration mode.
Step 2
(Optional) To add a description, enter the following command:
hostname(config-service)#
description
text
The description can be up to 200 characters.
Step 3
To define the ports in the group, enter the following command for each port or range of ports:
hostname(config-service)#
port-object
{
eq
port
|
range
begin_port
end_port
}
For a list of permitted keywords and well-known port assignments, see the
“Protocols and Applications”
section on page D-11
.
For example, to create service groups that include DNS (TCP/UDP), LDAP (TCP), and RADIUS (UDP),
enter the following commands:
hostname(config)#
object-group service
services1 tcp-udp
hostname(config-service)#
description DNS Group
hostname(config-service)#
port-object
eq
domain
hostname(config-service)#
object-group service
services2 udp
hostname(config-service)#
description RADIUS Group
hostname(config-service)#
port-object
eq
radius
hostname(config-service)#
port-object
eq
radius-acct
hostname(config-service)#
object-group service
services3 tcp
hostname(config-service)#
description LDAP Group
hostname(config-service)#
port-object
eq
ldap
Adding an ICMP Type Object Group
To add or change an ICMP type object group, perform the following steps. After you add the group, you
can add more objects as required by following this procedure again for the same group name and
specifying additional objects. You do not need to reenter existing objects; the commands you already set
remain in place unless you remove them with the
no
form of the command.
To add an ICMP type group, perform the following steps:
Step 1
To add an ICMP type group, enter the following command:
hostname(config)#
object-group icmp-type
grp_id
The
grp_id
is a text string up to 64 characters in length.
The prompt changes to ICMP type configuration mode.
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: ......