Advanced OpenVPN with IPv6 · Advanced IPv4 · Simple policies
The six routing purposes are unchanged. The extension adds IPv6 to the paths that the chosen policy already permits. A new address family does not create a new provider, direct bypass, VPN role or recovery allowance. The IPv4 series remains a separate alternative that denies protected IPv6.
Separate four different choices
| Choice | What it determines |
|---|---|
| DNS question, such as A or AAAA | The kind of answer requested |
| DNS transport family | Whether the request reaches its resolver over IPv4 or IPv6 |
| Application payload family | Whether an actual application connection uses IPv4 or IPv6 |
| OpenVPN outer transport | How the VPN client reaches its authenticated remote peer |
RFC 3596, Section 1 explicitly separates DNS transport from record type. An AAAA answer received over IPv4 does not prove IPv6 transport works. A provider with only an approved IPv4 DNS endpoint can still answer AAAA queries; the guide does not invent an IPv6 endpoint for it.
The OpenVPN 2.6 manual distinguishes outer udp4/udp6 or TCP variants from the IPv4/IPv6 packets carried by a TUN. Verify both layers. A working outer IPv6 connection does not prove that the tunnel supplies usable inner IPv6 addressing, routing or return traffic.
Apply loss to the affected dependency
DNS and payload remain independent. Within payload, record IPv4 and IPv6 paths separately: a failed IPv6 payload path is closed while an independently healthy IPv4 path on the same permitted VPN can continue. This is an application of the existing affected-route rule, not permission to hide IPv6 degradation or use direct access. A shared OpenVPN session, underlay or protection failure closes every actual dependent path.
DNS retains the approved all required checks must pass rule. Declare the selected DNS service’s required transport endpoints before activation. If IPv4 and IPv6 resolver paths are both required, failure of either is DNS-service loss for that resolver context—even if another query succeeds. Strict cases close that DNS service; 2B may qualify its designated fallback. Do not silently remove a failed required family, change the provider’s health definition or introduce an “any endpoint succeeds” quorum. A deliberately IPv4-only resolver profile can support both A and AAAA answers without claiming IPv6 DNS transport.
| Failure | Consequence |
|---|---|
| Required DNS check fails | Close that DNS context; retain healthy payload of either family |
| IPv6 payload fails; IPv4 payload works | Close IPv6 payload; retain permitted IPv4 payload and healthy DNS |
| IPv4 payload fails; IPv6 payload works | Close IPv4 payload; retain permitted IPv6 payload and healthy DNS |
| Shared tunnel or required common control fails | Close all paths that depend on it |
| Unselected preferred DNS candidate fails while fallback works | Retain healthy selected fallback; preserve the preferred repair record |
Keep family choice inside the policy
An application may select a healthy address family only through a path already permitted for that application. IPv4 via VPN A is not a direct fallback for IPv6 via VPN A. IPv6 via the physical interface is still forbidden for VPN-selected payload. The Happy Eyeballs specification, Section 9.3 warns that successful family selection can conceal a broken family; therefore health checks explicitly bind each tested family and path.
For 2B, preserve one selected DNS mode/provider per resolver context. Preferred mode does not mean “IPv4 preferred plus IPv6 direct fallback.” A controlled provider change closes application DNS, replaces and verifies the complete endpoint selection, and then releases DNS. Candidate probes have their own confined permissions. Manual and automatic return remain the existing two variants.
Preserve one authority for each owner
Each dedicated OpenVPN instance still has one systemd owner and one management owner. Its IPv4/IPv6 observers do not get separate restart counters or independent permission to reset that daemon. One admitted connection attempt can qualify several dependent paths concurrently; it is counted once, within the same approved window and complete-attempt ceiling. Adding a family or another DNS query type never replenishes the allowance.
A family-specific fault does not automatically justify restarting a healthy shared tunnel. Repair the owned route/resolver state that actually failed; keep the affected path closed if it cannot be repaired without disrupting a healthy dependency. A true session fault permits the shared response. VPN 1 and VPN 2 retain their distinct ownership and incident records in 4A/4B.
Bound this guide set
These are host/client, routed-TUN examples for IPv4 and IPv6 unicast. Host-wide DNS includes ordinary applications, host services and local forwarders, not an attached LAN. TAP bridging, LAN prefix delegation, DNS64/NAT64, other translation/tunnel mechanisms and arbitrary proxy or application-encrypted DNS are not silently added. An unreviewed alternate path remains unavailable to protected traffic until covered explicitly.
Multicast name discovery is not the upstream DNS service described here. Necessary IPv6 link-control traffic is treated separately in preparation. It must not become a broad exception for application traffic.