An enterprise may have multiple departments, and each department has specific functions and responsibilities and requires specific network management policies, which complicates the configuration. As the egress gateway of the enterprise network, the FW uses virtual systems to manage departments separately, simplifying the configuration.
Medium-sized enterprise A deploys a firewall as the network gateway. The network of this enterprise is divided into three subnets respectively for the R&D, financial, and administrative department. The security policies for the three departments are different and must meet the following requirements:
Configure virtual systems to meet the preceding requirements. Figure 1 shows the networking diagram.
Item |
Data |
Description |
|---|---|---|
public |
|
In the example, all departments must access the Internet from their own virtual systems through the public system. The departments do not have overlapping private IP addresses. Therefore, you are advised to configure the NAT policies on the public system. |
vsysa |
|
- |
vsysb |
|
- |
vsysc |
|
- |
Resource class |
|
The three departments have similar traffic volumes and therefore are assigned the same resource class. |

Use the vsysa administrator account admin@@vsysa to log in to the firewall. Change the login password before performing the following operations.
Set IP addresses for interfaces and assign the interfaces to security zones. The IP address of Virtual-if 1 can be set to any address but it must be different from the IP addresses of all the other interfaces.
The IDs of Virtual-if interfaces are randomly assigned from available IDs in the system. Therefore, in the actual configuration, the interface may not be Virtual-if 1.
In this example, the network topology and routing configuration are simplified. If vsysa only needs to communicate with the Internet, set Destination Address/Mask to 0.0.0.0 0.0.0.0. That is, all packets are sent to the root system. In practice, for accurate routing information, Destination Address/Mask should be set to a specific Internet address range that the intranet users are allowed to access. Incorrect routing configurations may interrupt the communications of the private networks connected to vsysa.
The configuration is similar to that of the R&D department except the following:
Configuration script of the root system:
# sysname FW # vsys enable # resource-class r1 resource-item-limit session reserved-number 10000 maximum 50000 resource-item-limit policy reserved-number 300 resource-item-limit user reserved-number 300 resource-item-limit user-group reserved-number 10 resource-item-limit bandwidth 20 outbound # vsys name vsysa 1 assign resource-class r1 assign interface GigabitEthernet0/0/3 # vsys name vsysb 2 assign resource-class r1 assign interface GigabitEthernet0/0/4 # vsys name vsysc 3 assign resource-class r1 assign interface GigabitEthernet0/0/5 # interface GigabitEthernet0/0/1 ip address 1.1.1.1 255.255.255.0 # interface Virtual-if0 ip address 172.16.0.1 255.255.255.0 # firewall zone trust set priority 85 add interface Virtual-if0 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # ip route-static 0.0.0.0 0.0.0.0 1.1.1.254 # security-policy rule name to_internet source-zone trust destination-zone untrust action permit # nat-policy rule name nat1 source-zone trust egress-interface GigabitEthernet0/0/1 source-address 10.3.0.0 16 action source-nat easy-ip # return
Configuration script of vsysa:
# interface GigabitEthernet0/0/3 ip address 10.3.0.1 255.255.255.0 service-manage ping permit # interface Virtual-if1 ip address 172.16.1.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface Virtual-if1 # aaa manager-user admin@@vsysa password cipher %@%@@~QEN4"Db/xmvR'5@=5)^`WN]~h`Mwn-{BNPy#ZYE>`6`f]X%@%@ service-type web telnet ssh level 15 bind manager-user admin@@vsysa role system-admin # ip address-set ipaddress1 type object address 0 range 10.3.0.2 10.3.0.10 # ip route-static 0.0.0.0 0.0.0.0 public ip route-static 10.3.0.0 255.255.255.0 10.3.0.254 # security-policy rule name to_admin_department source-zone trust destination-zone untrust source-address address-set ipaddress1 destination-address 10.3.2.0 24 action deny rule name to_internet source-zone trust destination-zone untrust source-address address-set ipaddress1 action permit rule name to_internet2 source-zone trust destination-zone untrust action deny # return
Configuration script of vsysb:
# interface GigabitEthernet0/0/4 ip address 10.3.1.1 255.255.255.0 service-manage ping permit # interface Virtual-if2 ip address 172.16.2.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/4 # firewall zone untrust set priority 5 add interface Virtual-if2 # aaa manager-user admin@@vsysb password cipher %@%@zG{;O|!gEN4"Db/xmvR'5@=5)^`WN]~h`Mwn-{BNPy#ZYE>`6`f] service-type web telnet ssh level 15 bind manager-user admin@@vsysb role system-admin # ip route-static 0.0.0.0 0.0.0.0 public ip route-static 10.3.1.0 255.255.255.0 10.3.1.254 # security-policy rule name to_internet source-zone trust destination-zone untrust action deny # return
Configuration script of vsysc:
# interface GigabitEthernet0/0/5 ip address 10.3.2.1 255.255.255.0 service-manage ping permit # interface Virtual-if3 ip address 172.16.3.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/5 # firewall zone untrust set priority 5 add interface Virtual-if3 # aaa manager-user admin@@vsysc password cipher %@%@zG{;x|!gEN5"Db/6dvR'5@=5)^`WN]~h`Mwn-{BNPy#ZYE>`6`f] service-type web telnet ssh level 15 bind manager-user admin@@vsysc role system-admin # ip route-static 0.0.0.0 0.0.0.0 public ip route-static 10.3.2.0 255.255.255.0 10.3.2.254 # security-policy rule name to_rd_department source-zone trust destination-zone untrust destination-address 10.3.0.0 24 action deny rule name to_internet source-zone trust destination-zone untrust action permit # return