< Home

Enabling Communication Between a Virtual System and the Public System

This section describes how to configure routes and security policies for the communication between a virtual system and the public system.

Context

To enable the communication between the virtual system and public system, you need to correctly configure the routes and security policies on the virtual system and public system, just as on two physical devices.

Before the actual configuration, you are advised to read Communication Between a Virtual System and the Public System and learn about the mechanism for the communication between a virtual system and the public system.

As shown in Figure 1, routes and security policies must be configured to enable the users of vsysa to access the Internet server at IP address 3.3.3.3 through public interface GE0/0/1 of the public system.

Figure 1 Communication between a virtual system and the public system

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

If hosts in public need to access hosts in vsysa, you must configure the routes and security policies from public to vsysa.

Procedure

  1. Configure routes and security policies on vsysa.
    1. Select vsysa in the Virtual System drop-down list at the upper right corner of the page to access virtual system vsysa.
    2. Choose Network > Route > Static Route.
    3. Click Add and configure a static route to the Internet as follows:

      Source Virtual Router

      vsysa

      Destination Address/Mask

      3.3.3.3/255.255.255.255

      Destination Virtual Router

      public

      Next Hop

      -

      Interface

      -

    4. Click OK.
    5. Choose Network > Interface.
    6. Click next to the Virtual-if1 interface to set an IP address, add the interface to the Untrust zone. The IP address can be any value as long as it does not conflict with the IP address on any other interface.

      The ID of a virtual interface is automatically assigned based on existing IDs in the system. Therefore, in actual configurations, the interface might not be Virtual-if1. You can view the mapping between the virtual system and virtual interface in Interface List.

    7. Click OK.
    8. Choose Policy > Security Policy > Security Policy.
    9. Click Add Security Policy and configure a security policy as follows:

      Name

      to_internet

      Source Zone

      trust

      Destination Zone

      untrust

      Source Address/Region

      10.3.0.0/24

      Destination Address/Region

      3.3.3.3/32

      Action

      Permit

    10. Click OK.
  2. Configure routes and security policies on the public system.
    1. Select public in the Virtual System drop-down list at the upper right corner of the page to access the public system.
    2. Choose Network > Route > Static Route.
    3. Click Add and configure a default route to the Internet as follows:

      Protocol Type

      IPv4

      Source Virtual Router

      public

      Destination Address/Mask

      0.0.0.0/0.0.0.0

      Destination Virtual Router

      public

      Next Hop

      1.1.1.254

      Interface

      -

      In this example, only users in vsysa need to access the server in root system. Therefore, you only need to configure the unidirectional route from vsysa to root system. The reply packets from the server will match the session table of root system and be directly forwarded to vsysa. This configuration is different from the route configuration for forwarding within one virtual system.

      If users in the root system need to access hosts in vsysa, you must configure a static route from the root system to vsysa. Set Source Virtual Router of the route to public, Destination Address/Mask to 10.3.0.0/24, and Destination Virtual Router to vsysa.

    4. Click OK.
    5. Choose Network > Interface.
    6. Click next to the Virtual-if0 interface to set an IP address, add the interface to the Trust zone. The IP address can be any value as long as it does not conflict with the IP address on any other interface.
    7. Click OK.
    8. Choose Policy > Security Policy > Security Policy.
    9. Click Add Security Policy and configure a security policy as follows:

      Name

      vsys_to_internet

      Source Zone

      trust

      Destination Zone

      untrust

      Source Address/Region

      any

      Destination Address/Region

      any

      Action

      Permit

    10. Click OK.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >