No consumer router can fully stop a large denial-of-service (DoS) attack, but the best routers for resisting one are those with a hardware-based firewall, SYN flood protection, connection limits and a robust CPU: the Ubiquiti UniFi Cloud Gateway line, TP-Link Omada ER605 or ER7206, MikroTik RB5009, and Asus routers with AiProtection for home users. The key fact is that volumetric floods saturate your internet link before they reach your router, so the real fix is often to change your IP address or ask your internet provider for help. This guide explains what a router can and cannot do and how to configure it.

Our Top Picks

  1. ASUS ROG Rapture GT-BE98 Pro WiFi 7 GamingQuad-Band13.7 x 8.6 x 13.7 inches4.4 pounds
    Check on Amazon
  2. ASUS GT-BE19000AI Tri-Band WiFi 7 AI Gaming RouterTri-Band13.8 x 8.7 x 13.8 inches4.4 pounds
    Check on Amazon
  3. ASUS ROG Rapture GT-BE98 PRO First Quad-Band WiFi13.7 x 8.6 x 13.7 inches4.4 pounds
    Check on Amazon
  4. ASUS ROG Strix GS-BE12000 WiFi 7 Gaming RouterTri-Band8.9 x 3.5 x 8.9 inches2.04 pounds
    Check on Amazon

Quick comparison of routers with DoS protection

Pick Best for Key protection features Price range
Ubiquiti UniFi Cloud Gateway (Ultra or Max class) Best overall for gamers who want control Stateful firewall, intrusion prevention, traffic rules, per-client limits Usually $130-$300
TP-Link Omada ER605 Best budget wired router Gigabit wired router, DoS defense settings, multi-WAN, SPI firewall Usually $60-$80
TP-Link Omada ER7206 Best for faster or multi-WAN networks Higher throughput, DoS defense, VPN, load balancing Usually $130-$180
MikroTik RB5009 Best for advanced users RouterOS firewall, connection tracking, rate limits, raw rules Usually $200-$250
Asus RT-AX86U Pro or ROG Rapture class Best for home users with Wi-Fi AiProtection, SPI firewall, DoS protection toggle, game acceleration Usually $180-$300
pfSense or OPNsense on a mini PC Best for full control Packet filter, SYN proxy, rate limiting, IDS Hardware usually $150-$400

What a router can and cannot stop

A DoS attack against a home connection is usually one of two kinds. A volumetric attack sends more traffic than your internet line can carry, for example 1 Gbps of junk toward a 300 Mbps connection. No router can fix that, because the link is full before packets reach it. A resource attack, such as a SYN flood or a large number of connections, targets the router’s CPU and connection table. A stronger router with limits and rules can survive those.

Best overall: Ubiquiti UniFi Cloud Gateway

UniFi gateways combine a stateful firewall with intrusion detection and prevention, traffic rules and clear dashboards. They suit streamers and competitive players who want visibility into which device is generating traffic. The trade-off is that you need a separate access point for Wi-Fi, and some advanced features need configuration time.

The ER605 is an inexpensive wired router with DoS defense options, an SPI firewall and support for two or more WAN connections for failover. It is a strong choice for small networks. The trade-offs are modest throughput once all protections run and no built-in Wi-Fi, so pair it with an access point.

For gigabit and multi-gigabit connections the ER7206 has more processing headroom and supports load balancing and VPNs. It is the better pick if you run a home lab or a small office from the same connection. It costs more and is overkill for a single gamer on a typical home plan.

Best for advanced users: MikroTik RB5009

RouterOS offers detailed firewall rules, connection tracking tuning, SYN cookie support and fine-grained rate limits. It has strong hardware for the price. The trade-off is a steep learning curve and a configuration interface that is unforgiving of mistakes.

Best for home Wi-Fi users: Asus with AiProtection

Asus routers in the RT-AX86U Pro and ROG Rapture class combine Wi-Fi 6 or 6E with built-in security that blocks known malicious sites and can enable DoS protection. They suit people who want one box for Wi-Fi and security. The trade-off is that protection is basic compared with a dedicated gateway and firmware updates matter.

Best for full control: pfSense or OPNsense

A small x86 mini PC running pfSense or OPNsense gives you packet filtering, SYN proxy options, intrusion detection and detailed logs. It is the most flexible option, and the performance scales with the hardware. It also needs more time to set up and maintain.

Worked example: how big a flood can your setup survive?

Estimate the packet rate that your router can handle. Packets per second (pps) = bandwidth in bits per second / (packet size in bytes x 8).

  • A 1 Gbps flood of small 64-byte packets is about 1,000,000,000 / (64 x 8) = 1.95 million pps.
  • A budget home router can often route around 100,000 to 300,000 pps with firewall features on. It will drop under a flood of that size.
  • A mid-range wired gateway handles about 1 million pps or more for forwarding, but stateful inspection lowers that number.

This is why even a strong router cannot save you from a flood larger than your connection, and why packet-per-second limits matter as much as raw speed. These figures vary by model and configuration, so check the manufacturer’s published forwarding rates.

Settings to enable on your router

  1. Disable remote administration so the login page is not reachable from the internet.
  2. Enable SPI or stateful firewall and the vendor’s DoS or flood protection option, if present.
  3. Turn off UPnP unless a game needs it; open ports give attackers a target. Use specific port forwards instead.
  4. Block WAN ping (ICMP echo from outside) so your address is less visible to scanners.
  5. Set connection limits per client where the router allows it, for example 2,000 to 5,000 connections per device.
  6. Update firmware regularly; many router attacks target known flaws.

What to do during an active attack

  1. Restart your modem to try for a new public IP address, which often ends the attack if it targets your old address.
  2. Contact your internet provider, who can filter traffic upstream or move you to a different address.
  3. Check which game or app leaked your IP. Peer-to-peer voice chat and some game lobbies expose addresses, so use a relay or VPN for streaming and competitive sessions.
  4. Consider a VPN with DDoS protection if attacks repeat, since it hides your real IP.

Decision matrix

Your situation Choose Why
Single gamer, 300-500 Mbps plan Omada ER605 plus Wi-Fi access point Low cost, enough protection
Streamer, gigabit plan UniFi Cloud Gateway Visibility and intrusion prevention
Wants one box with Wi-Fi Asus RT-AX86U Pro or ROG Rapture AiProtection and gaming features
Tinkerer MikroTik or OPNsense Full rule control
Frequently targeted Any of the above plus VPN or new IP from ISP Router alone cannot absorb a flood

Frequently Asked Questions

Can a router stop a DDoS attack?

Not a large one. A router can block malformed packets and limit connection counts, which helps with small floods. If attack traffic exceeds your internet speed, the link is already full, and you need your provider or a VPN to help.

Is DoS protection on a home router worth enabling?

Generally yes. It limits flood-type packets and rarely affects normal use. If you see odd disconnects, test with it off to find out whether it is interfering.

Will a VPN protect me from being DDoSed while gaming?

A VPN hides your home IP address from other players, which prevents most targeted attacks. The VPN provider absorbs or filters the traffic. Choose a provider that offers DDoS protection and low latency to your game server.

Why do I keep getting attacked in online games?

Many games expose player IP addresses through peer-to-peer connections or voice chat. Attackers can look up an address and flood it. Use dedicated server games, disable peer-to-peer voice where possible, or use a VPN.

Does a faster router make me safer from DoS?

Only against resource attacks. A faster CPU can handle more connections and packets per second, but it does not increase your internet bandwidth, so volumetric floods still overwhelm the connection.

Related guides

Browse all Networking guides →

More from Amazon

Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.

Amazon Business

A free business account with business pricing and bulk-buying tools for work, shop or home office.

Create a business account
Amazon Prime

Free shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.

Start a Prime free trial
Audible

Audiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.

Try Audible free
Amazon Music Unlimited

Ad-free music streaming. Eligible new subscribers can start with a free trial.

Try Music Unlimited free

As an Amazon Associate we earn from qualifying purchases.