This example describes the typical application and configuration method of the flow probe function.
On an enterprise campus network, the network administrator needs to use the flow probe function on the FW to collect network-layer and transport-layer information of traffic passing through the FW. It then sends the collected information to the HiSec Insight for analysis and evaluation. In this way, threats and APT attacks on the network can be identified.

[sysname] flow-probe metadata-collect transfer-method udp [sysname] flow-probe metadata-collect server ip 10.1.2.2 port 8514 [sysname] flow-probe metadata-collect source ip 10.1.2.1
[sysname] flow-probe-policy [sysname-policy-probe] rule name policy_probe [sysname-policy-probe-rule-policy_probe] source-zone trust [sysname-policy-probe-rule-policy_probe] destination-zone untrust [sysname-policy-probe-rule-policy_probe] source-address 10.1.1.0 24 [sysname-policy-probe-rule-policy_probe] action probe network-layer
If you want the flow probe to collect SSL-encrypted traffic information, you can use the ECA (Encrypted Communication Analytics,) function. That is, set the action of the flow probe policy to network-layer application-layer or application-layer network-layer. For traffic matching the flow probe policy, the ECA function collects SSL protocol negotiation information, packet statistics information, and DNS and HTTP protocol information of the traffic. Then it sends the information to the HiSec Insight in metadata format. The HiSec Insight analyzes and assesses the information to identify malicious encrypted traffic.
Configure the third-party data source function on the HiSec Insight. For details, see the HiSec Insight product documentation. If the FW needs to send collected data to the HiSec Insight in SSL mode, you must configure the relevant certificate under the server certificate function node of the HiSec Insight.
# interface GigabitEthernet 0/0/1 undo shutdown ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet 0/0/2 undo shutdown ip address 10.1.2.1 255.255.255.0 # interface GigabitEthernet 0/0/3 undo shutdown ip address 10.1.1.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet 0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet 0/0/1 # firewall zone dmz set priority 50 add interface GigabitEthernet 0/0/2 # security-policy rule name policy_to_cis source-zone local destination-zone dmz source-address 10.1.2.0 mask 255.255.255.0 destination-address 10.1.2.0 mask 255.255.255.0 service udp action permit rule name policy_to_Internet source-zone trust destination-zone untrust source-address 10.1.1.0 mask 255.255.255.0 action permit # flow-probe metadata-collect server ip 10.1.2.2 flow-probe metadata-collect source ip 10.1.2.1 # flow-probe-policy rule name policy_probe source-zone trust destination-zone untrust source-address 10.1.1.0 mask 255.255.255.0 action probe network-layer