FW1: Username:admin Password:Admin@123 The password needs to be changed. Change now? [Y/N]: y Please enter old password: Admin@123 Please enter new password: huawei@123 Please confirm new password: huawei@123 <USG6000V1> sy Enter system view, return user view with Ctrl+Z. [USG6000V1] sy FW1 [FW1]un in en Info: Saving log files... Info: Information center is disabled. [FW1]
FW2: Username:admin Password:Admin@123 The password needs to be changed. Change now? [Y/N]: y Please enter old password: Admin@123 Please enter new password: huawei@123 Please confirm new password: huawei@123 <USG6000V2> sy Enter system view, return user view with Ctrl+Z. [USG6000V2] sy FW2 [FW2]un in en Info: Saving log files... Info: Information center is disabled. [FW2]
[FW1]firewall zone trust [FW1-zone-trust]add int g1/0/2 [FW1]firewall zone untrust [FW1-zone-untrust]add int g1/0/6 [FW1]firewall zone dmz [FW1-zone-dmz]add int g1/0/5
FW2的安全区域配置
1 2 3 4 5 6
[FW2]firewall zone trust [FW2-zone-trust]add int g1/0/2 [FW2]firewall zone untrust [FW2-zone-untrust]add int g1/0/6 [FW2]firewall zone dmz [FW2-zone-dmz]add int g1/0/5
配置防火墙安全策略
FW1,FW2策略相同,这里用FW1做例子。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[FW1]security-policy [FW1-policy-security]rule name to_untrust [FW1-policy-security-rule-to_untrust]source-zone trust [FW1-policy-security-rule-to_untrust]source-zone dmz [FW1-policy-security-rule-to_untrust]source-zone local [FW1-policy-security-rule-to_untrust]destination-zone any [FW1-policy-security-rule-to_untrust]action permit [FW1-policy-security-rule-to_untrust]dis this xxxx-xx-xx xx:xx:xx.xxx # rule name to_untrust source-zone dmz source-zone local source-zone trust action permit # return
配置nat策略
FW1,FW2相同,例FW1:
1 2 3 4 5 6 7 8 9 10 11 12
[FW1]nat-policy [FW1-policy-nat]rule name to_untrust_nat [FW1-policy-nat-rule-to_untrust_nat]destination-zone untrust [FW1-policy-nat-rule-to_untrust_nat]action source-nat easy-ip [FW1-policy-nat-rule-to_untrust_nat]dis this xxxx-xx-xx xx:xx:xx.xxx # rule name to_untrust_nat destination-zone untrust action source-nat easy-ip # return
配置vrrp
FW1:
1 2 3 4
[FW1]int g1/0/2 [FW1-GigabitEthernet1/0/2]vrrp vrid 1 virtual-ip 10.1.1.100 24 active [FW1]int g1/0/6 [FW1-GigabitEthernet1/0/6]vrrp vrid 2 virtual-ip 118.122.120.254 24 active
HRP_M[FW1]display firewall session table xxxx-xx-xx xx:xx:xx.xxx Current Total Sessions : 5 icmp VPN: public --> public 10.1.1.11:57776[118.122.120.83:2048] --> 118.122. 120.200:2048 icmp VPN: public --> public 10.1.1.11:58800[118.122.120.83:2052] --> 118.122. 120.200:2048 icmp VPN: public --> public 10.1.1.11:58544[118.122.120.83:2051] --> 118.122. 120.200:2048 icmp VPN: public --> public 10.1.1.11:58032[118.122.120.83:2049] --> 118.122. 120.200:2048 icmp VPN: public --> public 10.1.1.11:58288[118.122.120.83:2050] --> 118.122. 120.200:2048