Configure your DDoS-protected IP address manually.
You will need to configure your DDoS-filtered IP manually after your order is processed. The IP, gateway, and netmask have been provided to you via email. Please use the configuration examples below as needed.
Connect via SSH to your instance.
sudo -inano /etc/netplan/60-filtered-ip.yamlAdd the following, replacing it with your IP and interface information:
network:
version: 2
ethernets:
<adapter name>:
addresses:
- <your filtered IP>/<netmask>
gateway4: <filtered IP gateway>
nameservers:
addresses: [8.8.8.8, 8.8.4.4]Note: Adapter typically starts with eth or ens. You can find it with ip addr show or ifconfig.
Apply your changes:
netplan applyOr verify first with:
netplan tryConfirm the IP was added properly:
ip addr showCreate a new cloud-init configuration file:
/etc/cloud/cloud.cfg.d/95-debian-network-config.cfgWith contents:
network: {config: disabled}Edit /etc/network/interfaces.d/50-cloud-init.cfg and comment all lines related to eth0 (or any interface you want to statically configure).
Edit /etc/network/interfaces. Replace iface eth0 inet dhcp with:
iface eth0 inet static
address <your IPv4 address>/24
gateway <your IPv4 gateway>You can add IPv6 the same way:
iface eth0 inet6 static
address <your IPv6 address>/64
gateway <your IPv6 gateway>Save and close the file. Then run:
ifdown eth0;ifup eth0Or simply reboot:
rebootConnect via SSH to your instance.
sudo -iUse NetworkManager's command-line tool to add your filtered IP:
nmcli connection modify "System eth0" +ipv4.addresses "<your filtered IP>/<netmask>"
nmcli connection modify "System eth0" ipv4.gateway "<filtered IP gateway>"
nmcli connection modify "System eth0" ipv4.dns "8.8.8.8,8.8.4.4"
nmcli connection modify "System eth0" ipv4.method manualNote: The connection name may vary. Use nmcli connection show to list available connections and find the correct name.
Restart the connection to apply changes:
nmcli connection down "System eth0"
nmcli connection up "System eth0"You can also edit the network configuration file directly:
nano /etc/sysconfig/network-scripts/ifcfg-eth0Add or modify the following lines:
BOOTPROTO=static
IPADDR=<your filtered IP>
NETMASK=<your netmask>
GATEWAY=<filtered IP gateway>
DNS1=8.8.8.8
DNS2=8.8.4.4Apply the changes by restarting the network service:
systemctl restart NetworkManagerOr reboot the server:
rebootConfirm the IP was added properly:
ip addr showSuccess! Your DDoS-filtered IP should now be configured and active. You can verify connectivity by pinging the IP address or accessing services running on your server.