IPv6 security and migration
Equivalent outcomes, not identical rules
Policy parity means both families enforce the same business intent. A user network may reach a web service on TCP 443 but not an administrative SSH service. Implement and verify the corresponding IPv4 and IPv6 rules, including direction and return traffic. IPv6 needs family-specific control traffic; copying an IPv4 ACL literally can break Neighbor Discovery or PMTU. Prefer a documented default-deny design with explicit required exceptions, validated in an isolated lab.
First-hop protection and control traffic
Permit valid RAs from authorized router-facing ports and review RA Guard support, including RFC 7113 implementation considerations. DHCPv6 server or relay protection and source validation are complementary, not substitutes for RA policy. Allow necessary ICMPv6 messages according to scope, direction and validation: ND on the relevant link and appropriate PTB errors for permitted traffic. Do not indiscriminately drop all ICMPv6 or open all ICMPv6 everywhere. Monitor violations without collecting private payloads. RFC 9099, 9898 and 4890 provide operational context.
Audit a fictional policy matrix
The matrix below is synthetic. Business intent requires user HTTPS allowed and user SSH denied in both families, valid related PTB allowed in IPv6, and only authorized RA accepted. The initial IPv6 SSH allow and PTB deny are two distinct defects. A successful HTTPS connection does not detect either. Correct the specific policy in a reviewable lab change and rerun positive and negative checks; keep RA enforcement at the correct first-hop boundary.
Case IPv4 IPv6 ExpectedUser TCP 443 ALLOW ALLOW ALLOW bothUser TCP 22 DENY ALLOW DENY bothValid related PTB N/A DENY ALLOW IPv6RA from authorized port N/A ALLOW ALLOW IPv6RA from user port N/A DENY DENY IPv6Stage a migration with rollback
Inventory application listeners, address literals, DNS records, delegated prefixes, IPAM, routing, firewall rules, load balancers and monitoring. Pilot one isolated segment; establish a baseline and save configuration, rollback authority and management reachability first. Introduce IPv6 routing and scoped security together; only then advertise the service AAAA after both paths and required negative cases pass. Monitor independent family success, neighbor failures and address lifetimes. Before expanding, validate large transfers, return paths and logs. A rollout gate in this fictional lab fails if any required allow or deny case fails, even if aggregate success is high.
Rollback is a separate test
If the pilot fails, stop expansion and restore the saved scoped policy and routing changes in the approved order. DNS caching and existing address/router lifetimes mean removing an AAAA record or stopping RAs does not instantly return every client to its earlier state. Plan for those timers, ongoing sessions and management access; check the IPv4 baseline and both expected permit and deny outcomes after rollback. Never perform these changes on shared production infrastructure as a tutorial exercise. Use only sanitized evidence and remove any temporary lab configuration after approval.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
IPv6 security and migration Quiz
Interpret synthetic IPv6 operations evidence and limitations.
IPv4 SSH is denied but equivalent IPv6 SSH is allowed. What is wrong?
Which first-hop RA source should be accepted in the stated lab policy?
How should valid related PTB be handled for permitted IPv6 traffic?
When should the pilot publish its service AAAA?
Why is deleting AAAA not an instant complete rollback?