Case File: The Wrong Door
Some visitors reach a customer's web servers and some land somewhere else. Read the edge router's BGP table, find the one announcement that should not exist, work out who is originating it and which neighbour handed it to you, and use the RPKI records to prove it. The router output is generated for you alone.
Eko Metro Fibre · Episode 6
The Wrong Door
Some of a customer's visitors are being sent to a network that is not theirs
Tunde Night NOC lead · Phone call
Tunde. Our customer says that from some parts of the internet half of their web servers simply are not theirs any more: people end up on a page that looks wrong, and a few of their staff abroad cannot log in. From inside our network everything looks fine, which is the strange part.
I have asked the edge router for its BGP table and the RPKI records, and I have pasted them for you. Something in there is announcing space that does not belong to it. I need to know what, who, and who handed it to us, so I can phone the right people.
The brief
The customer owns 198.51.100.0/24, and the only network that is supposed to originate it is AS 64500. You have the router’s neighbour list, the neighbours’ descriptions, the part of the BGP table that falls inside the customer’s block, the RPKI records and the router’s log.
Look for a route inside the customer’s block that is more specific than the block itself. Then check its RPKI column, and read the last AS in its path: that is the network that originated it. The neighbour that handed it to us is the first AS in the path, and the route’s next hop is that neighbour’s address.
Be careful with decoys. The customer’s own block also appears a second time, from a different neighbour. And other customers’ blocks have /25 routes that are perfectly valid. Not every long prefix is a hijack.
The flag: the neighbour that carries the bad route has a circuit reference in its description that is a ticket reference. Find it and submit it at the bottom of the page.
Preparing your evidence…
Tunde, a little later: “Good, that is the one. I rang the neighbour’s NOC and they say it is a customer of theirs who mistyped a prefix, and they have pulled it. But the customer’s director is asking me a fair question: ‘Why can anyone on the internet just announce my addresses, and why did your router accept it?’ What do I tell him?”
🔒 The debrief unlocks when you close the case. Finish the lab above.
The debrief
Tunde: “The route is gone and the customer’s visitors are landing in the right place again. The director asked whether it can happen again, and the honest answer is: yes, unless we do two things.”
What a senior engineer would do next. Tell the customer plainly: BGP is built on trust, so a network can announce space it does not own, and anyone who accepts it will forward traffic that way. The fixes are layers. Publish a ROA that names the one AS allowed to originate the block and the longest prefix it may use (so a /25 is invalid on sight). Reject RPKI-invalid routes on our edge and ask upstreams to do the same. Filter what each customer and peer may announce, with prefix lists and a maximum prefix count, so a mistake is stopped at the door. And monitor the customer’s block so a stray announcement is noticed in minutes, not after the phone calls.
The ideas to keep.
- The longest matching prefix wins. A small, specific announcement beats a big one, before anything else is compared.
- The origin is the last AS in the path. Check it against what should be originating the block.
- RPKI turns “looks odd” into “provably wrong”. A signed record says who may announce what, and how specific.
- Filter at the door. Prefix filters and RPKI validation stop most leaks and hijacks before they spread.
Next episode: the backup link.
Write the incident note
Write what you saw, which announcement was wrong and why, who handed it to us, how you proved it, and what would stop it happening again.
🧪 Want to practise this on your own computer? See how to set up your lab →