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.
In this example, the service traffic is encrypted traffic.
Create a detection profile and a detection policy to decrypt encrypted traffic. In this example, HTTPS-encrypted packets are decrypted.
HiSec Insight V100R003C30 and later versions support encrypted traffic analysis. Encrypted service traffic (such as HTTPS, POP3S, IMAPS, and SMTPS traffic encrypted based on SSL) can be directly mirrored to the HiSec Insight through the FW or switch. For versions earlier than HiSec Insight V100R003C30, you need to configure SSL encrypted traffic detection on the FW to decrypt the traffic and then mirror the traffic to the HiSec Insight through the FW.
[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] profile type decryption name profile_cis
[sysname-profile-decryption-profile_cis] detect type inbound
[sysname-profile-decryption-profile_cis] mirror-interface GigabitEthernet 0/0/3
[sysname-profile-decryption-profile_cis] quit
[sysname] decryption-policy [sysname] rule name cis [sysname-policy-decrytion-rule-cis] source-zone untrust [sysname-policy-decrytion-rule-cis] destination-zone trust [sysname-policy-decrytion-rule-cis] destination-address 10.1.1.0 24 [sysname-policy-decrytion-rule-cis] service https [sysname-policy-decrytion-rule-cis] action decrypt profile profile_cis [sysname-policy-decrytion-rule-cis] quit [sysname-policy-decrytion] 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
<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
#
profile type decryption name profile_cis
detect type inbound
mirror-interface GigabitEthernet0/0/3
#
decryption-policy
rule name cis
source-zone untrust
destination-zone trust
destination-address 10.1.1.0 mask 255.255.255.0
service https
action decrypt profile profile_cis
#
apt-cis
linkage enable
#
return