当前位置:网站首页>Double machine hot standby of firewall on ENSP

Double machine hot standby of firewall on ENSP

2022-06-22 09:33:00 A clever lamb

Build a network topology
 Insert picture description here

Configure the server and client IP Address

609fc7b109dd579371eb8c7417df1f9.png
8c7ae9c8da70616e5abec28a293d306.png

Main firewall

<USG6000V1>
<USG6000V1>u t  m   // Turn off message push 
<USG6000V1>system-view 	// Enter the system view 
[USG6000V1]sysname FW4    // Change the name to FW4
[FW4]
// Add interface IP Address 
[FW4]int g1/0/0  // Access interface 
[FW4-GigabitEthernet1/0/0]ip add 10.1.10.4 24   // add to IP Address 
[FW4-GigabitEthernet1/0/0]q    // sign out 
[FW4]int g1/0/1
[FW4-GigabitEthernet1/0/1]ip add 10.1.20.4 24
[FW4-GigabitEthernet1/0/1]q
[FW4]int g1/0/6
[FW4-GigabitEthernet1/0/6]ip add 10.1.45.4 24
[FW4-GigabitEthernet1/0/6]q
[FW4]
// Add the interface address to the corresponding security zone 
[FW4]firewall zone trust       // Get into trust Area 
[FW4-zone-trust]add int g1/0/0  // Add the interface to the security zone 
[FW4-zone-trust]q
[FW4]
[FW4]firewall zone untrust
[FW4-zone-untrust]add int g1/0/1
[FW4-zone-untrust]q
[FW4]
[FW4]firewall zone name hrp_zone    // Create a name hrp_zone Safety zone of 
[FW4-zone-hrp_zone]set priority 20   // Set the security level to 20
[FW4-zone-hrp_zone]add int g1/0/6   // Add the interface to the security zone 
[FW4-zone-hrp_zone]q
[FW4]
// Access interface , To configure vrrp
[FW4]
[FW4]int g1/0/0   // Access interface 
[FW4-GigabitEthernet1/0/0]vrrp vrid 1 virtual-ip 10.1.10.254 active  
                                                                             // To configure vrrp, The name is vrid1, fictitious IP by 10.1.10.254, The role of active
[FW4-GigabitEthernet1/0/0]q
[FW4]int g1/0/1
[FW4-GigabitEthernet1/0/1]
[FW4-GigabitEthernet1/0/1]vrrp vrid 2 virtual-ip 10.1.20.254 active
                                                                             // To configure vrrp, The name is vrid2, fictitious IP by 10.1.20.254, The role of active
[FW4-GigabitEthernet1/0/1]q
[FW4]

image.png

Backup firewall

<USG6000V1>u t m
<USG6000V1>system-view 	
[USG6000V1]sysname FW5
[FW5]
[FW5]int g1/0/0
[FW5-GigabitEthernet1/0/0]ip add 10.1.10.5 24
[FW5-GigabitEthernet1/0/0]q
[FW5]int g1/0/1
[FW5-GigabitEthernet1/0/1]ip add 10.1.20.5 24 
[FW5-GigabitEthernet1/0/1]q
[FW5]int g1/0/6
[FW5-GigabitEthernet1/0/6]ip add 10.1.45.5 24
[FW5-GigabitEthernet1/0/6]q
[FW5]firewall zone trust
[FW5-zone-trust]add int g1/0/0
[FW5-zone-trust]q
[FW5]firewall zone untrust
[FW5-zone-untrust]add int g1/0/1
[FW5-zone-untrust]q
[FW5]firewall zone name hrp_zone 
[FW5-zone-hrp_zone]set priority 20
[FW5-zone-hrp_zone]add int g1/0/6
[FW5-zone-hrp_zone]q
[FW5]
[FW5]
[FW5]int g1/0/0
[FW5-GigabitEthernet1/0/0]vrrp vrid 1 virtual-ip 10.1.10.254 standby
[FW5-GigabitEthernet1/0/0]q
[FW5]int g1/0/1
[FW5-GigabitEthernet1/0/1]vrrp vrid 2 virtual-ip 10.1.20.254 standby
[FW5-GigabitEthernet1/0/1]q
[FW5]

 Insert picture description here

Configure heartbeat line

[FW4]hrp int g1/0/6 remote 10.1.45.5
[FW4]hrp enable
HRP_S[FW4]
HRP_S[FW4]

 Insert picture description here

[FW5]hrp int g1/0/6 remote 10.1.45.4
[FW5]hrp enable
HRP_S[FW5]
HRP_S[FW5]

image.png
take FW5 After setting the backup firewall ,FW4 Will become the main firewall
image.png

see vrrp

HRP_M[FW4]
HRP_M[FW4]dis vrrp brief

image.png

HRP_S[FW5]
HRP_S[FW5]dis vrrp brief

image.png

Configure security policy

Configure on the main firewall , The backup firewall will back up automatically
Configure on the main firewall

HRP_M[FW4]security-policy (+B)
HRP_M[FW4-policy-security]rule name 123 (+B)
HRP_M[FW4-policy-security-rule-123]source-zone trust (+B)
HRP_M[FW4-policy-security-rule-123]destination-zone untrust (+B)
HRP_M[FW4-policy-security-rule-123]action permit (+B)
HRP_M[FW4-policy-security-rule-123]dis this
#
 rule name 123
  source-zone trust
  destination-zone untrust
  action permit
#
return
HRP_M[FW4-policy-security-rule-123]q
HRP_M[FW4-policy-security]q

 Insert picture description here
View on the standby firewall

HRP_S[FW5]dis security-policy all 

image.png

The verification results

 Insert picture description here

close FW4 Of g1/0/1 After the interface , The primary firewall becomes the standby firewall , The standby firewall becomes the primary firewall .
image.png
image.png

原网站

版权声明
本文为[A clever lamb]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220915516949.html