Use Cases
Tencent Cloud EdgeOne allows you to configure multiple forwarding rules for an L4 proxy instance. This document describes how to import and export multiple forwarding rules at a time.
Note:
1. You can import up to 2,000 forwarding rules at a time. Each L4 proxy instance supports up to 2,000 forwarding rules.
2. The fields in batch imported forwarding rules are not case-sensitive.
3. The imported forwarding rules cannot use the forwarding ports of existing forwarding rules.
Directions
Importing multiple forwarding rules at a time
1. Log in to the EdgeOne console and click Site List in the left sidebar. In the site list, click the target site. 2. On the site details page, click L4 proxy.
3. On the page that appears, find the target L4 proxy instance and click View in the Operation column.
4. On the page that appears, click Batch import.
5. In the pop-up window, enter the forwarding rules to be imported. You must enter one rule per row and specify the forwarding protocol, forwarding port, origin address, origin port, session persistence status, and IP passing mode. Separate fields with spaces. Example: tcp:123 test.origin.com 456 on ppv1
.
The table below lists the fields of a forwarding rule:
|
Forwarding protocol:Forwarding port | The supported forwarding protocols are TCP and UDP. The supported port number ranges from 1 to 64999,. You can enter multiple ports separated with semicolons (;) or use a hyphen to enter a port range. You can enter up to 20 ports in a forwarding rule. The following ports are reserved for internal use, please do not use them: For TCP forwarding protocol: 3943, 3944, 6088, 36000, 56000. For UDP forwarding protocol: 4789, 4790, 6080, 61708. |
Origin address | If you specify Single origin for Origin type, you can enter the IP address or domain name of a single origin. If you specify Origin group for Origin type, you can enter the name of an existing origin group in the format of og:{OriginGroupName} . Example: og:testorigin . |
Origin port | You can enter a single port or a port range. If it is a port range, the forwarding port must also be a port range, and the length of the origin port and forwarding port ranges must be consistent.
For example: If the forwarding port range is 80-90 , the origin port range can be 80-90 or 90-100 . |
Session persistence | Valid values: on and off. |
Pass client IP | Valid values: toa, ppv1, ppv2, and off. |
Rule Tag | Optional, you can enter 1-50 any characters to identify the forwarding rule. |
6. Click OK.
Exporting multiple forwarding rules at a time
1. Log in to the EdgeOne console and click Site List in the left sidebar. In the site list, click the target site. 2. On the site details page, click L4 proxy.
3. On the page that appears, find the target L4 proxy instance and click View in the Operation column.
4. On the page that appears, click Batch export.
5. In the pop-up window, click OK to export all forwarding rules to a .txt file. The format of the exported rules is the same as that of the imported rules.
Was this page helpful?