本文档介绍如何通过Firepower管理中心(FMC)在Firepower威胁防御(FTD)上配置NetFlow安全事件记录(NSEL)。
Cisco 建议您了解以下主题:
本文档中的信息基于以下软件和硬件版本:
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
本文档介绍如何通过Firepower管理中心(FMC)在Firepower威胁防御(FTD)上配置NetFlow安全事件记录(NSEL)。
FlexConfig文本对象与预定义FlexConfig对象中使用的变量相关联。预定义的FlexConfig对象和关联的文本对象可在FMC中找到,以配置NSEL。FMC中有四个预定义的FlexConfig对象和三个预定义的文本对象。预定义的FlexConfig对象是只读的,不能修改。要修改NetFlow的参数,可以复制对象。
表中列出了四个预定义对象:

表格中列出了三个预定义文本对象:

本节介绍如何通过FlexConfig策略在FMC上配置NSEL。
步骤1.设置Netflow的文本对象的参数。

步骤2.配置扩展访问列表对象以匹配特定流量。

步骤3.配置FlexConfig对象。

在右侧的空白字段中添加后续配置行,并在match access-list配置行中包含以前定义的变量($flow_export_acl.)。
请注意,变量name开头是$。这有助于定义后面跟的变量。
class-map flow_export_class
match access-list $flow_export_acl
完成后单击Save。

步骤4.配置Netflow目标
## destination: interface_nameif destination_ip udp_port
## event-types: any subset of {all, flow-create, flow-denied, flow-teardown, flow-update}
flow-export destination $netflow_Destination.get(0) $netflow_Destination.get(1) $netflow_Destination.get(2)
policy-map global_policy
class flow_export_class
#foreach ( $event_type in $netflow_Event_Types )
flow-export event-type $event_type destination $netflow_Destination.get(1)
#end
4.完成后单击Save。

步骤5.将FlexConfig策略分配到FTD


注意:添加发送NetFlow数据包的第二个NSEL收集器。在第1步中,添加4个变量以添加到第二个Netflow收集器IP地址。

在第4步中添加配置行:flow-export destination $netflow_Destination.get(0)$netflow_Destination.get(1)$netflow_Destination.get(2)
编辑对应变量的变量$netflow_Destination.get。在本示例中,变量值为3。例如:
flow-export destination $netflow_Destination.get(0) $netflow_Destination.get(1) $netflow_Destination.get(2)
flow-export destination $netflow_Destination.get(0) $netflow_Destination.get(3) $netflow_Destination.get(2)
此外,在配置行中添加第二个变量$netflow_Destination.get: flow-export event-type $event_type destination $netflow_Destination.get(1)。 例如:
flow-export event-type $event_type destination $netflow_Destination.get(1) $netflow_Destination.get(3)
如下图所示验证此配置:

可以在FlexConfig策略中验证NetFlow配置。要预览配置,请点击Preview Config和Select并验证配置。

通过安全外壳(SSH)访问FTD,运行命令system support diagnostic-cli并运行以下命令:
> system support diagnostic-cli
Attaching to Diagnostic CLI ... Press 'Ctrl+a then d' to detach.
Type help or '?' for a list of available commands.
firepower# show access-list flow_export_acl
access-list flow_export_acl; 3 elements; name hash: 0xe30f1adf
access-list flow_export_acl line 1 extended deny object-group ProxySG_ExtendedACL_34359742097 object 10.10.10.1 any (hitcnt=0) 0x8edff419
access-list flow_export_acl line 1 extended deny ip host 10.10.10.1 any (hitcnt=0) 0x3d4f23a4
access-list flow_export_acl line 2 extended deny object-group ProxySG_ExtendedACL_34359742101 object 172.16.0.20 object 192.168.1.20 (hitcnt=0) 0x0ec22ecf
access-list flow_export_acl line 2 extended deny ip host 172.16.0.20 host 192.168.1.20 (hitcnt=0) 0x134aaeea
access-list flow_export_acl line 3 extended permit object-group ProxySG_ExtendedACL_30064776111 any any (hitcnt=0) 0x3726277e
access-list flow_export_acl line 3 extended permit ip any any (hitcnt=0) 0x759f5ecf
firepower# sh running-config class-map flow_export_class
class-map flow_export_class
match access-list flow_export_acl
firepower# show running-config policy-map
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
policy-map type inspect ip-options UM_STATIC_IP_OPTIONS_MAP
parameters
eool action allow
nop action allow
router-alert action allow
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect icmp
inspect icmp error
inspect ip-options UM_STATIC_IP_OPTIONS_MAP
inspect snmp
class flow_export_class
flow-export event-type all destination 10.20.20.1
class class-default
set connection advanced-options UM_STATIC_TCP_MAP
firepower# show running-config | include flow
access-list flow_export_acl extended deny object-group ProxySG_ExtendedACL_34359742097 object 10.10.10.1 any
access-list flow_export_acl extended deny object-group ProxySG_ExtendedACL_34359742101 object 172.16.0.20 object 192.168.1.20
access-list flow_export_acl extended permit object-group ProxySG_ExtendedACL_30064776111 any any
flow-export destination DMZ 10.20.20.1 2055
class-map flow_export_class
match access-list flow_export_acl
class flow_export_class
flow-export event-type all destination 10.20.20.1
| 版本 | 发布日期 | 备注 |
|---|---|---|
4.0 |
23-Jun-2026
|
更新的拼写、句子结构、步骤编号和间距。 |
3.0 |
16-Oct-2023
|
已更新具有不同IP地址的多个NetFlow对象的屏幕截图 |
2.0 |
10-Feb-2023
|
更新格式。已更正CCW警报。重新认证。 |
1.0 |
16-Oct-2020
|
初始版本 |