Lion Cipher Lab
Run IPv6 on your own lab network and block a rogue router advertisement
- Cyber / Security Engineer
- Intermediate
- ~60 min
- Free · no account required
Why it matters
IPv6 is probably running on your machines whether you configured it or not, and its autoconfiguration trusts any router advertisement it hears on the local network. A device that sends one, by mistake or on purpose, can hand every client a new default route. IPv4 networks have the same sort of problem with rogue DHCP servers, but many defenders have never looked at the IPv6 version. Building the network yourself shows exactly what is trusted, and the two fixes you try, filtering at the switch and tightening the client, are the ones real networks use.
What you'll learn
- building a small IPv6 network with a router, a client and a switch in network namespaces
- explaining how a router advertisement gives a client a prefix, an address and a default route
- reading the IPv6 neighbour table with ip -6 neigh and finding the router's link-local address
- showing what a second, unwanted router advertisement does to a client
- blocking it two ways: an nftables rule on the bridge (the idea behind RA guard) and accept_ra on the client
Steps in this lab
- How an IPv6 client gets its address without a server
- Build the link: a bridge and three namespaces
- Make r1 a real router and advertise a prefix with radvd
- Bring up the client and read what it built
- Start a rogue advertiser and watch the client believe it
- Defence 1: filter router advertisements on the bridge
- Defence 2: tell the client not to listen
- What a professional does differently
- Clean up
Open the full interactive lab →