• Cloud-Native Container ProductsCloud-Native Container Products
    • KubeSphere Enterprisehot
    • KubeSphere Virtualizationhot
    • KubeSphere Enterprise HCI
  • Cloud-Native ServiceCloud-Native Service
    • KubeSphere Backuphot
    • KubeSphere Litenew
    • KubeSphere Inspectornew
  • Public Cloud Container ServicePublic Cloud Container Service
    • KubeSphere on AWS
    • KubeSphere on DigitalOcean

Add a port forwarding rule

Describes how to add a port forwarding rule for a VPC in the KSV web console.

This topic describes how to add a port forwarding rule for a virtual private cloud (VPC) in the KubeSphere Virtualization (KSV) web console.

You can add port forwarding rules to manage inbound and outbound traffic of VPCs.

Prerequisites

The user that you use has been granted permissions to manage VPCs. User admin can manage all VPCs in your cluster. Project administrators and operators can manage the VPCs created on their own and have read-only permissions on the VPCs created by other users. Project viewers can view only the VPCs created in the projects to which they belong.

Procedure

  1. Log in to the KSV web console.

  2. In the top navigation bar, click Virtual Resources to go to the management page of virtual resources.

  3. In the left-side navigation pane, choose Networks > VPCs to go to the VPC management page.

  4. On the VPCs page, click the name of a VPC to view its details.

  5. On the Port Forwarding tab, click Add Rule in the upper-right corner.

    common:NOTE

    Before you add a rule, make sure an elastic IP address (EIP) is associated with the VPC. Otherwise, the rule cannot be added.

  6. In the dialog box that appears, configure parameters for the port forwarding rule. The following table describes the parameters.

    ParameterDescription
    Name
    The name of the port forwarding rule.
    The name can contain only letters, digits, and hyphens (-), and must start and end with a letter or a digit. The name can be up to 16 characters in length.
    Protocol
    The protocol type for data transfer. KSV supports the TCP and UDP protocols.
    Source Port
    The port used for external access.
    Internal IP Address
    The endpoint of the VPC.
    Destination Port
    The port used for the VPC to provide external services.
  7. Click OK. The rule appears in the rule list after it is added.

KubeSphere ®️ © QingCloud Technologies 2022