NETWORK INCIDENTS

One Deleted Line Leaked Routes: Replaying Cloudflare's January 2026 Route Leak

Network+ 2.1 Dynamic routing: BGPNetwork+ 2.1 Route selectionNetwork+ 3.1 Change management and configuration managementNetwork+ 5.5 Command-line tools: ping, traceroute

On the 22nd of January 2026, an automated routing policy change made a Cloudflare router in Miami leak some BGP routes, for 25 minutes. The change was meant to stop announcing one data center's prefixes. It removed one line, and the policy that was left accepted far more than it should. This lab isn't Cloudflare's network. It rebuilds that failure pattern, so we can watch it happen and fix it.

Our network (edge and core, AS64500) sends its provider, transit (AS64502), only what the export policy TO-TRANSIT allows. peer (AS64501) is a network we exchange routes with; user is one of transit's customers. Every router runs FRR.

Incident replay: a lab model of the failure pattern in Cloudflare's post-mortem of its 22 January 2026 route leak (https://blog.cloudflare.com/route-leak-incident-january-22-2026/), not Cloudflare's network.

The symptom. After an automated policy change on edge, user can't reach peer's 198.51.100.10 any more: ping says the packets were filtered.

The lab

edge and core are our network, autonomous system 64500. edge connects to transit, our provider. core connects to peer, a network we exchange routes with directly. user is one of transit's customers, and wants to reach peer. Cloudflare's leak was IPv6 only. The lab uses IPv4 addresses, because they're easier to read. The policy works the same way.

The symptom

on user
ping -c 3 -W 1 198.51.100.10
PING 198.51.100.10 (198.51.100.10) 56(84) bytes of data.
From 10.0.1.2 icmp_seq=1 Packet filtered
From 10.0.1.2 icmp_seq=2 Packet filtered
From 10.0.1.2 icmp_seq=3 Packet filtered

--- 198.51.100.10 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2028ms
What this shows

From user, ping a server in peer's network. All three fail, and not with silence. Each one comes back Packet filtered, from 10.0.1.2. That's edge, our router. user's traffic to peer shouldn't be touching our network at all.

Narrowing it down

on user
traceroute -n 198.51.100.10
traceroute to 198.51.100.10 (198.51.100.10), 30 hops max, 46 byte packets
 1  203.0.113.1  0.005 ms  0.004 ms  0.003 ms
 2  10.0.1.2  0.003 ms  0.004 ms  0.004 ms
 3  10.0.1.2  0.003 ms !A  0.004 ms !A  0.004 ms !A
What this shows

traceroute shows the path hop by hop. First transit, user's provider. Then edge. And it stops at edge, with exclamation A on every probe: administratively prohibited. A filter turned it away. edge's filter only accepts traffic for our own networks. So why is transit sending peer's traffic to us?

on transit
show ip bgp 198.51.100.0/24
BGP routing table entry for 198.51.100.0/24, version 5
Paths: (2 available, best #1, table default)
  Advertised to peers:
  10.0.1.2 10.0.4.2
  64500 64501
    10.0.1.2 from 10.0.1.2 (192.0.2.1)
      Origin IGP, localpref 200, valid, external, best (Local Pref)
      Community: 64500:3
      Last update: Fri Oct 30 01:56:56 2026
  64501
    10.0.4.2 from 10.0.4.2 (198.51.100.10)
      Origin IGP, metric 0, localpref 100, valid, external
      Last update: Fri Oct 30 01:56:55 2026
What this shows

Ask transit how it reaches peer's network. It has two paths. One goes straight to peer, AS 64501. The other goes through us: 64500, then 64501. transit picked the one through us, because of local preference: 200 for routes from its customer, against 100 for the direct one. Providers usually prefer a customer's routes. So the moment we announce peer's network, transit sends that traffic our way.

Finding the cause

on edge
show ip bgp neighbors 10.0.1.1 advertised-routes
BGP table version is 5, local router ID is 192.0.2.1, vrf id 0
Default local pref 100, local AS 64500
Status codes:  s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  192.0.2.0/25     0.0.0.0                  0             0 i
 *>i 192.0.2.128/25   0.0.0.0                                0 i
 *>i 198.51.100.0/24  0.0.0.0                                0 64501 i

Total number of prefixes 3, total number of paths 3
What this shows

On edge, list what it's telling transit. Our own prefix, as it should be. And peer's network, 198.51.100.0/24. That's the leak: a route we learned from a peer, passed on to our provider. And here's site B, the prefix the change was meant to stop announcing. It's still there.

on edge
cat /var/log/policy-push.log
change 4127: stop announcing site B (192.0.2.128/25) to transit
generated diff for edge:
  route-map TO-TRANSIT permit 20
-  match ip address prefix-list SITE-B
pushed to edge: ok
What this shows

What changed? The policy automation logs what it pushes. Change 4127: stop announcing site B to transit. The generated diff removes one line from term 20 of TO-TRANSIT, the export policy: the prefix-list that matches site B. And it was pushed to edge. Cloudflare's change looked like this too: the same prefix-list line removed from a term, and in their words, it "looks innocent at a glance".

on edge
vtysh -c 'show running-config' | grep -A2 '^route-map TO-TRANSIT'
route-map TO-TRANSIT permit 10
 match ip address prefix-list OURS
exit
--
route-map TO-TRANSIT permit 20
 match ip next-hop prefix-list BACKBONE
exit
What this shows

Here's what's left of the policy. Term 10 permits our own prefixes. Term 20 had two conditions: the route is site B, and its next hop is in BACKBONE, our core router. Now only the second one is left. A route only has to come from core to be sent to transit. Cloudflare's term was left matching route-type internal, which matched every route learned inside their network.

on edge
show ip bgp 198.51.100.0/24
BGP routing table entry for 198.51.100.0/24, version 4
Paths: (1 available, best #1, table default)
  Advertised to peers:
  10.0.1.1
  64501
    10.0.2.2 from 10.0.2.2 (192.0.2.129)
      Origin IGP, metric 0, localpref 100, valid, internal, best (First path received)
      Community: 64500:3
      Last update: Fri Oct 30 01:56:54 2026
What this shows

Check that on peer's route. It came from peer, AS 64501, and reached edge through core, so its next hop is 10.0.2.2. That's in BACKBONE, so term 20 accepts it. Notice the community too: 64500 colon 3. core tags every route it learns from a peer with it. We'll use that in a minute.

The fix

on edge
conf t
(no output)
What this shows

Cloudflare's operator reverted the change by hand. Do the same: into configuration mode,

on edge
route-map TO-TRANSIT permit 20
% Configuration applied with notes:
No changes found to be committed!
What this shows

into term 20. FRR notes there's nothing to commit yet, because this line only opens the term.

on edge
match ip address prefix-list SITE-B
(no output)
What this shows

Put the prefix-list back.

on edge
end
(no output)
What this shows

And leave configuration mode.

Verifying

on transit
show ip bgp 198.51.100.0/24
BGP routing table entry for 198.51.100.0/24, version 6
Paths: (1 available, best #1, table default)
  Advertised to peers:
  10.0.1.2 10.0.4.2
  64501
    10.0.4.2 from 10.0.4.2 (198.51.100.10)
      Origin IGP, metric 0, localpref 100, valid, external, best (First path received)
      Last update: Fri Oct 30 01:56:54 2026
What this shows

On transit, peer's network is back to one path, straight to peer. The path through us is gone.

on user
ping -c 3 -W 1 198.51.100.10
PING 198.51.100.10 (198.51.100.10) 56(84) bytes of data.
64 bytes from 198.51.100.10: icmp_seq=1 ttl=63 time=0.043 ms
64 bytes from 198.51.100.10: icmp_seq=2 ttl=63 time=0.029 ms
64 bytes from 198.51.100.10: icmp_seq=3 ttl=63 time=0.029 ms

--- 198.51.100.10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2051ms
rtt min/avg/max/mdev = 0.029/0.033/0.043/0.006 ms
What this shows

From user, the ping gets three replies.

on user
traceroute -n 198.51.100.10
traceroute to 198.51.100.10 (198.51.100.10), 30 hops max, 46 byte packets
 1  203.0.113.1  0.010 ms  0.005 ms  0.004 ms
 2  198.51.100.10  0.004 ms  0.005 ms  0.004 ms
What this shows

And traceroute goes transit, then peer. Our network isn't on the path anymore.

Keeping it from happening again

on edge
conf t
(no output)
What this shows

The revert fixed today's change. It doesn't stop the next one. Cloudflare is adding safeguards based on BGP communities, that explicitly reject routes received from providers and peers on external export policies. Here's that idea on edge.

on edge
bgp community-list standard FROM-PEER permit 64500:3
(no output)
What this shows

A community list, FROM-PEER, that matches the tag core puts on every route learned from a peer.

on edge
route-map TO-TRANSIT deny 5
(no output)
What this shows

A new term, 5, that denies. It's numbered below every other term, so it's checked first.

on edge
match community FROM-PEER
(no output)
What this shows

It matches routes carrying that tag.

on edge
end
(no output)
What this shows

And out.

on edge
conf t
(no output)
What this shows

Now the real test. Make exactly the same change again, the way the automation would:

on edge
route-map TO-TRANSIT permit 20
% Configuration applied with notes:
No changes found to be committed!
What this shows

open term 20,

on edge
no match ip address prefix-list SITE-B
(no output)
What this shows

and remove the prefix-list line.

on edge
end
(no output)
What this shows

Term 20 is as wide as it was during the leak.

on edge
show ip bgp neighbors 10.0.1.1 advertised-routes
BGP table version is 5, local router ID is 192.0.2.1, vrf id 0
Default local pref 100, local AS 64500
Status codes:  s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  192.0.2.0/25     0.0.0.0                  0             0 i
 *>i 192.0.2.128/25   0.0.0.0                                0 i

Total number of prefixes 2, total number of paths 2
What this shows

What is edge telling transit now? Our prefix, and site B. Two prefixes, and peer's network isn't one of them. The deny term saw the tag and rejected it before term 20 was ever checked.

on user
ping -c 3 -W 1 198.51.100.10
PING 198.51.100.10 (198.51.100.10) 56(84) bytes of data.
64 bytes from 198.51.100.10: icmp_seq=1 ttl=63 time=0.042 ms
64 bytes from 198.51.100.10: icmp_seq=2 ttl=63 time=0.036 ms
64 bytes from 198.51.100.10: icmp_seq=3 ttl=63 time=0.038 ms

--- 198.51.100.10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2033ms
rtt min/avg/max/mdev = 0.036/0.038/0.042/0.002 ms
What this shows

And user still reaches peer, three for three.

Why it leaked

The change only deleted a line. But a term that ends in permit accepts everything its remaining conditions match, so removing a condition made the term wider, not smaller. The safeguard works the other way: it rejects routes by where they came from, so it holds no matter what any one term matches.

Removing a match widens the term

When a change removes a match condition, check what the whole term matches now, not just the line that went. And give your export policy a rule that rejects peer and provider routes, so one mistake can't send them on.

Try it yourself

The whole lab runs on your own computer with Docker and containerlab: get it on GitHub, then ./lab.sh up and ./lab.sh break. Setup steps are on Run the labs.