To use Anti-DDoS Pro or Anti-DDoS Premium to protect non-website services, such as client-based games, mobile games, or apps, you must create port forwarding rules. You must also use the IP address of your Anti-DDoS Pro or Anti-DDoS Premium instance as the service IP address. This topic describes how to create a port forwarding rule in the Anti-DDoS Pro or Anti-DDoS Premium console.
- Log on to the Anti-DDoS Pro console.
- In the top navigation bar, select the region where your instance resides.
You can switch the region to configure and manage Anti-DDoS Pro or Anti-DDoS Premium instances. Make sure that you select the required region when you use Anti-DDoS Pro or Anti-DDoS Premium.
- Mainland China: If you select this region, the Anti-DDoS Pro console appears.
- Outside Mainland China: If you select this region, the Anti-DDoS Premium console appears.
- In the left-side navigation pane, choose .
- On the Port Config page, select the instance you want to use and click Create Rule.
- In the Create Rule dialog box, configure the following parameters.
Parameter Description Forwarding Protocol The protocol that you want to use to forward traffic. Valid values: TCP and UDP. Forwarding Port The port that you want to use to forward traffic.
- We recommend that you specify the same port for Forwarding Port and Origin Server Port.
- To prevent domain owners from creating their own DNS servers to protect services, Anti-DDoS Pro and Anti-DDoS Premium do not protect services that use port 53.
- You cannot specify a port that is used as the forwarding port for another rule. In an instance, forwarding rules that use the same protocol must use different forwarding ports. If you attempt to create a rule with a protocol and forwarding port that are used by another rule, an error message appears. The error message indicates that these rules overlap. Do not create a rule that overlaps with forwarding rules that are automatically generated. For more information, see Automatically generate forwarding rules when you add website configurations.
Origin Server Port The port of the origin server. Origin Server IP The IP address of the origin server.Note You can specify up to 20 origin server IP addresses to implement load balancing. Separate multiple IP addresses with commas (,).
- Click OK.
What to do next
The Anti-DDoS Pro or Anti-DDoS Premium instance uses default policies to scrub and forward traffic. You can customize DDoS mitigation policies and enable the session persistence and health check features based on your business requirements. For more information, see Step 2: Configure port forwarding and anti-DDoS protection policies.