This section provides an example for configuring virtual systems to protect a cloud computing data center.
Figure 1 shows the networking diagram, a cloud computing data center uses a FW for security protection of the egress gateway to meet the following requirements:
Configure virtual systems to meet the preceding requirements.
Item |
Data |
Description |
|---|---|---|
public |
|
In this example, all intranet servers provide services to Internet users through the public system's outside interface. |
vsysa |
|
In this example, IP address mapping must be configured so that the server at the private address 10.3.0.2 can use the public address 1.1.1.2 to provide services to users of enterprise A. The public system administrator configures and manages virtual systems, and no virtual system administrator is required. |
vsysb |
|
In this example, IP address mapping must be configured so that the server at the private address 10.3.1.2 can use the public address 1.1.1.3 to provide services to users of enterprise B. The public system administrator configures and manages virtual systems, and no virtual system administrator is required. |
Resource class |
|
In this example, create two resource classes and bind each to a virtual system. |

The details are omitted because the configurations are the same as those of vsysa, except the IP addresses.
Configuration script of the public system
# sysname FW # vsys enable # nat server publicserver_vsysa 0 protocol tcp global 1.1.1.2 8080 inside 10.3.0.2 www no-reverse nat server publicserver_vsysb 1 protocol tcp global 1.1.1.3 8080 inside 10.3.1.2 www no-reverse # resource-class r1 resource-item-limit session reserved-number 10000 maximum 50000 resource-item-limit bandwidth 20 entire # resource-class r2 resource-item-limit session reserved-number 10000 maximum 50000 resource-item-limit bandwidth 30 entire # vsys name vsysa 1 assign resource-class r1 assign interface GigabitEthernet0/0/2.1 # vsys name vsysb 2 assign resource-class r2 assign interface GigabitEthernet0/0/2.2 # interface GigabitEthernet0/0/1 ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2.1 vlan-type dot1q 10 ip binding vpn-instance vsysa # interface GigabitEthernet0/0/2.2 vlan-type dot1q 20 ip binding vpn-instance vsysb # 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 ip route-static 10.3.0.0 255.255.255.0 vpn-instance vsysa ip route-static 10.3.1.0 255.255.255.0 vpn-instance vsysb # security-policy rule name internet_to_server source-zone untrust destination-zone trust destination-address 10.3.0.0 16 action permit # return
Configuration script of vsysa
# interface GigabitEthernet0/0/2.1 vlan-type dot1q 10 ip address 10.3.0.1 255.255.255.0 ip binding vpn-instance vsysa # interface Virtual-if1 ip address 172.16.1.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/2.1 # firewall zone untrust set priority 5 add interface Virtual-if1 # ip route-static 0.0.0.0 0.0.0.0 public # security-policy rule name internet_to_server source-zone untrust destination-zone trust destination-address 10.3.0.0 24 action permit # return
Configuration script of vsysb
# interface GigabitEthernet0/0/2.2 vlan-type dot1q 20 ip address 10.3.1.1 255.255.255.0 ip binding vpn-instance vsysb # interface Virtual-if2 ip address 172.16.2.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/2.2 # firewall zone untrust set priority 5 add interface Virtual-if2 # ip route-static 0.0.0.0 0.0.0.0 public # security-policy rule name internet_to_server source-zone untrust destination-zone trust destination-address 10.3.1.0 24 action permit # return