Security News > 2023 > March > Protecting collocated servers from DDoS attacks using GRE tunnels
After your incoming traffic has been scanned, all safe traffic is forwarded to your network or servers for processing through the GRE tunnel.
GRE tunnels can transport or forward multicast traffic, which is essential for actions like routing protocol advertisement and for video conferencing applications, while a VPN can only transport unicast traffic.
Bash // Create the routing table # echo '100 GRE' >> /etc/iproute2/rt tables // Respect the rules for the private subnet via that table # ip rule add from 192.168.0.0/30 table GRE // Set the default route to make sure all traffic goes via the tunnel remote server # ip route add default via 192.168.0.1 table GRE. That's it! You've successfully set up a connection from your server via a GRE tunnel to a scrubbing center.
We touched on how a GRE tunnel can protect your servers from cyberattacks, such as denial-of-service attacks, by routing the incoming network traffic through Gcore's scrubbing center.
We then walked you through how to set up a GRE tunnel connection using either your Cisco router or your Linux server.
Gcore can protect servers in its data centers as well as servers in clients' data centers using GRE tunnel.
News URL
Related news
- Crafting Shields: Defending Minecraft Servers Against DDoS Attacks (source)
- CISA: Here’s how you can foil DDoS attacks (source)
- 17,000+ Microsoft Exchange servers in Germany are vulnerable to attack, BSI warns (source)
- New HTTP/2 Vulnerability Exposes Web Servers to DoS Attacks (source)
- New HTTP/2 DoS attack can crash web servers with a single connection (source)