Home / Market / alibabacloud-ddoscoo-port-configuration-backup

alibabacloud-ddoscoo-port-configuration-backup

Export, import, and restore Alibaba Cloud DDoS Pro manual non-website TCP and UDP port forwarding rules and their portable configuration through Aliyun CLI. Use for non-website port backup, migration, reuse on another instance, or recovery; do not use for website-generated rules, website or infrastructure protection, or runtime traffic and attack data.

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

Acceptance Criteria

Package

the canonical distributable Skill name.

in their authoritative workflow references.

agree with related_apis.yaml.

route, simulated execution mode, or duplicated business workflow.

Export

security_policy at the top level.

check, session persistence, and primary/secondary policy.

values, including 0/0, empty rules, empty whitelist, and dormant rules.

fields; reject a manual regex rule.

non-website AI.

configuration, and runtime data.

0600.

Import

directly; ask the user only when multiple usable EIPs exist.

do not ask for per-field or per-step confirmation.

capability mismatch, missing field, or unknown state.

or restoring enhanced TCP ProxyEnable=0 + UsTimeout=0/0 from another state.

paths to converge.

primary/secondary transitions. Preserve target Cc.

TTL, and whitelist exactly.

conflict once per target instance with the user.

readback.

Security and consistency

one session User-Agent.

signed URL, or profile name.

server total.

failed.

non-YAML configuration unchanged.

Correct and incorrect patterns

identity. ❌ Incorrect: combine multiple ports or source-instance metadata into one backup.

directly. ❌ Incorrect: pause for confirmation before every field or stage.

that is inapplicable. ❌ Incorrect: use an empty value to represent a failed or denied read.

Incorrect: treat a RequestId or zero process exit status as restore proof.

Port evaluation suite

The core end-to-end suite contains four scenario files:

  1. Back up the existing manual TCP port.
  2. Back up the existing manual UDP port.
  3. Restore the TCP fixture to a free frontend port selected in

50000..59999. If occupied, increment by one, wrapping at 59999, until the exact (tcp, frontend_port) identity is free.

  1. Restore the UDP fixture with the same independent selection rule for

(udp, frontend_port).

The original fixtures are immutable. A restore scenario changes only port.frontend_port in a working copy, performs the complete import and exact readback, repeats the import to prove zero planned writes when already equal, then deletes only the manual test port it created and proves it is absent.

All four core scenarios use the configured domain test profile and cn-hangzhou. Backup scenarios are read-only. Restore scenarios must record the chosen port so every expectation and cleanup targets the same identity.

Supplemental scenarios cover the independent branches that the four core flows cannot exercise safely or deterministically: bare-port protocol discovery, an existing output file, multiple target EIPs, an instance-shared non-website AI conflict and readback, the four principal API error classes, and exact positive-trigger phrases. Mocked target identities must never expand authorization to a real cloud resource.

Delivery evidence

The four core scenarios prove the default-function TCP and UDP workflows, one-port YAML portability, collision-safe restoration, exact readback, idempotence, and cleanup. It does not by itself prove enhanced-only Proxy, UsTimeout, Payload, and L4-whitelist writes when the selected domain-profile instance reports FunctionVersion=default.

Customer delivery therefore also requires current live evidence from an enhanced TCP IPv4 instance for:

permanent block, and temporary-block TTL;

If that enhanced evidence is unavailable or stale, report the release evidence as partial rather than claiming the Skill is fully proven.