Advanced OpenVPN with IPv6 · Advanced IPv4 · Simple policies
Use these instructions with the selected use case, preparation guide and unchanged recovery limits. Operator actions below describe required implementation behavior, not commands of an installed controller.
Read status without masking degradation
Show DNS context/provider/mode and its declared required transports; show IPv4 and IPv6 payload separately. Include each result’s family, route/interface, source, session/configuration generation, scheduled deadline, permission cutoff and incident owner. Report selected versus candidate state, manual holds, attempts remaining, cooldown/lockout and confirmation. An unavailable family remains visibly failed even when another family carries useful work.
Keep the outer VPN transport separate from inner-path status. A retained TUN, systemd’s active state, an AAAA answer or a successful Happy Eyeballs connection cannot certify all paths. Candidate failures do not close an independently healthy selected fallback; unknown common protection still affects every dependent grant.
Handle loss, stop and restart
On loss, revoke affected permissions promptly and retain static no-escape restrictions. Use the dependency map: DNS-only loss does not pause a mixed application’s healthy payload; a payload-family loss does not remove its healthy DNS. Restart only a genuinely implicated owned service/session. A required DNS transport failure applies to the declared DNS service; do not replace its required-check definition while it is failing.
An intentional stop persists its exact scope before teardown. A role-wide stop closes every family using that role. A DNS-only stop leaves independently healthy payload working. Keep the approved fifteen-second control-stop limit; observing a native hold flag is not proof the active session stopped. Use the existing sole management owner and stop/readback contract.
On operator recovery restart or boot, preserve the selected provider/mode and manual latches, reconcile ownership, record one reset identity and revalidate the eligible paths. Automatic restarts retain budgets. A warm coordinator handover can preserve healthy traffic only while independent supervision still has current trustworthy evidence. Do not promise interruption-free reboot.
Reconcile changing IPv6 state
For a changed prefix, source address, route, peer or resolver endpoint, identify exactly which checks and grants depend on it. Fence stale positive work, retire invalid selections and requalify affected paths under existing authority. Unrelated IPv4 or other-VPN paths need not stop. A common unknown classification/ownership fault can require wider denial.
Account for temporary addresses by application/namespace and current permitted prefixes, rather than relying on one old address match. Verify lifetimes and source selection. Routine protocol state updates do not create new recovery allowances. A provider change or an additional DNS family is an explicit configuration revision, not an automatic response to a failed required check.
RA/DHCP DNS updates must not substitute a provider. Review the effective resolver state after renewal, interface recreation and restart. Link-local endpoints retain the correct interface scope. Loss of an outer IPv6 underlay can affect a VPN carrying both inner families; this is a shared dependency rather than an IPv6-payload-only event.
Withdraw or return to the IPv4-only set
- Persist the intended maintenance hold and exact owned-resource inventory. Maintain independent administrative access.
- Close the affected DNS/payload permissions for both families, cancel positive work and fence old writers. Verify denial and retirement; an exit code alone is insufficient.
- Stop only the owned components actually being removed, within the existing limits. Preserve unrelated healthy services and provider intent.
- Install/read back replacement restrictions before removing the old policy. Returning to the IPv4-only guide specifically reinstates protected IPv6 denial before any IPv4-only release.
- Restore the recorded resolver and route state while held. Remove only verified owned objects; never flush a host ruleset, routing database or conntrack.
- Transfer ownership once. Requalify permitted replacement traffic before release. If verification fails, retain denial and the manual latch for reconciliation.
No step changes hosted environments or credentials. This is a required future rollback sequence, not a script executed during this documentation pass.
Run later acceptance by use case
Linux testing remains deferred. The following is an unexecuted test matrix for a later isolated host with the implemented controller/adapters. Use administered endpoints and record permitted and forbidden egress, not only application success.
| Injected condition or observation | Required result |
|---|---|
| IPv6 payload fails while IPv4 works | IPv6 payload denied; healthy permitted IPv4 and DNS continue |
| IPv4 payload fails while IPv6 works | IPv4 payload denied; healthy permitted IPv6 and DNS continue |
| One required DNS family/UDP/TCP check fails | DNS loss under the declared service contract; healthy payload continues |
| Shared OpenVPN session or outer transport fails | Close all actual dependents without multiplying restart attempts |
| AAAA query over IPv4 and A query over IPv6 | Correct answers; records are not mistaken for transport proof |
| Application races IPv4/IPv6 connections | Every attempt remains within that application’s permitted routes |
| IPv4-mapped connection uses an IPv6 API | Actual IPv4 traffic still obeys its IPv4 gate and route |
| Preferred DNS fails in 2B | Only the named fallback may qualify; no mixed preferred/direct selection |
| Preferred repair exhausts its windows | Healthy permitted fallback continues; no new allowance from family changes |
| Unselected candidate fails | Healthy selected service remains governed independently |
| RA/DHCP advertises a different resolver or default | No DNS-provider substitution or protected direct escape |
| Address is tentative, duplicate, expired or renumbered | No grant based on stale/invalid addressing; affected evidence reconciled |
| Neighbor entry is ordinarily STALE while required traffic works | Do not confuse normal neighbor-cache state with failed service |
| Link-local next hop appears on a different interface | No identity match based on address text alone |
| ICMPv6 Packet Too Big / neighbor discovery / relevant multicast control | Necessary scoped control works; application traffic cannot use its exception |
| Extension headers, fragments, established flows or acceleration | No path bypasses the accepted gates; unaccepted coverage prevents arming |
| Delayed positive update races revocation/expiry | No old generation is revived and no cutoff is extended |
| Monitor/broker freezes while old flows exist | Independent expiry denies traffic within the existing contract |
| Crash loop versus operator reset versus reboot | Approved reset distinction holds once per identity; manual intent survives |
| Handover back to IPv4-only | Protected IPv6 is denied before replacement release |
For 1, verify separate selected/ordinary DNS contexts. For 2A/3/4A/4B, exercise every host resolver context and the prohibited alternatives identified in its guide. For 4A/4B, fail each VPN role independently and verify that neither provider nor the other VPN substitutes. Test both 2B return variants separately.
Record what was actually demonstrated
Retain exact executable/kernel/library/profile identities, the family/role/configuration map, injected fault, scheduled deadlines, observed state transitions, packets at forbidden and permitted egress, and cleanup outcome. Distinguish a protection pass from an availability interruption. A missing physical IPv6 route is not evidence that an IPv6 deny rule works; use a capable isolated topology and observed denial.
The ordinary small health exchange is not a codec benchmark, throughput test or proof of every path-MTU case. Include a bounded, relevant application/MTU acceptance case for each declared path without changing the controller limits. No comprehensive application survey is added. No current host, clock profile or adapter is certified by these written procedures.