The FW can interwork with the HiSec Insight to identify and block malicious sessions. As shown in Figure 1, the FW acts as the RESTCONF server, and the HiSec Insight as the RESTCONF client. The FW and HiSec Insight are reachable, and the FW uses the RESTCONF NBI to communicate with the HiSec Insight.
Service traffic is mirrored by the downstream switch to the HiSec Insight.

[sysname] aaa [sysname-aaa] manager-user restconf-admin [sysname-aaa-manager-user-restconf-admin] service-type api [sysname-aaa-manager-user-restconf-admin] password cipher Hello@123 [sysname-aaa-manager-user-restconf-admin] quit [sysname-aaa] quit
[sysname] api [sysname-api] api https port 8447 enable [sysname-api] undo security server-certificate [sysname-api] quit
[sysname] firewall blacklist enable
[sysname] apt-cis [sysname-apt-cis] linkage enable [sysname-apt-cis] blacklist aging-time 30 [sysname-apt-cis] log interval 1 [sysname-apt-cis] quit
This example uses Huawei S9700 to describe how to configure the port mirroring function. For the configurations of other functions, refer to the product documents of the S9700.
<sysname> display firewall blacklist item type apt-cis IP/port/protocol/user Reason Insert Time Age Time HitTimes ---------------------------------------------------------------------------------------------------------------------------- 1.1.1.1 /any (src) /any/ Apt-cis 2017/02/16 16:59:55 Permanent 2
<sysname> system-view [sysname] diagnose [sysname-diagnose] display apt-cis statistics log destination 10.1.1.1
#
aaa
manager-user restconf-admin
password cipher @%@%r"4+){k0COFQte$ymxOMEk80.\ACNlhJgDNfvyN*CqfSk83E@%@%
service-type api
#
interface GigabitEthernet0/0/1
undo shutdown
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
undo shutdown
ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/3
undo shutdown
ip address 10.1.2.1 255.255.255.0
#
firewall zone trust
set priority 85
add interface GigabitEthernet0/0/2
#
firewall zone untrust
set priority 5
add interface GigabitEthernet0/0/1
#
firewall zone dmz
set priority 50
add interface GigabitEthernet0/0/3
#
api
api https enable
#
security-policy
default action permit
rule name policy_to_cis
source-zone local
destination-zone dmz
action permit
rule name policy_to_Internet
source-zone trust
destination-zone untrust
action permit
group name https
#
apt-cis
linkage enable
#
return