Skip to content

Object Group Service

Service object groups define named collections of protocols and port configurations that can be referenced in access control lists. They support TCP, UDP, and TCP-UDP port matching with operators (eq, gt, lt), port ranges, source/destination combinations, protocol flags, and ICMP types. Service groups can also nest other service groups using group objects.

Diagram
NameTypeConstraintMandatoryDefault Value
object_groups_serviceList[object_groups_service]No

object_groups_service (iosxe.devices.configuration)

Section titled “object_groups_service (iosxe.devices.configuration)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
descriptionStringNo
group_objectsListStringNo
protocol_numbersListInteger[min: 0, max: 255]No
ahpBooleantrue, falseNo
eigrpBooleantrue, falseNo
espBooleantrue, falseNo
greBooleantrue, falseNo
icmpBooleantrue, falseNo
igmpBooleantrue, falseNo
ipBooleantrue, falseNo
ipinipBooleantrue, falseNo
nosBooleantrue, falseNo
ospfBooleantrue, falseNo
pcpBooleantrue, falseNo
pimBooleantrue, falseNo
tcp_protocolBooleantrue, falseNo
udp_protocolBooleantrue, falseNo
icmp_port_numberIntegermin: 0, max: 255No
icmp_alternate_addressBooleantrue, falseNo
icmp_conversion_errorBooleantrue, falseNo
icmp_echoBooleantrue, falseNo
icmp_echo_replyBooleantrue, falseNo
icmp_information_replyBooleantrue, falseNo
icmp_information_requestBooleantrue, falseNo
icmp_mask_replyBooleantrue, falseNo
icmp_mask_requestBooleantrue, falseNo
icmp_mobile_redirectBooleantrue, falseNo
icmp_parameter_problemBooleantrue, falseNo
icmp_redirectBooleantrue, falseNo
icmp_router_advertisementBooleantrue, falseNo
icmp_router_solicitationBooleantrue, falseNo
icmp_source_quenchBooleantrue, falseNo
icmp_time_exceededBooleantrue, falseNo
icmp_timestamp_replyBooleantrue, falseNo
icmp_timestamp_requestBooleantrue, falseNo
icmp_tracerouteBooleantrue, falseNo
icmp_unreachableBooleantrue, falseNo
tcp_dst_portsList[tcp_dst_ports]No
tcp_dst_port_listListStringNo
tcp_dst_port_rangesList[tcp_dst_port_ranges]No
tcp_src_portsList[tcp_src_ports]No
tcp_src_port_listListStringNo
tcp_src_port_rangesList[tcp_src_port_ranges]No
tcp_src_dst_ports_opList[tcp_src_dst_ports_op]No
tcp_src_dst_port_listList[tcp_src_dst_port_list]No
tcp_src_dst_ports_src_opList[tcp_src_dst_ports_src_op]No
tcp_src_dst_ports_dst_opList[tcp_src_dst_ports_dst_op]No
tcp_src_range_dst_ports_opList[tcp_src_range_dst_ports_op]No
tcp_src_range_dst_port_listList[tcp_src_range_dst_port_list]No
tcp_src_dst_range_ports_opList[tcp_src_dst_range_ports_op]No
tcp_src_dst_range_port_listList[tcp_src_dst_range_port_list]No
tcp_src_range_dst_range_port_listList[tcp_src_range_dst_range_port_list]No
udp_dst_portsList[udp_dst_ports]No
udp_dst_port_listListStringNo
udp_dst_port_rangesList[udp_dst_port_ranges]No
udp_src_portsList[udp_src_ports]No
udp_src_port_listListStringNo
udp_src_port_rangesList[udp_src_port_ranges]No
udp_src_dst_ports_opList[udp_src_dst_ports_op]No
udp_src_dst_port_listList[udp_src_dst_port_list]No
udp_src_dst_ports_src_opList[udp_src_dst_ports_src_op]No
udp_src_dst_ports_dst_opList[udp_src_dst_ports_dst_op]No
udp_src_range_dst_ports_opList[udp_src_range_dst_ports_op]No
udp_src_range_dst_port_listList[udp_src_range_dst_port_list]No
udp_src_dst_range_ports_opList[udp_src_dst_range_ports_op]No
udp_src_dst_range_port_listList[udp_src_dst_range_port_list]No
udp_src_range_dst_range_port_listList[udp_src_range_dst_range_port_list]No
tcp_udp_dst_portsList[tcp_udp_dst_ports]No
tcp_udp_dst_port_listListStringNo
tcp_udp_dst_port_rangesList[tcp_udp_dst_port_ranges]No
tcp_udp_src_portsList[tcp_udp_src_ports]No
tcp_udp_src_port_listListStringNo
tcp_udp_src_port_rangesList[tcp_udp_src_port_ranges]No
tcp_udp_src_dst_ports_opList[tcp_udp_src_dst_ports_op]No
tcp_udp_src_dst_port_listList[tcp_udp_src_dst_port_list]No
tcp_udp_src_dst_ports_src_opList[tcp_udp_src_dst_ports_src_op]No
tcp_udp_src_dst_ports_dst_opList[tcp_udp_src_dst_ports_dst_op]No
tcp_udp_src_range_dst_ports_opList[tcp_udp_src_range_dst_ports_op]No
tcp_udp_src_range_dst_port_listList[tcp_udp_src_range_dst_port_list]No
tcp_udp_src_dst_range_ports_opList[tcp_udp_src_dst_range_ports_op]No
tcp_udp_src_dst_range_port_listList[tcp_udp_src_dst_range_port_list]No
tcp_udp_src_range_dst_range_port_listList[tcp_udp_src_range_dst_range_port_list]No

tcp_dst_ports (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_dst_ports (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_dst_port_ranges (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_dst_port_ranges (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_ports (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_ports (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_port_ranges (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_port_ranges (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_dst_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_dst_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_dst_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_dst_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_dst_ports_src_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_dst_ports_src_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_dst_ports_dst_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_dst_ports_dst_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_range_dst_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_range_dst_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_range_dst_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_range_dst_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_dst_range_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_dst_range_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_dst_range_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_dst_range_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_src_range_dst_range_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_src_range_dst_range_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_dst_ports (iosxe.devices.configuration.object_groups_service)

Section titled “udp_dst_ports (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_dst_port_ranges (iosxe.devices.configuration.object_groups_service)

Section titled “udp_dst_port_ranges (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_ports (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_ports (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_port_ranges (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_port_ranges (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_dst_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_dst_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_dst_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_dst_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_dst_ports_src_op (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_dst_ports_src_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_dst_ports_dst_op (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_dst_ports_dst_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_range_dst_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_range_dst_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_range_dst_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_range_dst_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_dst_range_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_dst_range_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_dst_range_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_dst_range_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

udp_src_range_dst_range_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “udp_src_range_dst_range_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_dst_ports (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_dst_ports (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_dst_port_ranges (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_dst_port_ranges (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_ports (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_ports (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_port_ranges (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_port_ranges (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_dst_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_dst_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_dst_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_dst_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_dst_ports_src_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_dst_ports_src_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_dst_ports_dst_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_dst_ports_dst_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_range_dst_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_range_dst_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
operatorChoiceeq, gt, ltYes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_range_dst_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_range_dst_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_dst_range_ports_op (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_dst_range_ports_op (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
operatorChoiceeq, gt, ltYes
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_dst_range_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_dst_range_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

tcp_udp_src_range_dst_range_port_list (iosxe.devices.configuration.object_groups_service)

Section titled “tcp_udp_src_range_dst_range_port_list (iosxe.devices.configuration.object_groups_service)”
NameTypeConstraintMandatoryDefault Value
src_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
src_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_min_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes
dst_max_portAnyString or Integer or String[Regex: ^.*[\$\%]\{.*$]Yes

Sample Configuration: UDP destination ports

Section titled “Sample Configuration: UDP destination ports”
object-group service ser-Syslog
description Syslog Server
udp eq syslog
!
object-group service ser-SNMP
description SNMP
udp eq snmp
udp eq snmptrap
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-Syslog
description: Syslog Server
udp_dst_ports:
- operator: eq
port: syslog
- name: ser-SNMP
description: SNMP
udp_dst_ports:
- operator: eq
port: snmp
- operator: eq
port: snmptrap

Sample Configuration: TCP-UDP destination ports

Section titled “Sample Configuration: TCP-UDP destination ports”
object-group service ser-RDP
description Remote Desktop
tcp-udp eq 3389
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-RDP
description: Remote Desktop
tcp_udp_dst_ports:
- operator: eq
port: 3389

Sample Configuration: TCP destination port ranges

Section titled “Sample Configuration: TCP destination port ranges”
object-group service ser-HighPorts
description High port range
tcp range 1024 2048
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-HighPorts
description: High port range
tcp_dst_port_ranges:
- min_port: 1024
max_port: 2048
object-group service ser-Tunnels
description Tunnel protocols
ahp
esp
gre
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-Tunnels
description: Tunnel protocols
ahp: true
esp: true
gre: true
object-group service ser-ICMP-Diag
description ICMP diagnostics
icmp echo
icmp echo-reply
icmp unreachable
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-ICMP-Diag
description: ICMP diagnostics
icmp_echo: true
icmp_echo_reply: true
icmp_unreachable: true

Sample Configuration: Nested group objects

Section titled “Sample Configuration: Nested group objects”
object-group service ser-Maintenance
description Maintenance Services
group-object ser-Syslog
group-object ser-SNMP
group-object ser-RDP
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-Maintenance
description: Maintenance Services
group_objects:
- ser-Syslog
- ser-SNMP
- ser-RDP
object-group service ser-Protocols
description Raw IP protocols
47
51
89
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-Protocols
description: Raw IP protocols
protocol_numbers:
- 47
- 51
- 89

Sample Configuration: Granular ICMP types and numeric type

Section titled “Sample Configuration: Granular ICMP types and numeric type”
object-group service ser-ICMP-Detailed
description Detailed ICMP types
icmp 3
icmp redirect
icmp time-exceeded
icmp router-advertisement
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-ICMP-Detailed
description: Detailed ICMP types
icmp_port_number: 3
icmp_redirect: true
icmp_time_exceeded: true
icmp_router_advertisement: true

Sample Configuration: Source and destination port combinations

Section titled “Sample Configuration: Source and destination port combinations”
object-group service ser-SrcDst
description Source/destination port matching
tcp source eq 1000 destination eq 2000
tcp source range 3000 3100 destination eq 4000
udp source gt 1102 destination 2102
tcp-udp source 1201 destination range 7000 7100
!
iosxe:
devices:
- name: ROUTER-1
configuration:
object_groups_service:
- name: ser-SrcDst
description: Source/destination port matching
tcp_src_dst_ports_op:
- src_operator: eq
src_port: 1000
dst_operator: eq
dst_port: 2000
tcp_src_range_dst_ports_op:
- src_min_port: 3000
src_max_port: 3100
operator: eq
dst_port: 4000
udp_src_dst_ports_src_op:
- src_operator: gt
src_port: 1102
dst_port: 2102
tcp_udp_src_dst_range_port_list:
- src_port: 1201
dst_min_port: 7000
dst_max_port: 7100