本檔案介紹如何透過Firepower管理中心(FMC)對Firepower威脅防禦(FTD)設定NetFlow安全事件記錄(NSEL)。
思科建議您瞭解以下主題:
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
本檔案介紹如何透過Firepower管理中心(FMC)對Firepower威脅防禦(FTD)設定NetFlow安全事件記錄(NSEL)。
FlexConfig文本對象與預定義FlexConfig對象中使用的變數相關聯。預定義的FlexConfig對象和相關文本對象可在FMC中找到,用於配置NSEL。FMC中有四個預定義的FlexConfig對象和三個預定義的文本對象。預定義的FlexConfig對象是只讀的,無法修改。要修改NetFlow的引數,可以複製對象。
表中列出了四個預定義對象:

表格中列出了三個預定義的文本對象:

本節介紹如何通過FlexConfig策略在FMC上配置NSEL。
步驟1.設定Netflow文本對象的引數。

步驟2.配置擴展訪問清單對象以匹配特定流量。

步驟3.配置FlexConfig對象。

在右側空白欄位中新增後續配置行,並將先前定義的變量($flow_export_acl.)包括在match access-list配置行中。
請注意, $符號開始於變數名稱。這樣有助於定義變數後面的變數。
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 FTD,然後驗證組態。

透過安全殼層(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
|
初始版本 |