An IPv6 address on the WAN proves very little about the clients behind it. The ISP has to delegate a routed prefix, OPNsense has to divide that prefix among the VLANs, and each VLAN has to advertise a prefix, a router and a usable DNS server. A product's “IPv6 ready” label leaves rather a lot of that sentence unfinished. This guide works through each layer against the current OPNsense IPv6 manual[1] and assumes a 26.x release, because 26.1 changed which services do the downstream work.
The Protocol Before the Product
The default route never comes from DHCPv6. A host learns its router from a Router Advertisement (RA, ICMPv6 type 134), whose source must be the router's link-local address[2] on that interface. The RA also carries the flags that tell a host where to get everything else: M says addresses are available via DHCPv6, O says other configuration such as DNS is available there, and each Prefix Information option carries an A flag that permits stateless address autoconfiguration (SLAAC) from that prefix. A Router Lifetime of 0 means the sender is not a default router, so a client will not install a default route through it. DNS can ride in the RA too, through the RDNSS option in RFC 8106[3].
DHCPv6 is the other half. Its current specification, RFC 9915[4], obsoleted RFC 8415 in January 2026 and keeps the distinction a home firewall cares about: an IA_NA holds addresses, and an IA_PD holds delegated prefixes. Clients listen on UDP 546 and servers on UDP 547.
In words, the diagram is this: ISP RA → OPNsense WAN, which routes via the ISP's link-local address; WAN DHCPv6 client → IA_PD (and usually IA_NA) from the ISP; delegated block → one /64 per internal interface; OPNsense RA on each VLAN → clients build an address, a default route and DNS settings. Every arrow is a place to check when something breaks.
Count the Subnets Before You Pick Prefix IDs
For ordinary SLAAC, every VLAN needs its own /64, and that is not a style preference. For unicast addresses outside the range beginning with binary 000, interface identifiers are required to be 64 bits long[5], and SLAAC ignores a Prefix Information option[6] whose prefix length plus interface identifier length does not equal 128 bits. One /64 cannot be sliced into several SLAAC links, and OPNsense's manual notes that the same on-link prefix on multiple links would cause routing issues.
So the arithmetic decides the design. A /60 contains 16 /64 networks; a /56 contains 256; a single /64 covers one VLAN, and no VLAN configuration will manufacture more subnet bits. Ask the ISP what it delegates before planning anything.
Here is a documentation-only example using 2001:db8::/32, the prefix reserved for documentation[7]; it will not route on the internet. Suppose the ISP delegates 2001:db8:1:ab00::/56. OPNsense's Prefix ID is hexadecimal and selects a /64 inside the received block, so IDs 01, 02 and 03 give:
| Link | Prefix ID | Derived /64 |
|---|---|---|
| Main LAN / VLAN 10 | 01 |
2001:db8:1:ab01::/64 |
| IoT / VLAN 20 | 02 |
2001:db8:1:ab02::/64 |
| Lab / VLAN 30 | 03 |
2001:db8:1:ab03::/64 |
Prefix IDs are not VLAN numbers. Typing 10 because the VLAN is 10 selects hexadecimal 10, the seventeenth /64, which is fine on a /56. On a /60 there are only sixteen IDs, 0 through f, so 10 does not fit at all.
Configure the WAN, Then Prove It Before Touching LAN
Under Interfaces → WAN, the IPv6 configuration type for a provider that hands out dynamic prefixes is DHCPv6, which is also the default for a preset WAN. The interface settings reference[8] describes the DHCPv6 client options, which is where most ISP-specific trouble lives:
- Prefix delegation size is the delegated prefix length, normally specified by the ISP. Set it to what your provider actually offers.
- Send IPv6 prefix hint asks for that size. Under RFC 9915 the server may use the value as a hint, which means the ISP still decides.
- Request only an IPv6 prefix requests a prefix without an address. OPNsense notes it may be required when the ISP refuses to hand out a prefix otherwise.
That last option deserves a deliberate test. OPNsense's manual says the firewall expects a global unicast address on the WAN when it connects to the outside world itself, which is why it normally requests an IA_NA. A prefix-only setup can leave forwarded client traffic working while the firewall's own IPv6 connections fail. Note too that in DHCPv6 mode the WAN does not assign itself a /64 from the delegated prefix by default, unlike Static IPv6.
Save, apply and stop. OPNsense's troubleshooting sequence[1] does the WAN and the firewall first and the LAN clients second, and it is blunt about the order: if the WAN checks fail, do not start debugging why clients cannot connect. From the console:
# ping -6 <a known IPv6 host>
# netstat -nr6 | grep default
The GUI equivalents are Interfaces → Diagnostics → Ping and System → Routes → Status. Confirm that a prefix was actually delegated as well; a WAN link-local address is evidence of nothing.
If there is no route or no delegation, look upstream. The WAN has to receive the ISP's RAs and complete its DHCPv6 exchange on UDP 546 and 547, so do not block either while testing, and a packet capture filtered for ICMPv6 and those ports shows which step never happened. An ISP that gives you a fixed allocation is a different path: OPNsense's Static IPv6 mode takes one /64 for the WAN, a gateway you create, and other /64s for the LANs.
Identity Association or Track Interface
Each internal interface gets its /64 from one of two IPv6 modes, and the difference is what else they switch on. Track Interface (legacy) derives the /64 from the WAN's delegation and, by default, configures router advertisements and DHCPv6 for that interface, including downstream prefix delegation when the prefix is big enough; its Manual configuration option turns that off. Identity association derives the same /64 and configures no services at all.
The 26.1 release notes[9] explain why the second mode exists. ISC-DHCP moved to a plugin in 26.1, installed automatically during upgrades and left off new installations. Track Interface automatically starts ISC-DHCPv6 and radvd; Identity association was added as a sibling that does not, so it is meant to interoperate better with Kea and Dnsmasq. OPNsense now describes ISC DHCP as end-of-life[10], with no further updates or security patches.
So on a new build, use Identity association and configure the services deliberately. On an upgraded system where Track Interface works there is no emergency, but its automation runs on an end-of-life DHCP server, so plan the migration rather than discovering it during an outage. The Identity association fields are short: IPv6 Interface is the WAN to follow, IPv6 Prefix ID is the hexadecimal ID from the table, and IPv6 Reserved prefix range reserves extra /64s starting at that ID for downstream prefix delegation. Its default reserves only the one ID, which is right unless a router behind OPNsense needs a delegation of its own.
Once the WAN has its prefix, open the interfaces overview and confirm each internal interface shows a global address from the delegated block, with a distinct /64 per VLAN. Check the prefix, not the host suffix. If one interface stays unnumbered, the usual causes are too few delegated /64s, colliding Prefix IDs, or an association pointing at the wrong WAN. The VLAN-aware network guide covers the layer-two separation; this article concerns the routed prefixes on top of it.
Dynamic prefixes also change. When they do, clients keep their old addresses until the lifetimes advertised for the old prefix run out, and existing connections can break in the switch. Write firewall rules against OPNsense's internal network aliases, prefixed with __ and visible in Firewall → Diagnostics → Aliases, rather than typing global IPv6 literals. For a server that needs a stable inbound rule, the Dynamic IPv6 Host alias[11] takes the upper 64 bits from an interface and the lower 64 bits from the suffix you enter, and updates the rule when the prefix changes.
Advertise Prefix, Route and DNS on Each VLAN
An internal /64 announces nothing by itself. OPNsense can send the RA from Dnsmasq or from radvd (Services → Router Advertisements). Pick one; the Dnsmasq manual warns against running multiple RA servers on the same system.
Find out which one is already on by looking, because the documentation disagrees with itself. The 26.1 release notes say Dnsmasq is now the default for DHCPv4, DHCPv6 and RA out of the box, and the radvd page[12] agrees for new installations. The Dnsmasq page[13] still carries a box saying Services → Router Advertisements is the default. An upgraded system on Track Interface may also be sending RAs through radvd automatically, so check both.
Option A: Dnsmasq
Dnsmasq sends RAs for its DHCPv6 ranges, so each VLAN needs a range even if you only want SLAAC:
- Interface and Constructor: the VLAN interface. The constructor builds the range from that interface's current prefix, which is what lets it follow a dynamic delegation.
- Start address:
::with no end address, or a suffix range such as::1000to::2000if you also want stateful DHCPv6 leases. - RA Mode:
ra-statelessfor SLAAC plus DNS and other options over stateless DHCPv6.
Then enable Router Advertisements in the Dnsmasq general settings, a global switch that sends RAs for every configured DHCPv6 range.
The RA mode is the trap. Dnsmasq's default for a range sets M and O and clears A: stateful DHCPv6 addressing and no SLAAC. OPNsense's IPv6 manual notes that Android only supports SLAAC and that DHCPv6 leases do not work there, so the default leaves an Android phone with no global address. ra-stateless sets O and A; slaac sets M and A, so clients get both a SLAAC address and a DHCPv6 lease. With either, Dnsmasq sends the firewall's address as DNS through RDNSS and the DHCPv6 option.
The one thing Dnsmasq cannot do, per the 26.1 notes, is prefix delegation. If a router behind OPNsense needs its own delegated prefix, use Kea for that.
Option B: radvd with Kea
In Services → Router Advertisements, add an entry per VLAN and turn off RA in Dnsmasq. radvd builds the advertised prefix from the interface's primary address assigned by Identity association or Track Interface. By default it advertises the interface address as RDNSS when a DNS service is enabled on it, otherwise the configured global DNS servers. The mode sets the flags:
| radvd mode | M | O | A | Client addressing |
|---|---|---|---|---|
| Router Only | Static; router only | |||
| Unmanaged | ✓ | SLAAC | ||
| Stateless | ✓ | ✓ | SLAAC plus DHCPv6 options | |
| Managed | ✓ | ✓ | DHCPv6 only | |
| Assisted | ✓ | ✓ | ✓ | DHCPv6 and SLAAC |
DNS is a separate control from the mode. Enable DNS in the advanced settings governs the RFC 8106 options, so “Unmanaged” does not by itself mean the RA carries no DNS server.
The radvd page pairs radvd with Kea and says that combination requires a static WAN prefix because Kea cannot track prefixes dynamically. That warning has been overtaken. The 26.7 release notes[14] list Kea dynamic prefix delegation support, and the Kea manual[15] documents a Dynamic Prefix subnet option that uses the identity association prefix allocated to the interface and generates the subnet and pools from it. From 26.1.9 onward (26.7 lists it as a highlight), Kea follows a dynamic delegation; on anything older, treat the static-prefix requirement as real. Kea's manual also says HA with a dynamic ISP prefix is not recommended.
For phones and ordinary IoT clients, I'd start with SLAAC and RDNSS and add DHCPv6 only for a requirement it actually meets, such as reservations, hostname registration or downstream delegation. OPNsense's radvd page says router advertisements alone are enough for clients to build a SLAAC address and receive a default gateway and a DNS server.
Treat IPv6 Firewall Policy as First-Class
Give IPv6 its own firewall policy. OPNsense's packet filter[16] is stateful and ends in a default deny, so a globally addressed client is not exposed merely because it has a reachable address; inbound traffic still needs a rule. The work is between VLANs, because an IPv4-only block says nothing about the IPv6 path. The IoT isolation guide is written for IPv4; its logic carries over, but its aliases need IPv6 equivalents.
For an IoT VLAN, permit DNS to the firewall, block destinations in an alias containing every internal IPv6 network, then pass the intended external IPv6 traffic. Order matters: rules are evaluated floating first, then interface groups, then the interface's own rules, and a quick rule (the default) wins on first match. Put the internal block above the broad outbound pass and check earlier floating and group rules too. LAN net covers one adjacent interface, and an alias of fc00::/7, the unique local range[17], misses every globally addressed VLAN. A hand-maintained alias of literal prefixes goes stale at the next renumbering, so test every segment afterwards, and use a dual-stack rule only when its aliases cover both address families.
Do not blanket-block ICMPv6. RFC 4890[18] lists Router Solicitation, Router Advertisement, Neighbor Solicitation and Neighbor Advertisement among the local messages that must not be dropped, and Packet Too Big among the transit errors that must not be dropped. Path MTU Discovery relies on Packet Too Big[19]; block it and connections complete the TCP handshake, then hang when data starts to flow. OPNsense rules can match specific ICMPv6 types, so keep the defaults or write targeted rules rather than one broad internet-facing allow.
Verify Delegation, Autoconfiguration and Traffic
Check four layers in order, and do not move on until the current one is right:
- WAN: a delegated prefix and an IPv6 default route are present, and the firewall itself can reach an IPv6 host.
- Each VLAN: OPNsense holds a distinct global
/64from the delegation, and exactly one RA service is active on that interface. - A client on each VLAN: it has a global address from that VLAN's
/64, a default route via the firewall's link-local address, and a working DNS server. On Linux,ip -6 addrandip -6 routeshow the first two; on Windows,ipconfig /allshows all three. - Policy and path: an IPv6 DNS query and an HTTPS request work from allowed VLANs, and an IoT-to-LAN connection is refused.
When a layer fails, the symptom usually names the missing message:
- Only an
fe80::address: the client is not getting a usable RA. Check that an RA service runs on that interface and that its mode sets the A flag; Dnsmasq's default does not. - A global address but no default route: look at the RA in a capture; a router lifetime of 0 produces exactly this.
- Addresses from two global prefixes: a renumbering is in progress and the old prefix has not expired, or two RA daemons are advertising.
- Ping works but larger transfers stall: Packet Too Big is being dropped somewhere.
- DNS works only over IPv4: the RDNSS address is missing or wrong, or the resolver is not listening on, or permitting, that VLAN's IPv6 address.
A temporary address[20] may appear on some clients, but its absence proves nothing about the delegation. Test more than one kind of client, as OPNsense's guide suggests.
Finish on a client in every VLAN rather than on the firewall's status page. If the prefix is dynamic, repeat that after the next prefix change, once old addresses have aged out. A successful ping from the WAN proves the first link of the chain; these checks prove the rest of it.