Is a VPS in India protected from DDoS attacks?
Yes, at the network level. Every RapidServer VPS in Mumbai (BOM1) and Delhi NCR (DEL1) sits behind always-on DDoS filtering at the network edge, before traffic reaches your server, from ₹581/mo plus 18% GST. Filtering is one layer, not the whole job: floods aimed at your website, password guessing and open ports still need your own defences, which this guide covers.
What is a DDoS attack?
A distributed denial-of-service (DDoS) attack floods a server or network with traffic from many machines, so real users can't get through. NIST calls it a denial of service technique that uses numerous hosts, usually a botnet of infected devices. Cloudflare's Learning Center names three types:
- Volumetric: fills the bandwidth to the target, often by amplification: small requests to open servers trigger large replies aimed at you.
- Protocol: exploits weaknesses in network layers 3 and 4 to exhaust servers and firewalls, as a SYN flood does with half-open connections.
- Application-layer (L7): sends ordinary HTTP requests to heavy pages such as login or search. Each request looks legitimate, so it is hard to filter.
What DDoS filtering on a VPS covers, and what it doesn't
Network filtering helps most against volumetric and protocol floods, because it acts before traffic reaches your server. It can't see inside your application.
| Threat | What network filtering does | What you still handle |
|---|---|---|
| Volumetric and protocol floods | Its main job, at the network edge | Close ports and services you don't use |
| HTTP floods on login or search | Partly: requests can look like real visitors | Rate limits, caching, a CDN or WAF |
| Password guessing on SSH or RDP | Not a flood, so not its job | SSH keys, fail2ban, IP allow-lists |
| An exposed database | Not covered | Listen on localhost or the private network |
| Outdated software or plugins | Not covered | Updates, backups and snapshots |
| A leaked game server IP | Floods to it still pass through the filtering | Share it carefully; use the game's rate settings |
Need a specific level of protection? Ask our sales team before you order.
How to harden your own server
1. Rate-limit requests in Nginx
Nginx's limit_req module caps requests per client IP: extra requests wait, and those beyond the burst get a 503 by default. The first two lines go in the http block, the location in your server block:
limit_req_zone $binary_remote_addr zone=perip:10m rate=5r/s;
limit_req_status 429;
location /login {
limit_req zone=perip burst=10 nodelay;
}
Behind a CDN, restore visitor IPs with Nginx's realip module first, or you'll limit the CDN itself.
2. Put a CDN or WAF in front of a website
A CDN serves cached pages from its own network, and a web application firewall (WAF) filters HTTP floods and bad bots before they reach your VPS. Then allow ports 80 and 443 only from its published IP ranges, so attackers can't skip it.
3. Ban repeat offenders with fail2ban
fail2ban reads log files and updates firewall rules to block addresses with repeated failures for a set time. It won't absorb a flood, but it slows password guessing on SSH.
4. Close unused ports
Deny by default; open only what you serve. On Ubuntu, ufw is off by default; allow SSH from your own IP (replace the example address) before you switch it on:
sudo ufw default deny incoming sudo ufw allow from 203.0.113.10 to any port 22 proto tcp sudo ufw allow 80,443/tcp sudo ufw enable
Add the same rules in the network firewall in the control panel. CERT-In's advisory CIAD-2023-0036 also advises disabling non-essential ports and services.
5. Don't expose databases
MySQL, PostgreSQL and Redis should listen on 127.0.0.1 or the free private network between your servers in the same region, never on the public IP.
6. Lock down SSH and Remote Desktop
Use SSH keys with password login off, and allow SSH or Remote Desktop only from your own IPs. On Windows, see how to secure an RDP server.
DDoS protection for a game server
Players see a game server's IP, so it's easy to target. Our filtering covers that IP too; three habits help:
- Keep the IP private where you can. Share it with players, not on public forums; a domain name still points to it. FiveM's proxy setup docs describe
sv_forceIndirectListing, which stops the server list advertising your actual IP. - Use the game's own rate settings. Minecraft Java's
rate-limitinserver.propertiessets how many packets a player may send before being kicked; the Minecraft Wiki lists it as 0 (off) by default. - Open only the game's ports in both firewalls, as our game server and Minecraft guides show.
What to do during a DDoS attack
- Confirm it. Check your server's CPU, memory and bandwidth graphs, then your logs: the Nginx access log,
/var/log/auth.logon Ubuntu, or Event Viewer on Windows. - Contact support. Open a ticket with our 24/7 support, with times and symptoms. Keep your logs: CERT-In's advisory asks you to preserve logs of the attack type and sources.
- Tighten. Lower rate limits on the pages being hit and block clearly abusive addresses. If a rule locks you out, use the browser console in the client area.
- Scale up if the flood reaches your app. Move to a bigger plan from the client area; CPU and RAM changes apply after a reboot, and the difference is prorated to the day.
Firewall rules, full root and daily backups kept 7 days, in Mumbai or Delhi NCR from ₹581/mo plus GST.
See VPS plansWhat a RapidServer VPS includes
A RapidServer VPS is unmanaged: we supply the tools, you secure the software.
- Always-on DDoS filtering at the network edge in both data centers, plus network firewall rules in the control panel.
- Full root, or Administrator on a Windows VPS from ₹2,323/mo.
- Daily backups kept 7 days and snapshots on demand (VPS backups).
- Ready a few minutes after payment in Mumbai (BOM1) or Delhi NCR (DEL1), from ₹581/mo plus 18% GST.
Want it hardened for you? Managed support at ₹1,499/mo adds security patching, a firewall and fail2ban.