DDoS-Guard Protection
DDoS-Guard Protection is a solution based on a partner product from DDoS-Guard. The following services are available:
-
DDoS-Guard L3-L4 Protection operates at the network (L3) and transport (L4) layers. It protects against DDoS attacks that exploit weaknesses in TCP/IP protocols and aim to exhaust bandwidth and disrupt network infrastructure;
-
DDoS-Guard Website Protection and Acceleration operates at the application layer (L7). It allows blocking attacks on web applications and websites, and accelerates an application or website using CDN and load balancing. The service can be enabled alongside the DDoS-Guard L3-L4 Protection service or separately.
DDoS-Guard L3-L4 Protection
How it works
The service only protects IP addresses assigned to hardware in the Selectel infrastructure. The service can only be enabled for addresses from a public dedicated subnet or a public subnet. The service cannot be enabled for addresses from a shared subnet (/32) or public IP addresses.
You receive a protected public IPv4 address and use it to configure traffic reception on your server. The address must be assigned to the public network interface as an additional one.
By default, one protected IP address is provided with the service. If you need to protect several servers in a pool, you must order additional protected IP addresses for them.
Incoming traffic directed to the protected address passes through filtering nodes in different parts of the world, where it is analyzed and cleaned. Every incoming packet is filtered. The cleaned traffic is directed to the server's primary address.
Pricing
The service cost consists of:
- from the selected DDoS-Guard L3-L4 Protection plan with the required throughput — 10, 20, 50, or 100 Mbps;
- cost of additional protected IPv4 addresses. The first protected address is provided free of charge; for each additional server in the pool, you must order an additional protected address;
- the cost of a new subnet, if it is required to connect the service.
You can view the DDoS-Guard L3-L4 Protection service pricing on selectel.ru.
The service is billed monthly; when ordering the service, the payment for the first month is deducted from the balance, and subsequent payments are deducted automatically at the beginning of each following period.
Depending on the balance type in your account, the single balance or the main balance is used to pay for the service.
Before enabling the service, top up your balance.
Enable the service
- If your server only has a public shared address or a public IP address, or if your servers are already under attack, order and configure a new subnet.
- Order the DDoS-Guard L3-L4 Protection service.
- If you need to protect more than one server in a pool, order additional protected IP addresses.
- Configure the protected IP address on the server.
- If you are enabling protection for a cloud server, add the protected IP address as an allowed IP address to the port.
1. Order and configure a new subnet
A new subnet is required if:
- your server only has a public shared address (
/32); - or your servers are under attack and the target IP address is already known to attackers.
Order a subnet and configure an address from it on the server:
- for a dedicated server, use the Add additional public IP addresses section of the Public networks and subnets of a dedicated server instructions;
- for a cloud server, use the Configure Internet access and access from the Internet via a public subnet section of the Configure Internet access and access from the Internet instructions.
2. Order the service
If you need to protect hardware in different pools, enable a separate protection service for each pool.
-
In the Control panel, click Products in the top menu and select DDoS protection.
-
Go to the DDoS protection section.
-
Click Order services.
-
In the row of the DDoS-Guard DDoS protection (L3-L4) service with the required bandwidth (10, 20, 50, 100 Mbps), click Pay.
-
Check the details and click Pay for service.
-
We will create a ticket to enable the service.
-
In this ticket, send us:
- IP address to be protected;
- the email for registration in the DDoS-Guard control panel. Credentials for the control panel will be sent to this email.
-
We will notify you about the connection in the ticket.
3. Order additional protected IP addresses
One protected IP address is provided with the protection service. If you need to protect more than one server in a pool, order an additional protected address for each of them.
- In the Control panel, click Products in the top menu and select DDoS protection.
- Go to the DDoS protection section.
- Click Order services.
- In the row of the DDoS-Guard DDoS protection (L3-L4) — additional IP address service, click Pay.
- Click Pay for service.
4. Configure the protected IP address on the server
Ubuntu
Debian
CentOS
Windows
-
Connect to the server via SSH or via the KVM console.
-
Find the name of the configuration file of the
netplanutility:ls /etc/netplan/The response will show the name of the configuration file. For example:
01-netcfg.yamlCopy the name of the configuration file.
-
Open the
netplanutility configuration file using the text editorvi:vi /etc/netplan/<file_name>Specify
<file_name>— the name of the configuration file that you copied in step 2. -
Add the secondary address data after the file contents:
<eth_name>:0:addresses: [<ip_address>/32]Specify:
<eth_name>— the name of the network interface to which you need to add the secondary address;<ip_address>— the protected IP address received in the ticket.
-
Press the ESC key.
-
Exit the
vitext editor and save your changes::wq -
Apply the configuration:
netplan apply -
Optional: reboot the server.
-
Configure all server applications to work with the protected IP address.
5. Add a protected IP address as an allowed IP address on the cloud server port
If you enable protection for a cloud server and traffic filtering (port security) is enabled in its public subnet, add the protected address as an allowed IP address to the port where you configured the protected address.
-
Check the traffic filtering (port security) status in the server network:
1.1. In the Control panel, in the top menu, click Products and select Cloud Servers.
1.2. Go to the Network section → Public Networks tab.
1.3. Check the card of the public subnet whose IP address you configured on the server. If the subnet is marked with , traffic filtering (port security) is enabled in the network.
-
If traffic filtering in the subnet is disabled, no additional settings are required. If filtering is enabled, add the protected IP address as an allowed IP address on the cloud server port:
Control panel
OpenStack CLI
2.1. In the Control panel, in the top menu, click Products and select Cloud Servers.
2.2. Open the server page → Ports tab.
2.3. In the row of the port to which you assigned the protected address, in the Security groups field, click .
2.4. Click Add IP/MAC pair.
2.5. Enter the protected IP address received in the ticket.
2.6. Enter the MAC address that corresponds to the IP address, or leave the default port MAC address. Do not use addresses from the
00:00:5e:00:01:82–00:00:5e:00:01:c6range. These MAC addresses are reserved by Selectel network equipment, and using them will block traffic on the cloud server interface.2.7. Click Save.
View statistics
- Go to the DDoS-Guard control panel. The login credentials can be found in the ticket on service activation.
- Open the IP transit tab. This shows statistics for total traffic before filter scrubbing. The graphs are based on five-minute traffic measurements, so peaks may be smoothed out.
Disable service
-
Make sure you have reconfigured traffic reception to an address from your subnet. The protected address you received when ordering the service will be disabled along with the protection.
-
In the Control panel, in the top menu, click Products and select DDoS protection.
-
Go to the DDoS protection section.
-
In the service menu, select Disable monthly payment. The service will remain active until the end of the paid period.
-
We will disable the service after the paid period ends.
DDoS-Guard Website Protection and Acceleration
How it works
After ordering the service, you receive a protected address to which you need to redirect your traffic. All traffic to the protected address is sent to DDoS-Guard filtering nodes, where it is analyzed and scrubbed, and then redirected to the protected server in the Selectel infrastructure.
Protection works with HTTP and HTTPS requests on ports 80 and 443 only; requests to other ports are not processed.
Enabling the service will not protect against a DDoS attack if attackers know the target IP address. Before enabling protection, remove any mention of all IP addresses you want to protect from external resources. If the IP addresses are already under attack, you must order a new subnet and configure it on your servers.
Cost
The following plans are available to order: Normal, Medium, Premium, and Enterprise. Their main differences:
- number of protected domains;
- number of servers for load balancing;
- number of rules for IP-based access restriction. You can purchase an additional rule package for any plan via a ticket;
- ability to flexibly configure filtering rules.
Filtering bandwidth and traffic volume, including legitimate traffic, are unlimited.
You can view a detailed plan comparison and pricing on selectel.ru.
The service is paid monthly: when ordering the service, the payment for the first month is debited from the balance, and subsequent payments are debited automatically at the beginning of each following period.
Depending on the balance type in the account, pooled balance or main balance is used to pay for the service.
Top up your balance before enabling the service.
Enable service
The minimum connection time is 1-2 days. If you need protection enabled urgently, create a ticket, specify the domain and IP address to be protected, and an email for registration in the DDoS-Guard control panel. After creating the ticket, call us.
- If the domain IP address is already known to attackers, order and configure a new subnet.
- Order the DDoS-Guard Website Protection and Acceleration service.
- Specify the protected address in the domain A record.
- Optional: restrict server connections from IP addresses.
- Optional: configure additional protection.
1. Order and configure a new subnet
A new subnet is required if your servers are under attack and the target IP address is already known to attackers.
Order a subnet and configure an address from it on the server:
- for a dedicated server, see the Connect additional public IP addresses subsection of the Dedicated server public networks and subnets instructions;
- for a cloud server, see the Create a public subnet subsection of the Public subnets instructions.
2. Order the service
-
In the Control panel, in the top menu, click Products and select DDoS protection.
-
Go to the DDoS protection section.
-
Click Order services.
-
In the row of the desired plan DDoS-Guard. Website protection and acceleration (Normal, Medium, Premium, Enterprise), click Pay.
-
Check the data and click Pay for service.
-
We will create a ticket to enable the service and specify the connection date.
-
In this ticket, send us:
- the domain that needs to be protected;
- the domain IP address. You can specify multiple IP addresses if they point to the same domain and load balancing is required between them;
- an email for registration in the DDoS-Guard control panel.
-
We will notify you when the service is connected.
3. Specify the protected IP address in the domain A record
- Go to the DDoS-Guard control panel.
- Enter the username and password received by email when ordering the service.
- Open the Website Protection and Acceleration service page.
- Open the Domains tab.
- Save the protected IP address specified in the Protected IP field.
- Go to the control panel of the domain registrar where your domain records are stored.
- In the domain A record, change the value to the protected IP address copied in step 5. Do not change the value of an A record intended for mail server or FTP server traffic.
- If AAAA records are specified for the domain, delete them. DDoS-Guard does not work with IPv6 addresses, and they can be attacked bypassing protection.
- If you want to protect subdomains, add an A record with the protected IP address for each of them. You can protect an unlimited number of subdomains.
4. Optional: restrict server connections from IP addresses
You can restrict server connections from all IP addresses except trusted DDoS-Guard IP addresses. For more details on the setup, see the Firewall configuration subsection of the L7 Protection Configuration DDoS-Guard documentation.
5. Optional: configure additional protection
You can configure additional protection in the DDoS-Guard control panel. For example, configure traffic filtering rules, enable geoblocking, or other options. For a full list of options, see the Website protection section of the DDoS-Guard documentation.
To configure additional protection:
- Log in to the control panel. Use the username and password received by email when ordering the service.
- Follow the relevant instructions in the Website protection section of the DDoS-Guard documentation.
View statistics
- Go to the control panel. Use the username and password received by email when ordering the service.
- View statistics following the L7 attacks and attack reports instructions in the DDoS-Guard documentation.
Disable service
- Make sure you have reconfigured traffic reception to an address from your subnet. The protected address you received when ordering the service will be disabled along with the protection.
- Open the control panel of the domain registrar where your domain records are stored.
- In the domain A record, change the value to an address from your subnet.
- In the Control panel, in the top menu, click Products and select DDoS protection.
- Go to the DDoS protection section.
- In the service menu, select Disable monthly payment. The service will remain active until the end of the paid period.
- We will disable the service after the paid period ends.