Advanced OpenVPN with IPv6 · Advanced IPv4 · Simple policies
Keep host-wide DNS on VPN A for both ordinary and VPN-selected applications, while only selected payload requires that VPN.
Read the path and failure boundaries first. This is the same policy as advanced IPv4 and the simple walkthrough, with IPv6 explicitly covered. They are alternative deployments, not concurrent owners.
Follow the shared Ubuntu 24.04 implementation walkthrough for this use case: configuration, source build, guarded installation, controlled handoff, operating commands and rollback. Select ipv6 and this case in the source bundle. The policy below supplies its DNS scope, application boundaries and permitted failure behavior. OpenVPN Community 2.6 is the reference; exact-build capability checks remain required. Linux execution is deferred.
Define the policy
| Traffic | Required path for each enabled family |
|---|---|
| DNS | One designated DNS service through VPN A |
| Selected application payload | VPN A for IPv4 and IPv6 |
| Ordinary application payload | Direct IPv4/IPv6 |
DNS scope: Host-wide upstream DNS. DNS transport endpoints are declared separately from A/AAAA record types. All required checks for the selected DNS service must pass; an undeclared family is not an implicit alternate. DNS-only loss preserves healthy known-address payload. Payload-only loss preserves healthy DNS. Family-specific payload loss closes that family; a common session/control fault affects every actual dependent.
Prepare the roles and endpoints
-
Inventory every host resolver context, including IPv6 listener/forwarder paths and ordinary host services. Local access to a stub does not create an upstream exception.
-
Declare one provider and its required transport endpoints through VPN A. Constrain RA/DHCP/provider push inputs so they cannot install a physical-interface DNS alternative.
-
Provide separate IPv4/IPv6 payload gates for selected applications; ordinary payload stays direct. DNS and payload health must not be combined into a whole-application hold.
Complete the IPv6 deployment worksheet and the shared inventory. The worksheet is documentation, not loadable controller configuration. Unsupported or unreviewed IPv6 paths remain denied; an IPv4-only provider cannot be advertised as carrying IPv6 merely because the client has a global IPv6 address.
Activate behind existing protection
Use the closed-first handover: establish and verify both families’ restrictions before replacing the older IPv6 block. Confine DNS/probes/OpenVPN transport separately. Qualify the selected DNS service and each payload family on current evidence; verify actual application route and resolver selection before releasing each eligible permission.
The fifteen-minute startup allowance, 4:30 complete attempts and eighty-second qualification ceiling are unchanged. An interface, AAAA answer or successful connection using another family is insufficient. The controller and adapters are implemented as local reference source with offline checks. These operating requirements still need acceptance on the target Linux host.
Respond to the actual failure
| Observed condition | Required response |
|---|---|
| Required VPN DNS transport fails | Close host-wide DNS; preserve healthy known-address payload on each group’s permitted routes. |
| Selected IPv6 payload fails alone | Close selected IPv6 payload; healthy VPN DNS and permitted IPv4 payload continue. |
| VPN A session fails | Close its DNS and selected payload dependents. Ordinary known-address direct payload may continue. |
| Physical network supplies a working resolver | Keep it unavailable to this DNS policy; reachability is not authorization. |
Degraded or unknown required state counts as loss. Keep no-escape restrictions throughout detection, repair, cooldown and lockout. A DNS-only error does not authorize restarting a healthy shared tunnel. One OpenVPN owner retains one set of attempt counters; adding a family does not multiply them.
Work through an incident
A router advertisement supplies a working direct IPv6 resolver while VPN A’s required DNS service is down. Host-wide DNS remains denied. Ordinary users may still reach known addresses directly and selected users may do so over any independently healthy permitted VPN payload family. Learning a resolver address neither selects it nor starts another recovery allowance.
Apply the unchanged health and recovery limits. Examples are constructed timelines, not Linux measurements. Earlier operation deadlines, expiry and manual intent still take precedence.
Return, restart and withdraw
Restore only the required provider/path. No direct, other-provider or other-VPN substitute is authorized. The family/path that failed stays denied through cooldown and final lockout while independently healthy permitted traffic continues.
An explicit operator recovery restart or host boot may replenish eligible allowances once. Preserve selected providers and manual holds; automatic crashes, reconnects and address-family changes do not reset budgets. Revalidate before release. Follow the operation and withdrawal instructions, especially restoring protected IPv6 denial before returning to the IPv4-only set.
Check the forbidden paths
Exercise direct IPv4 and IPv6 resolvers, the router’s link-local resolver and application-encrypted DNS alternatives. None may bypass the declared DNS context. Selected direct IPv6 payload also remains forbidden.
Apply the dual-stack acceptance matrix, including IPv6-only loss, IPv4-only loss, both DNS query types, independent expiry and shared-session failures. Linux tests remain unexecuted.