Configuring a Forwarding Rule
Scenarios
If your instance runs a non-website service, you need to configure forwarding rules for the instance.
By default, you can add a maximum of 50 forwarding rules to each instance. You can submit a service ticket to add more forwarding rules.
After configuring the rules, change the domain names based on your services. AAD will automatically forward traffic to your origin server IP addresses.
Prerequisites
- You have obtained the username and password for logging in to the management console.
- You have purchased an AAD instance.
Procedure
- Log in to the management console.
- Follow the procedure in the following figure to enter the Forwarding Configuration page. Figure 1 Forwarding configuration entry
- On the Forwarding Configuration page, add forwarding rules.
- One origin server IP address can be added to multiple forwarding rules.
- The forwarding protocol and forwarding port in each forwarding rule must be unique.
- You can enter a forwarding protocol or port to search for specific rules in the search box in the upper right corner of the page.
- Add a single forwarding rule.
- Click Add on the Forwarding Configuration page.
- In the Add Forwarding Rule dialog box, configure forwarding rule information and click OK. Table 1 describes the parameters. Figure 2 Adding a forwarding rule
Table 1 Parameters for adding a forwarding rule Parameter
Description
Forwarding Protocol
Specifies the protocol used to forward user service workload.- tcp: TCP is a connection-oriented protocol that provides reliable delivery of a stream of bytes at the transport layer.
- udp: UDP is a connectionless protocol that provides simple transaction-oriented delivery of messages at the transport layer.
Forwarding Port
Specifies the ingress port used to forward user service workload. The value can be 1 to 65535.
- In one line, website services and non-network services cannot use the same port number.
Origin Server Port
Specifies the egress port used to forward user service workload. The value can be 1 to 65535.
Origin Server IP Address
Specifies the public IP address used by the origin server.
- After configuring the rules, change the domain names based on your services. AAD will automatically forward traffic to your origin server IP addresses.
- You can add a maximum of 20 origin server IP addresses. Separate them with commas (,).
- Enter a valid public IP address.
- Click OK.
- Batch add forwarding rules.
- Click Batch Add on the Forwarding Configuration page.
- In the Batch Add Forwarding Rule dialog box, click
to select a file and click Import. Figure 3 Adding forwarding rules in batches
- Only a .txt file can be imported.
- In the imported file, fields from left to right are the forwarding protocol, forwarding port, origin server port, and origin server IP address, with spaces in between. Multiple origin server IP addresses are separated using commas (,).
- Each line accommodates only one forwarding rule. Table 1 describes each field.
- The number of forwarding rules in the file cannot exceed the quota limit. Under the quota limit, you can import a maximum of 200 forwarding rules at a time.
Follow-up Procedure
- To change the origin server IP address of a forwarding rule, see Changing an Origin Server IP Address.
- If a forwarding rule is not required, delete it by referring to Deleting a Forwarding Rule.
- To back up a forwarding rule or quickly modify its configuration information, go to Exporting a Forwarding Rule.
Last Article: Connecting a Non-website Service to AAD
Next Article: Configuring a Protection Policy
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.