Header
Home | Set as homepage | Add to favorites
  Search the Site     » Advanced Search
Sections
Syndication


Blogroll:

||||| ALL Cisco-Network ARTICLES |||||  
CCIE Journey,
The CCIE Journey,


Object Grouping

Feb 04,2010 by alperen

image

Object Grouping

The concept of grouping or forming groups isn’t new to network or even human interaction. Groups can be given special privileges or restrictions, and those privileges or restrictions then apply to all members of the group. In the networking world, creating groups—such as employees or marketing employees—is common, and then assigning permission to the group to access certain services, such as department servers and printers. A new employee needs only to be placed in the appropriate group to share the permissions granted that group. By the same token, if a group is denied access to a resource, such as a color printer, then everyone in the group is denied.

Getting Started with Group Objects

An object group is created with the command mode command object-group. After the object-group command creates the group, the mode changes to a corresponding Subcommand mode. The object group is then defined in the Subcommand mode. The command prompt indicates the Active mode. The object group can neither be created empty nor removed or emptied if it’s being used by another command. Use the no form of the command to remove the group. The first line is the basic syntax to create an object group. The last two lines are the actual syntax with options.

Pix(config)# object-group object-type grp-id
Pix(config)# no object-group object-type grp-id
Pix(config)# object-group {protocol|network|icmp-type} grp-id
Pix(config)# object-group service grp-id {tcp|udp|tcp-udp}

grp-id

Descriptive name for the group (1 to 64 characters). Can be any combination of letters, digits, dash (-), underscore (_), and period (.) characters.

object-type

Use one of the following object types:

Network—Group of hosts or subnets

Service—Group of TCP or UDP port numbers port service literal (www, ftp)

ICMP-type—Group of ICMP message types

Protocol—Group of IP protocols. This can be keywords icmp, ip, tcp, or udp, or an IP protocol number (1 to 254). Use IP to include IP, ICMP, TCP, and UDP

Removing Object Groups

Use the no object-group object-type grp-id command to remove a group of previously defined object-group commands. The clear object-group command form can also be used. Beware, the clear object-group command without any parameter removes all defined object groups that aren’t being used in a command. Adding the object_type parameter removes only the defined object groups that aren’t being used in a command.

Verifying Object Groups

Use the show object-group command to display a list of the currently configured object groups. The command syntax is

Pix# show object-group [ protocol | network | service | icmp-type ] | [id grp_id]

The show object-group command offers the following choices:

  • show object-group id grp_id—Displays all defined object groups by their grp_id

  • show object-group object_type—Displays all defined object groups by group type

  • show object-group—Displays all defined object groups

The following output demonstrates the show object-group command.

Pix(config)# show object-group
object-group network dmz_servers
 description: The DMZ shared servers
 network-object host 192.168.2.3
 network-object host 192.168.2.4
 network-object host 192.168.2.5
object-group network Partners
 description: The dealer and supplier partners
 network-object host 172.16.21.119
 network-object 192.168.7.0 255.255.255.0
 network-object 192.168.12.0 255.255.253.0

Nested Object Groups

An object group can contain or be contained by other object groups. For example, Partners, from the earlier example, could contain the groups AsiaPartners, EuroPartners, AfricaPartners, and NorthAmericaPartners. Each of those groups could contain other groups, such as NorthAmericaPartners might contain CanadaPartners, MexicoPartners, and USPartners. Each of the smaller subgroups only makes sense if additional resources were limited to each group. The following example demonstrates part of the previous nesting:

Pix(config)# object-group network MexicoPartners
Pix (config-network)#network-object 192.168.151.0 255.255.255.0
Pix (config-network)#network-object 192.168.159.0 255.255.255.0
Pix (config-network)#network-object 192.168.210.0 255.255.255.0
Pix(config)# object-group network CanadaPartners
Pix(config-network)# network-object 192.168.251.0 255.255.255.0
Pix(config-network)# network-object 192.168.237.0 255.255.255.0
Pix(config-network)# network-object 192.168.216.0 255.255.255.0
   (additional lines omitted)
Pix(config)# object-group network NorthAmericaPartners
Pix(config-network)# network-object CanadaPartners
Pix(config-network)# network-object MexicoPartners
Pix(config-network)# network-object USPartners
Pix(config-network)# exit
Pix(config)# access-list 101 permit tcp object-group NorthAmericaPartners any
Pix(config)# access-group 101 in interface outside

Object Grouping dramatically reduces the number of access list statements required to implement a particular security policy. The last line shows that the NorthAmericaPartners networks are allowed to have TCP access to the network.


2078 times read

Related news

» Access Through the PIX Firewall Review
by alperen posted on Feb 06,2010
» Static Routes That Track Interfaces or Other Routes
by admin posted on Jul 21,2008
» Access Through the PIX Firewall Questions Answers
by alperen posted on Feb 06,2010
» Extracting Router Information via SNMP Tools
by admin posted on Jul 21,2008
» VRRP
by admin posted on Jul 21,2008
Did you enjoy this article?
Rating: 4.00Rating: 4.00Rating: 4.00Rating: 4.00 (total 2 votes)

comment Comments (1 posted) 
  • If we run show object-group command, it will list down all the object-group on the firewall. Is there any specific command how to look inside specific object-group only? As example, if I only want to get what is inside dmz_servers only, which command should I use? I’ve tried show object-group dmz_servers & Show object-group network dmz_servers But didn’t work. Please advice
(Posted on April 14, 2010, 10:08 AM mamat)


More Top News
CCSP-Cisco Certified Security Professional
Most Popular
Most Commented
Featured Author