< Home

Communication Between Virtual Systems Directly

On the FW, virtual systems are isolated by default. Host in different virtual system cannot communicate. If the hosts in different virtual systems need to communicate, you must configure policies and routes for the communication.

As shown in Figure 1, after communication between virtual systems is configured, users in the network segment 10.3.0.0/24 in the virtual system vsysa can access the server at 10.3.1.3 in the virtual system vsysb.

Figure 1 Communication between virtual systems

The virtual system vsysa initiates an access request to the virtual system vsysb. The request packet enters vsysa. vsysa processes the packet based on the firewall forwarding process. Then, the request packet enters vsysb. vsysb processes the packet based on the firewall forwarding process. The detailed process is as follows:

  1. The client initiates a connection to the server.
  2. The first packet arrives at the FW and is sent to vsysa based on the interface. vsysa processes the packet based on the firewall forwarding process, including matching the blacklist, looking up the routing table, performing NAT, and matching a security policy. If the packet is denied at any step, vsysa discards the packet, and the process ends. If the packet passes all the steps, vsysa forwards the packet to vsysb. At the same time, vsysa creates the following session for the connection:

    <FW> display firewall session table verbose vsys vsysa destination global 10.3.1.3
     Current Total Sessions : 1
     icmp  VPN: vsysa --> vsysb  ID: a48f344692260c574570cc177
     Zone: trust --> untrust  TTL: 00:00:20  Left: 00:00:20
     Recv Interface: GigabitEthernet 0/0/2
     Interface: Virtual-if1  NextHop: 0.0.0.0 
     <--packets: 5 bytes: 60 --> packets: 5 bytes: 420
     10.3.0.2:43986 --> 10.3.1.3:2048 PolicyName: vsysa_to_vsysb
  3. After receiving the packet on the virtual interface Virtual-if2, vsysb processes the packet based on the firewall forwarding process, including matching the blacklist, looking up the routing table, performing NAT, and matching a security policy. If the packet is denied at any step, vsysb discards the packet, and the process ends. If the packet passes all the steps, vsysb forwards the packet to the server. At the same time, vsysb creates the following session for the connection.

    <FW> display firewall session table verbose vsys vsysb destination global 10.3.1.3
     Current Total Sessions : 1
     icmp  VPN: vsysb --> vsysb  ID: a48f3446923486676570cc177
     Zone: untrust --> trust  TTL: 00:00:20  Left: 00:00:20
     Recv Interface: Virtual-if2
     Interface: GigabitEthernet 0/0/1  NextHop: 10.1.2.1  MAC: 00e0-fc00-0014
     <--packets: 5 bytes: 60 --> packets: 5 bytes: 420
     10.3.0.2:43986 --> 10.3.1.3:2048 PolicyName: to_server
  4. The packet is forwarded through the router and arrives at the server.

As both virtual systems need to process the packet based on the firewall forwarding process, policies and routes must be configured for the virtual systems.

The preceding configuration allows only the unidirectional communication from vsysa to vsysb.

If hosts in vsysb need to access hosts in vsysa, you must configure the route from vsysb to vsysa. As shown in Figure 1, run the ip route-static vpn-instance vsysb 10.3.0.3 255.255.255.255 vpn-instance vsysa command to allow hosts in vsysb to access the host at 10.3.0.3 in vsysa. In addition, you must configure a policy. The source and destination security zones in the policy is reverse as those for the access from vsysa to vsysb.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >