Remote DDoS protection over a GRE tunnel means a large filtering network announces your IP prefixes, absorbs the attacks, and sends only clean traffic to your router through a GRE tunnel, so your servers stay where they are. At RS Computers (AS213900) the tunnel ends on our edge at Qupra Datacenter in Amsterdam, the PoP behind our IP transit in Amsterdam. A BGP session runs inside it, and your prefixes are announced on Global Secure Layer (GSL, AS137409), which filters attacks inline. Clean capacity runs from 500 Mbit/s to 10 Gbit/s, and most tunnels are live within 2 to 4 hours. Below is the customer side as we tested it on Debian 13: tunnel, BGP, MTU, MSS clamping and the return path.
Key facts, checked on 18 October 2026:
- GRE over IPv4 adds 24 bytes, a 20 byte IPv4 header plus the 4 byte GRE header of RFC 2784, which leaves 1476 bytes inside the tunnel on a 1500 byte path. Our lab ping with "don't fragment" passed at 1476 and failed at 1477.
- Cloudflare counted 23.2 million network-layer attacks in the first half of 2026, and 935 above 1 Tbps, 805 of them in Q2 (Cloudflare, 11 August 2026).
- NETSCOUT counted more than 9.1 million attacks in 1H 2026, with attacks above 1 Tbps or 1 Gpps up 1,286% year over year (NETSCOUT, released 14 October 2026).
- Cloudflare Magic Transit needs at least a /24 or a Cloudflare-owned IP, is "not a self-serve product", and takes "around one day to roll out" (Cloudflare docs, updated 6 October 2026).
How remote DDoS protection over a GRE tunnel works
A volumetric attack wins by filling the pipe in front of your server, and once your uplink is full, filtering on your own router is too late. Remote protection moves the fight upstream. GRE (Generic Routing Encapsulation) wraps each packet in an extra IP header so two routers can talk as if a cable ran between them. BGP is the protocol networks use to tell each other which addresses they can reach.
- You build a GRE tunnel from your router, or a Linux server running BIRD or FRR, to our edge at Qupra.
- We bring up BGP inside the tunnel, and your prefixes are announced on GSL's network.
- Traffic to your addresses enters GSL near the sender and passes through its filtering.
- The clean part travels to Amsterdam and down the tunnel to you.
Because the tunnel rides on your existing internet connection, it works from any data centre, office or country, with no new hardware.
What you get, and which service fits your network
| Item | Remote DDoS protection over GRE |
|---|---|
| Where it lands | Our PoP at Qupra Datacenter, Amsterdam |
| Clean capacity | From 500 Mbit/s up to 10 Gbit/s |
| Upstream | Global Secure Layer (AS137409), with inline DDoS filtering |
| Routing | BGP over the tunnel, IPv4 and IPv6, your own ASN and prefixes |
| Your ASN under GSL | Available: we add your ASN directly in GSL's portal |
| Time to go live | Usually 2 to 4 hours after we have your ASN, prefixes and tunnel endpoint |
| Price | Quoted per network on Telegram or by email, with flexible terms |
| Your situation | What to take |
|---|---|
| Own ASN and a /24 or more, servers anywhere, attacks fill your uplink | Remote DDoS protection over GRE, 500 Mbit/s to 10 Gbit/s clean |
| Own prefixes, kit in or near Amsterdam, attacks are rare | Flat-rate IP transit in Amsterdam at 1, 5 or 10 Gbit/s, by cross-connect at Qupra or hand-off at Nikhef |
| Network in Kosovo or the Balkans | IP transit in Skopje (100G port on IXP.mk, about 3 ms from Prishtina on our own network), plus GRE protection for prefixes that draw attacks |
| A /24 but no ASN yet | An ASN sponsored by us (we are a RIPE NCC member, LIR), then either service |
| One server, one IP, no /24 | Not this service: a single protected IP from a provider that sells them fits better |
Pick a clean capacity above your normal peak and below what your own uplink can carry. Send us your traffic graphs and we will size it with you, together with IP transit Amsterdam if you need plain routes too.
DDoS attacks in 2026: what the latest primary reports say
We looked for third-quarter 2026 figures first, but by 18 October 2026 we found no Q3 2026 report from Cloudflare, Qrator, Akamai or NETSCOUT. The newest primary numbers cover January to June 2026:
| Figure, first half of 2026 | Value | Source |
|---|---|---|
| Network-layer attacks under 500 Mbps | 96.62% | Cloudflare |
| Network-layer attacks over within 10 minutes | 90.60% | Cloudflare |
| Attacks above 1 Tbps | 935, with Q2 more than six times Q1 | Cloudflare |
| Carpet-bombing share | 4.54%, up from 3.97% a year earlier | NETSCOUT |
Most attacks are small and short, yet 500 Mbps still fills the uplink of many racks and offices, and a 10 minute attack is over before anyone can phone a provider to switch scrubbing on. That is why prefixes carried to us over GRE are filtered inline all the time. Carpet bombing spreads an attack across many addresses in a prefix at a low rate each, so per-IP alarms may never fire, while whole-prefix protection covers every address. To check a single server right now, see how to tell if a Linux server is under a DDoS attack.
Whole-prefix protection vs single protected IPs
With whole-prefix protection, your own /24 or larger is announced from the protected network with BGP. With a single protected IP, the provider lends you one of its addresses and forwards filtered traffic to your origin through a tunnel, with no BGP.
| Question | Whole prefix over GRE with BGP | Single protected IP |
|---|---|---|
| What you need | An ASN (or authorised space), a /24 IPv4 or /48 IPv6, route objects and ROAs | Usually just an account |
| Whose addresses | Yours, so you can change provider without renumbering | The provider's |
| Addresses covered | All 256 in a /24, carpet bombing included | One per IP you rent |
| Weak spot | The public IP your tunnel starts from | The origin's real IP, if it leaks |
If attackers find the public IP of your tunnel endpoint, they can flood it and the tunnel goes down with it. Keep that address out of DNS and run no services on it. Leased space works when the paperwork matches, as our guide on announcing leased IPv4 with an LOA and ROA explains; with no ASN yet, read how to get your own ASN and IP addresses.
The network behind it: GSL, with your ASN directly under it
Global Secure Layer is a Brisbane-based transit provider built around its own inline mitigation system, Goliath. Its pages state that it can mitigate an attack in under one second and that it peers with more than 3,500 networks. According to bgp.tools, GSL is connected to 82 internet exchanges with roughly 9.9 Tbit/s of exchange ports, buys transit from carriers including Cogent, Lumen, GTT, Zayo and NTT, and has 100 Gbit/s ports at AMS-IX, NL-ix, LSIX and Frys-IX in Amsterdam and a 400 Gbit/s port at DE-CIX in Frankfurt. Its Creatia documentation describes two stages: Level 1 handles floods and amplification with heuristics and a SYN proxy for TCP, and Level 2 is a per-prefix firewall that can accept, drop or rate-limit. Prefixes carried over GRE are always filtered inline.
Most protected-tunnel services announce your prefixes behind the reseller's own ASN. We can add your ASN directly under GSL in its Creatia portal, so your prefixes are announced straight to AS137409 and route collectors show GSL as your upstream. We connect to GSL directly in Amsterdam, so changes go straight to the people running the edge, and the same team sells flat-rate IP transit in Amsterdam and Skopje, with Hurricane Electric among our upstreams.
Tested config, part 1: the GRE tunnel and BGP on Debian 13
We built this on 18 October 2026 on our Amsterdam test server: two KVM virtual machines with Debian 13.7, kernel 6.12, 1 vCPU and 1 GiB of RAM each, one as our edge (AS64512) and one as your router (AS64513), with iproute2 6.15, BIRD 2.17.5 and nftables 1.1.3. These are private ASNs. 198.51.100.0/24 stands in for your prefix and 203.0.113.0/24 for "the internet", both documentation ranges. The lab's outer addresses were private 10.141.188.x; yours will be public.
Step 1: build the tunnel with iproute2
local is your router's public IP and remote is our edge; the /30 inside comes from us. If your firewall drops by default, first allow IP protocol 47 (GRE) from our edge address.
# as root on your router; 10.141.188.62 = your public IP, 10.141.188.80 = our edge (lab values)
ip tunnel add gre1 mode gre local 10.141.188.62 remote 10.141.188.80 ttl 255
ip link set gre1 mtu 1476 up
ip addr add 10.255.0.2/30 dev gre1
sysctl -w net.ipv4.ip_forward=1
ping -c 3 10.255.0.1
# output we saw
64 bytes from 10.255.0.1: icmp_seq=1 ttl=64 time=0.645 ms
64 bytes from 10.255.0.1: icmp_seq=2 ttl=64 time=0.546 ms
64 bytes from 10.255.0.1: icmp_seq=3 ttl=64 time=0.566 ms
3 packets transmitted, 3 received, 0% packet loss, time 2011ms
Step 2: eBGP over the tunnel with BIRD 2
Routes learned from us go into their own BIRD table and then into kernel table 100, so your normal default route stays untouched. The filters accept a default route from us and announce only your /24.
# /etc/bird/bird.conf on your router (edit as root)
router id 10.255.0.2;
log syslog all;
ipv4 table protected4;
protocol device { }
# routes learned over the tunnel go to kernel table 100, not the main table
protocol kernel kprot {
kernel table 100;
ipv4 { table protected4; import none; export where source = RTS_BGP; };
}
# the prefix we want announced from the protected network
protocol static origin {
ipv4 { table protected4; };
route 198.51.100.0/24 unreachable;
}
filter edge_in {
if net = 0.0.0.0/0 then accept;
reject;
}
filter edge_out {
if net = 198.51.100.0/24 then accept;
reject;
}
protocol bgp edge {
local 10.255.0.2 as 64513;
neighbor 10.255.0.1 as 64512;
hold time 30;
ipv4 { table protected4; import filter edge_in; export filter edge_out; };
}
# as root on your router
bird -p -c /etc/bird/bird.conf && echo "config parses OK"
systemctl restart bird
birdc show protocols
ip route show table 100
# output we saw
config parses OK
edge BGP --- up 03:11:42.913 Established
default via 10.255.0.1 dev gre1 proto bird metric 32
The lab edge ran the mirror image, with an import filter that accepts only 198.51.100.0/24, and showed 198.51.100.0/24 unicast [customer] * (100) [AS64513i] via 10.255.0.2 on gre1. For other tunnel types, see our guide on running BGP over GRE, WireGuard, IPsec or VXLAN.
Symmetric return path and rp_filter
Clean traffic arrives through the tunnel, and the replies are where most first setups break. Your server answers from your protected /24, and without extra routing those replies follow its normal default route out of the local uplink, where your local provider usually drops them as spoofed. The fix is a source rule: anything from your prefix looks up table 100, where BGP placed the default route through the tunnel.
# as root on your router
ip rule add from 198.51.100.0/24 lookup 100 priority 1000
ip route get 203.0.113.10 from 198.51.100.10 iif veth-b
# output we saw (veth-b is the lab LAN port where the server lives)
203.0.113.10 from 198.51.100.10 via 10.255.0.1 dev gre1 table 100
rp_filter is Linux's reverse path filter: it checks whether a packet's source would be routed back out of the interface it arrived on. 0 is off, 1 strict and 2 loose, and the kernel uses the higher of the "all" and per-interface values (kernel docs). Our fresh Debian 13 VMs had default.rp_filter = 2 from systemd's 50-default.conf, so gre1 started in loose mode. Three pings from the test client in each setup:
| Setup on your router | rp_filter on gre1 | Result |
|---|---|---|
| No source rule | 2 (loose, Debian default) | 0 of 3: the replies tried to leave by the local uplink and our guard rule dropped them |
| No source rule | 1 (strict) | 0 of 3: TcpExtIPReversePathFilter rose to 3, requests died on arrival |
| Source rule to table 100 | 1 (strict) | 3 of 3, about 0.6 ms |
Strict mode works once the source rule exists, while loose mode only hides the problem. The guard rule is one nftables line, in the full config below, that drops anything from your prefix trying to leave by the underlay. Replying through your local provider instead works only if it has agreed to carry your prefix as a source; Cloudflare's Magic Transit uses that "ingress-only" model by default, which is why its docs ask for routers that handle asymmetric traffic.
MTU and MSS clamping: the numbers we measured
MTU is the largest packet an interface sends; MSS is the largest TCP payload per packet, announced by each side when a connection opens. With a 1476 tunnel MTU, IPv4 MSS is 1476 minus 40 bytes of headers, or 1436, and IPv6 MSS is 1416 (we tested IPv4 only). The sweep, where -s is the payload and 28 bytes of headers come on top:
# as root on your router
for s in 1448 1449 1450; do ping -M do -c 1 -W 1 -s $s 10.255.0.1 2>&1 | grep -iE "bytes from|too long"; done
# output we saw
1456 bytes from 10.255.0.1: icmp_seq=1 ttl=64 time=0.478 ms
ping: sendmsg: Message too long
ping: sendmsg: Message too long
From the test client behind the edge, 1449 came back as Frag needed and DF set (mtu = 1476): path MTU discovery working. It breaks when a network on the path drops those ICMP messages, so we simulated that on the customer router and downloaded a 200 MB file from the protected server:
| MSS setup on your router | ICMP "fragmentation needed" | 200 MB download |
|---|---|---|
| No clamping | Dropped | HTTP 200, then 0 bytes in 10 seconds |
Outgoing only: oifname "gre1" ... set rt mtu | Dropped | 0 bytes in 10 seconds |
| Fixed 1436, both directions | Dropped | Complete in 0.89 seconds |
| Fixed 1436, both directions | Allowed | Complete, 0.32 to 0.40 seconds per run |
The second row is the trap. The rule from the nftables wiki, applied only to packets leaving through gre1, fixed the server's reply but not the client's opening SYN. That SYN arrives through the tunnel, and its MSS of 1460 is what sizes the server's packets on a download. Clamp both directions:
# part of /etc/nftables.conf on your router (edit as root)
table inet mss {
chain forward {
type filter hook forward priority mangle; policy accept;
oifname "gre1" tcp flags syn tcp option maxseg size > 1436 tcp option maxseg size set 1436
iifname "gre1" tcp flags syn tcp option maxseg size > 1436 tcp option maxseg size set 1436
}
}
# as root on your router: watch the handshake while a client connects
tcpdump -ni any -c 4 'tcp[tcpflags] & tcp-syn != 0'
# output we saw (timestamps and sequence numbers trimmed)
gre1 In IP 203.0.113.10.40978 > 198.51.100.10.8080: Flags [S], options [mss 1460,...]
veth-b Out IP 203.0.113.10.40978 > 198.51.100.10.8080: Flags [S], options [mss 1436,...]
veth-b In IP 198.51.100.10.8080 > 203.0.113.10.40978: Flags [S.], options [mss 1460,...]
gre1 Out IP 198.51.100.10.8080 > 203.0.113.10.40978: Flags [S.], options [mss 1436,...]
Lab throughput says little about the internet, but Linux GRE was not the bottleneck: two 1 vCPU VMs moved the file at 3.3 to 5.2 Gbit/s with the file in cache. Over a real path, your uplink and the round trip to Amsterdam set the pace.
Keep it after a reboot, and what a dead tunnel looks like
Our Debian 13 VMs used systemd-networkd (check with networkctl), so the tunnel, address and source rule became networkd files:
# /etc/systemd/network/gre1.netdev on your router (edit as root)
[NetDev]
Name=gre1
Kind=gre
MTUBytes=1476
[Tunnel]
Local=10.141.188.62
Remote=10.141.188.80
TTL=255
# /etc/systemd/network/gre1.network on your router (edit as root)
[Match]
Name=gre1
[Network]
Address=10.255.0.2/30
[RoutingPolicyRule]
From=198.51.100.0/24
Table=100
Priority=1000
# /etc/sysctl.d/90-gre-router.conf on your router (edit as root)
# also add the line Tunnel=gre1 under [Network] in the uplink's .network file (enp5s0.network in our lab)
net.ipv4.ip_forward = 1
net.ipv4.conf.gre1.rp_filter = 1
# /etc/nftables.conf on your router (edit as root; enp5s0 is the lab uplink, use yours), then: nft -c -f /etc/nftables.conf && systemctl enable nftables
#!/usr/sbin/nft -f
flush ruleset
table inet mss {
chain forward {
type filter hook forward priority mangle; policy accept;
oifname "gre1" tcp flags syn tcp option maxseg size > 1436 tcp option maxseg size set 1436
iifname "gre1" tcp flags syn tcp option maxseg size > 1436 tcp option maxseg size set 1436
}
}
table inet guard {
chain forward {
type filter hook forward priority filter; policy accept;
oifname "enp5s0" ip saddr 198.51.100.0/24 counter drop
}
}
After a reboot, networkctl showed gre1 ipgre routable configured, the rule was back as 1000: from 198.51.100.0/24 lookup 100 proto static, rp_filter on gre1 was 1, both nftables tables were loaded and BGP came back Established on its own. A networkctl reload left BIRD's route in table 100 alone, and the ping sweep and download worked as before.
Linux GRE has no keepalive of its own, so BGP notices a dead tunnel. With hold time 30 we took gre1 down on the customer side: the edge kept announcing the prefix for at least 16 seconds, and at 21 seconds logged BGP Error: Hold timer expired and withdrew it. Traffic to your prefix is lost in that window, so agree short timers with us when the session is set up.
MikroTik RouterOS 7: the same setup from MikroTik's documentation
Not tested in our lab. The commands come from MikroTik's pages for GRE, BGP, moving from v6 to v7, policy routing and the /routing rule reference, with our lab addresses; 192.0.2.2 is your public IP and 192.0.2.1 our edge.
# RouterOS 7 terminal, as an admin user; from MikroTik's docs, NOT tested in our lab
/interface gre add name=gre-rs local-address=192.0.2.2 remote-address=192.0.2.1
/ip address add address=10.255.0.2/30 interface=gre-rs
/routing/bgp/instance add name=i1 as=64513
/ip/firewall/address-list add list=bgp-networks address=198.51.100.0/24
/ip/route add dst-address=198.51.100.0/24 blackhole
/routing/bgp/connection add name=to-rs instance=i1 remote.address=10.255.0.1 remote.as=64512 local.role=ebgp output.network=bgp-networks
/routing table add name=protected fib
/ip route add dst-address=0.0.0.0/0 gateway=10.255.0.1 routing-table=protected
/routing rule add src-address=198.51.100.0/24 action=lookup-only-in-table table=protected
Per those docs, a RouterOS GRE interface defaults to MTU 1476, keepalive 10s,10 and clamp-tcp-mss=yes, which rewrites SYN packets received through the tunnel. BGP in v7 announces an address-list network only if a matching route exists, hence the blackhole route. The /routing/bgp/instance menu came with RouterOS 7.20 according to MikroTik's changelogs, so check your version first, and place any rules for traffic between your own subnets before the last line.
Cloudflare Magic Transit vs a GRE tunnel for a single /24
Magic Transit is Cloudflare's version of the same idea: it announces your prefixes, filters on its network and delivers clean traffic over GRE or IPsec. The Magic Transit column comes from Cloudflare's get-started page, checked on 18 October 2026; the docs publish no price.
| Question | Cloudflare Magic Transit | GRE tunnel from RS Computers on GSL |
|---|---|---|
| How you start | "Not a self-serve product": Cloudflare's team assesses your prefixes | A message on Telegram or by email |
| Address space | At least a /24, or a Cloudflare-owned IP | At least a /24 IPv4 or /48 IPv6, yours or leased |
| Paperwork | LOA as a PDF, IRR matching your origin ASN, RPKI optional | IRR route objects and valid ROAs |
| MSS for GRE | 1436 maximum, set before any routing change | 1436 with MTU 1476, as tested above |
| Return traffic | Ingress-only by default, routers must handle asymmetric flows | Through the tunnel, or your local uplink if it accepts your prefix |
| Time to go live | About one day to roll out after pre-flight checks | Usually 2 to 4 hours, with your ASN directly under GSL |
Choose Magic Transit if you want Cloudflare's global network in front of you, other Cloudflare products on one contract, or protection without your own /24. Its H1 2026 report shows the scale it absorbs: 935 attacks above 1 Tbps in six months. For one /24 run by a small team, our tunnel is quicker to start, you talk to the engineers who build it, and your IP transit in Amsterdam can come from the same provider. The router work above is the same for both.
What you need, and how to order
- Your own ASN or space you are authorised to announce; leased IPv4 is fine when route objects and ROAs match the announcing ASN.
- At least a /24 of IPv4 or a /48 of IPv6, the smallest prefixes most networks accept.
- A router that runs GRE and BGP: MikroTik, Juniper, Cisco, VyOS, or Linux with BIRD or FRR.
- A public IP for the tunnel endpoint, kept out of DNS, on an uplink big enough for the clean capacity you order.
Send your ASN, prefixes, clean capacity and endpoint IP on Telegram or to info@rscomputers-ks.com. We check your route objects and ROAs, send a quote, then the tunnel and BGP details, and add your ASN under GSL. You bring up your end, we check MTU and MSS on both ends with you, and most setups are live within 2 to 4 hours.
Frequently asked questions
What is remote DDoS protection over a GRE tunnel?
Your IP prefixes are announced from a large protected network instead of your own, attacks are filtered there, and clean traffic reaches your router through a GRE tunnel. Your servers stay where they are. RS Computers delivers it from Amsterdam on Global Secure Layer, with 500 Mbit/s to 10 Gbit/s of clean capacity.
What MTU and MSS should a GRE tunnel use?
On a 1500 byte path, GRE over IPv4 adds 24 bytes, so use a tunnel MTU of 1476 and clamp TCP MSS to 1436 for IPv4 and 1416 for IPv6. In our Debian 13 lab a don't-fragment ping passed at 1476 bytes and failed at 1477. Clamp SYN packets entering and leaving the tunnel.
Why does ping work over my GRE tunnel but downloads hang?
Small packets fit, full-size TCP packets do not, and something on the path drops the ICMP messages that would tell the sender to shrink them. In our lab this gave an HTTP 200 and then 0 bytes for 10 seconds; clamping MSS to 1436 in both directions made the 200 MB download finish in under a second.
Do I need my own ASN and a /24?
For whole-prefix protection, yes: an ASN or authorised space, plus at least a /24 IPv4 or /48 IPv6 with matching route objects and ROAs. RS Computers is a RIPE NCC member (LIR) and can sponsor an ASN for you. With one server and no /24, a single protected IP fits better.
Is Cloudflare Magic Transit better than a GRE tunnel from a transit provider?
It depends on your needs. Magic Transit needs at least a /24 or a Cloudflare-owned IP, is not self-serve, and takes about a day to roll out after checks, according to Cloudflare's docs. A GRE tunnel from RS Computers is usually live in 2 to 4 hours with your ASN directly under GSL. The router setup is the same.
How fast can protection be live, and how much capacity can I get?
Usually 2 to 4 hours after we have your ASN, prefixes and tunnel endpoint, once your route objects and ROAs check out. Clean capacity runs from 500 Mbit/s to 10 Gbit/s, and your own uplink to Amsterdam has to carry what you order.
Get your prefixes behind GSL
Under attack now, or want a protected upstream before it happens? Send your ASN, prefixes and the clean capacity you need on Telegram or by email, and in most cases the tunnel and BGP session are up the same day. For flat-rate routes with or without protection, see IP transit in Amsterdam.