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
Log in to the KSV web console.
In the top navigation bar, click Virtual Resources to go to the management page of virtual resources.
In the left-side navigation pane, choose Networks > VPCs to go to the VPC management page.
On the VPCs page, click the name of a VPC to view its details.
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.
In the dialog box that appears, configure parameters for the port forwarding rule. The following table describes the parameters.
Parameter Description NameThe 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.ProtocolThe protocol type for data transfer. KSV supports the TCP and UDP protocols.Source PortThe port used for external access.Internal IP AddressThe endpoint of the VPC.Destination PortThe port used for the VPC to provide external services.Click OK. The rule appears in the rule list after it is added.