Article Details

Huawei Cloud Reseller Account Registration Huawei Cloud ECS DDoS protection guide

Huawei Cloud2026-05-15 13:57:59CloudPlus

Huawei Cloud ECS DDoS Protection Guide (Because Your Servers Deserve Better)

Let’s talk about DDoS protection for Huawei Cloud ECS. Not the dramatic “the sky is falling” version of DDoS, but the real-world, “why is our traffic doing interpretive dance and our CPU fans are filing for overtime” version. DDoS attacks can turn a normal day into a slideshow of error messages, timeouts, and angry customer tickets with titles like “Is your website having a long weekend?”

This guide is designed to be practical and readable. You’ll learn what DDoS protection actually does, where it fits into the Huawei Cloud ecosystem, how to enable it for ECS, how to validate your setup, and how to avoid common mistakes (like protecting your server… with rules that protect nobody).

Important note: Cloud consoles and feature names can evolve. If your UI looks slightly different, don’t panic. The underlying concepts remain the same: you’ll be protecting your ECS services, handling abnormal traffic, monitoring events, and making sure mitigation doesn’t block legitimate users.

1) What DDoS Protection Means in Real Life

DDoS stands for Distributed Denial of Service. The “distributed” part means multiple systems (often compromised) send traffic at the same time. The goal is usually to overwhelm bandwidth, network resources, or the server’s ability to process requests, so legitimate users can’t get through.

Think of it like a store with a single checkout lane. A normal crowd can be managed. But if thousands of people show up at once and insist on paying with invisible Monopoly money, the cashier eventually stops responding. DDoS protection is the bouncer, the security camera, and the “we’re temporarily pausing the line for everyone who looks like they might be here to start chaos.”

For ECS, protection typically involves using Huawei Cloud’s DDoS mitigation capabilities and related traffic management features. The exact workflow depends on whether you’re protecting via network-level services, using anti-DDoS subscriptions, or configuring the right protection policies for your public endpoints.

2) Where DDoS Protection Fits for Huawei Cloud ECS

Before we click any buttons, let’s understand the relationship between ECS and traffic protection. ECS is your compute instance. It can host your web app, APIs, game servers, internal services, whatever your architecture is. But attackers don’t start by politely asking ECS for permission to attack. They go after the exposed network surface: IP addresses, ports, load balancer frontends, and other public entry points.

DDoS protection generally operates at one or more layers:

  • Network layer mitigation: Absorb and filter volumetric traffic that would otherwise saturate bandwidth.
  • Protocol and state-based handling: Manage abnormal connection patterns and resource exhaustion attempts.
  • Application-aware protections (when applicable): Identify and manage abusive request patterns so your application isn’t forced to do the heavy lifting.
  • Traffic management and policies: Define what thresholds and rules trigger mitigation.

In many cloud setups, DDoS protection is configured around the public-facing endpoint(s) rather than directly inside the VM. That’s a good thing: you want the “shock absorber” outside the server when possible, so the VM focuses on serving real users.

3) Pre-Flight Checklist (Yes, Before You Press Enable)

Let’s get you ready. The fastest way to make a “DDoS protection guide” feel like a tragedy is to enable a feature without knowing what you’re protecting and how you measure success.

3.1 Know your exposed surfaces

Make a list of what’s publicly reachable. Examples:

  • Public IP address(es) attached to ECS
  • Ports: 80/443 for web, 22 for SSH (hopefully restricted), 3389 for RDP (maybe not exposed), custom API ports
  • Domain names and how they map to your endpoints
  • If you use a load balancer, note the LB listeners and back-end targets

If you don’t know what’s exposed, the attacker will. And they’ll probably be very confident about it.

3.2 Confirm your traffic flow

Does your client traffic hit an ECS public IP directly, or does it go through a load balancer or gateway? The DDoS mitigation approach may depend on this. Common patterns:

  • Direct-to-ECS: Clients connect to the ECS public IP. Protection is applied to that IP/endpoint.
  • Via load balancer: Clients hit the load balancer, and traffic is forwarded to ECS instances. Protection is often easier and more effective at the LB layer.
  • API gateway / WAF integration: You may have additional app-layer controls.

3.3 Understand your service type

Different services are sensitive to different traffic patterns. A static website tolerates some spikes differently than an API that triggers expensive database queries. A chat server with long-lived connections has different baselines than a typical request-response web app.

So before enabling anything, think:

  • What is “normal” traffic for you?
  • What are your typical request rates and connection counts?
  • What regions or user populations are legitimate?

4) Step-by-Step: Enabling DDoS Protection for ECS

Now we get to the good part: enabling DDoS protection. Because cloud consoles like to change names, this section focuses on the common logical steps you’ll follow. In most cases, you’ll subscribe to a DDoS protection service or configure it for your public endpoint(s).

4.1 Log in and locate the DDoS protection service

Start by logging into Huawei Cloud and finding the section related to DDoS protection or anti-DDoS. Depending on your account setup, the feature may appear as a dedicated service or within network/security settings.

If you can’t find it quickly, use the console search bar and look for keywords like “DDoS,” “anti-DDoS,” “elastic protection,” or similar terms. Cloud UIs are like mazes. Use the compass.

Huawei Cloud Reseller Account Registration 4.2 Choose the protection scope

You’ll typically be asked what you want to protect. Common choices include:

  • Specific public IP addresses
  • Domain-related endpoints
  • Load balancer instances or listeners
  • Other network resources that map to public accessibility

For ECS, you’ll usually protect the public-facing IP or the load balancer in front of ECS. Protecting directly reachable endpoints is straightforward, but consider whether you should put a load balancer in front if your architecture allows it. A load balancer gives you a cleaner control point for both traffic distribution and protection.

4.3 Select protection policy or mode

Many DDoS protection systems let you choose a protection policy, such as:

  • Recommended defaults: A safer starting point when you’re new to the feature.
  • Custom thresholds: You define what traffic rates or connection patterns trigger mitigation.
  • Service-based profiles: Some systems suggest templates for web, API, or other traffic types.

If you’re uncertain, begin with recommended defaults and then refine. Over-tuning protection too early can cause false positives—like accidentally installing a smoke alarm so sensitive it triggers when someone makes toast.

4.4 Add your ECS endpoint(s)

Once you’ve selected the scope and policy type, you’ll add the endpoint(s). For ECS, this generally means selecting the correct public IP and specifying which ports/services are in play.

Examples of what you might specify:

  • Protect TCP/443 for HTTPS traffic
  • Protect TCP/80 for HTTP (or redirect to HTTPS)
  • Optionally protect additional ports if you truly need them public

Try not to protect unnecessary ports “just in case.” Attackers also enjoy free snacks, and every extra open port is another door you left unlocked.

4.5 Confirm resource association

Some configurations require associating the DDoS protection service with other resources (like load balancers or gateways). Confirm that the service is correctly linked so traffic reaching your public endpoint is actually subject to mitigation.

Huawei Cloud Reseller Account Registration A quick sanity check at this stage can save you from the classic mistake: enabling protection on an IP you don’t use while your real traffic happily travels through an unprotected back alley.

4.6 Save and activate

After configuration, save and activate. Some systems take a short time to propagate changes. During that time, your traffic may behave as before.

Don’t assume instant magic. Assume it takes a few minutes for the cloud to rewire the invisible metaphorical spaghetti.

5) Choosing Thresholds and Policies Without Summoning False Positives

One of the most misunderstood parts of DDoS protection is threshold selection. If thresholds are too low, legitimate traffic can look “abusive,” and your mitigation might block or challenge real customers. If thresholds are too high, you might not mitigate early enough.

5.1 Start with recommended settings

Most platforms provide safe defaults. Use them initially. Then observe behavior during normal peaks. The goal is to learn your baseline.

5.2 Measure baseline traffic

Use monitoring data to understand typical traffic patterns: packets per second, requests per second, connection rates, and error rates. Look at metrics over several days to account for weekends, marketing campaigns, and random viral cat videos.

5.3 Tune gradually

When adjusting thresholds, do it in small steps. For example, if a recommended profile blocks traffic at a certain request rate, adjust upward slightly and confirm that legitimate clients continue to access your services. Then test again.

If you’re going to do any stress testing, do it responsibly (ideally in a test environment) and coordinate with your team. You don’t want to DDoS your own staging system and then spend three hours writing a post-mortem titled “We Thought It Was a Load Test.”

5.4 Consider traffic type differences

A bursty request pattern might be normal for web browsing, but it could be abnormal for a back-office API. Meanwhile, connection floods might be mitigated using stateful or rate-based handling. Match policy to how your app behaves.

6) Monitoring and Verification (How to Know It’s Actually Working)

Enabling DDoS protection is like buying a fire extinguisher. You want to know it’s there, charged, and not filled with glitter. So verify.

6.1 Check protection status

Most cloud consoles show the status of DDoS protection instances: active/inactive, applied policies, and associated endpoints. Confirm the protection is active for the correct IPs or load balancers.

6.2 Monitor events and logs

During or after an attack attempt, you should see events such as:

  • Detection events indicating abnormal traffic patterns
  • Mitigation actions (for example, blocking, rate limiting, or filtering)
  • Summary statistics about traffic before and after mitigation

If your system never logs any mitigation even during simulated abnormal traffic, revisit your association: perhaps the service isn’t linked to the actual endpoint, or the policy isn’t configured for the relevant protocol/port.

6.3 Validate end-user experience

The most important metric is whether legitimate users can still reach your service. Monitor:

  • HTTP status codes (2xx/3xx vs 4xx/5xx)
  • Latency and timeouts
  • Application errors (not just network errors)

It’s possible to successfully “mitigate” traffic while still harming real users—especially if thresholds are too strict. So treat user experience as a first-class citizen, not an afterthought.

6.4 Run controlled tests (if appropriate)

If your organization permits it, consider using controlled testing methods. Some platforms provide “test events” to validate configuration. If not, you can use benign high-traffic scenarios in a staging environment, or use a traffic generator that won’t exceed safety limits.

Just remember: you are trying to verify mitigation behavior, not reinvent the laws of chaos physics. Keep tests short and clearly scoped.

7) Complementary Measures Inside and Around ECS

DDoS protection at the platform level is great, but it’s not the only layer you should use. Security works best when it’s layered—like a lasagna, but less likely to collapse under its own weight.

7.1 Lock down exposed ports

Make sure only necessary ports are open. For SSH and RDP, prefer:

  • Restricting source IPs (allow lists)
  • Using VPN or bastion hosts
  • Turning off password authentication where possible

If you don’t need public access to a service, don’t expose it. DDoS protection can only protect what’s properly managed, not what’s open like a buffet line at 2 a.m.

7.2 Use application-level rate limiting

Even with network-level DDoS mitigation, your app can get overwhelmed. Add rate limiting at the application layer (or via a web proxy/WAF). For example:

  • Limit requests per IP for sensitive endpoints
  • Introduce pagination and backoff logic for expensive operations
  • Cache responses where possible

This prevents an attacker from sending a “perfectly legal” flood of requests that your server dutifully processes until it collapses from sheer politeness.

7.3 Harden your ECS instance

Inside the VM, do the basics:

  • Keep operating system and packages updated
  • Use least-privilege principles for IAM and system users
  • Monitor CPU, memory, disk I/O, and process counts
  • Enable logging and alerting for unusual patterns

Huawei Cloud Reseller Account Registration Network protection buys you time; good hygiene helps you survive what still gets through.

7.4 Use autoscaling where it makes sense

If your workload supports it, autoscaling can absorb traffic spikes. It won’t stop bandwidth floods by itself, but it can help prevent CPU exhaustion from turning into a full service outage. Pair autoscaling with network mitigation so you scale out during attacks rather than scale out into a pile of error logs.

8) Common Mistakes (So You Don’t Become the Case Study)

People make mistakes. Servers do too. But let’s reduce the odds that you’ll be the “funny” anecdote someone tells during an incident review.

8.1 Protecting the wrong endpoint

This is the most classic one. You enable protection for an IP or resource, but your traffic goes somewhere else—maybe DNS points elsewhere, maybe you changed load balancers, maybe you created a new ECS with a new public IP and forgot to attach protections.

Solution: verify endpoint mapping. Keep an up-to-date inventory of public endpoints.

8.2 Overly aggressive thresholds

If mitigation triggers too easily, legitimate traffic gets caught in the net. Your service becomes a bouncer that rejects everyone wearing a trench coat, including your customers.

Solution: start with recommended defaults, monitor, then tune gradually.

8.3 Ignoring application behavior

DDoS mitigation can reduce network-level impact, but your application might still get overwhelmed by abusive requests that aren’t filtered. For example, large payloads, expensive queries, or inefficient endpoints.

Solution: add app-layer safeguards like caching, rate limiting, and query optimization.

Huawei Cloud Reseller Account Registration 8.4 Forgetting internal dependencies

Even if ECS remains responsive, your database, caches, or downstream services might fail under attack pressure. Then everything breaks, just with extra paperwork.

Solution: monitor dependencies and consider separate protections for critical downstream resources.

9) Incident Playbook: What to Do During a Suspected DDoS

When something suspicious happens, don’t improvise like you’re on a survival show. Use a checklist. Here’s a simple incident playbook you can adapt.

9.1 Recognize symptoms

  • Sudden spikes in incoming traffic
  • Increased connection counts and retransmissions
  • Rising error rates (timeouts, 5xx)
  • Performance degradation on ECS instances

9.2 Confirm mitigation activation

Check the DDoS protection status, associated endpoint mapping, and any mitigation events. If mitigation isn’t engaged, stop and reassess scope and policy.

9.3 Validate service health for legitimate users

Make sure your monitoring includes real user checks or synthetic monitoring where possible. If only metrics look good but users are complaining, you’ve got a “technically alive but practically broken” situation.

9.4 Scale and reduce impact

Depending on your architecture:

  • Enable or adjust autoscaling (if available)
  • Temporarily restrict expensive endpoints
  • Use rate limiting at the application layer

Be cautious with emergency changes; in incidents, every change is a lever. Pulling too many levers at once can turn recovery into whack-a-mole.

9.5 After-action review

When things stabilize, review:

  • Timeline of detection and mitigation
  • What traffic types triggered rules
  • Whether thresholds were appropriate
  • Which endpoints were impacted

Then update your protection policies, monitoring, and documentation so the next incident is less of a surprise party and more of a boring routine.

10) Example Configurations (Generic, But Useful)

Below are illustrative examples of how you might think about protection for common scenarios. Your actual settings will depend on your app and traffic patterns.

10.1 Example: Public web service on ECS with HTTPS

You host a website on ECS. You expose TCP/443 and optionally TCP/80 (redirects). You enable DDoS protection on the public IP associated with your ECS instance. You choose a recommended web profile and verify mitigation logs show traffic being filtered when abnormal spikes occur.

Huawei Cloud Reseller Account Registration Then, you add application-level rate limiting for endpoints like:

  • /login
  • /api/auth
  • /search (optional caching)

Result: network-level mitigation reduces volumetric pressure; app-layer controls reduce expensive request storms.

10.2 Example: API service behind a load balancer

You route traffic through a load balancer to multiple ECS backends. You configure DDoS protection for the load balancer or its public endpoint. Policies are tuned based on typical requests per second and connection behavior.

In the app, you enable:

  • Per-IP rate limits
  • Request size limits
  • Authentication throttling for token endpoints

Result: mitigation is centralized and easier to validate, and the app avoids wasting CPU on abusive requests.

11) Frequently Asked Questions

Is DDoS protection the same as a firewall?

Huawei Cloud Reseller Account Registration No. A firewall mainly controls what traffic is allowed based on rules (ports, protocols, IPs). DDoS protection focuses on detecting abnormal traffic patterns and mitigating them to keep services available during attacks.

Will DDoS protection block all attacks automatically?

Not automatically in the sense of “perfectly and forever.” Good protection helps significantly, but you must configure and validate it. Also, attacks evolve. You should monitor and adjust thresholds based on your real traffic patterns.

Do I still need to secure the ECS VM if I enable DDoS protection?

Absolutely. DDoS protection reduces malicious pressure, but it doesn’t replace secure configuration, patching, least privilege, and application hardening.

What if my legitimate traffic is blocked?

That’s a sign your thresholds or policy are too strict. Review mitigation logs to understand which rules triggered. Then tune your settings gradually, keeping a careful eye on error rates and user experience.

Huawei Cloud Reseller Account Registration 12) Final Thoughts (With a Bow on the Bandwidth)

DDoS attacks are unpleasant, but they’re not magic. With a well-planned approach—configuring Huawei Cloud DDoS protection for your public endpoints, monitoring mitigation events, tuning policies carefully, and reinforcing your ECS workloads at multiple layers—you can keep your service standing even when the internet decides to throw a tantrum.

Start with recommended settings, validate associations, monitor baselines, and refine over time. And if you ever find yourself wondering whether your protections are working, don’t guess. Check the status, examine the logs, validate the user experience, and update your documentation. Future-you will be grateful, and future-you does not deserve extra heartbreak.

If you’d like, tell me your architecture (direct-to-ECS vs load balancer, ports, and whether you have HTTPS/WAF) and I can suggest a tailored protection approach and a monitoring checklist for your specific setup.

TelegramContact Us
CS ID
@cloudcup
TelegramSupport
CS ID
@yanhuacloud