You can edit forwarding rules and change the origin server IP addresses in the rules.
This topic describes how to edit one or more forwarding rules.
Prerequisites
Forwarding rules are created for your Anti-DDoS Pro or Anti-DDoS Premium instance.
For more information, see
Create forwarding rules.
Limits
- You can change the IP addresses of origin servers only for forwarding rules that are
manually created. Automatically generated rules do not support this operation.
- If the forwarding protocol and port of a rule are changed, we recommend that you create
a forwarding rule.
Edit a forwarding rule
- Log on to the Anti-DDoS Pro console.
- In the top navigation bar, select the region where your instance resides.
- 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.
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.
- In the left-side navigation pane, choose .
- On the Port Config page, select the instance that you want to manage.
- Find the rule that you want to edit, and click Edit in the Actions column.
- In the Edit Rule dialog box, change the value of Origin Server IP and click OK.

After you change the IP addresses of the origin servers, Anti-DDoS Pro or Anti-DDoS
Premium forwards traffic based on the new rule.
Edit more than one forwarding rule at a time
Note Only Anti-DDoS Pro allows you to edit more than one forwarding rule at a time. When
you modify more than one rule, you can change only the IP addresses of the origin
servers.
- Log on to the Anti-DDoS Pro console.
- In the top navigation bar, select Mainland China.
If you select this region, the Anti-DDoS Pro console appears.
- In the left-side navigation pane, choose .
- On the Port Config page, select the instance that you want to manage and choose .

- In the Edit Rule dialog box, enter the information as shown in the sample file and click OK.

You can create a rule based on the following requirements.
- Each line represents a rule.
- From left to right, the fields in each rule indicate the following parameters: forwarding
protocol, forwarding port, origin server port, and IP address of the origin server.
Fields are separated by spaces. For more information about the parameters, see Rule parameters.
- Confirm the entered information, select the rules that you want to apply, and then
click OK.
- Close the Edit Rule dialog box.