Advanced OpenVPN with IPv6 · Advanced IPv4 · Simple policies
Reach a designated independent DNS provider through VPN 1, while selected payload uses VPN 2. Both address families retain these separate role constraints.
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 independent DNS provider through VPN 1 |
| Selected application payload | VPN 2 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
-
Record the independent provider’s actual IPv4/IPv6 endpoints and required transports. Bind all upstream DNS to VPN 1, even if the same addresses are reachable directly.
-
Give VPN 1 and VPN 2 distinct ownership and incident records. Explicitly record source addresses, return routes and any shared underlay; do not infer independence from different TUN names.
-
Verify selected IPv4/IPv6 payload through VPN 2 and ordinary payload directly. A failed payload path must not block the same application’s healthy VPN 1 DNS.
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 |
|---|---|
| Independent resolver’s required IPv6 path fails | Close its DNS service; retain healthy VPN 2 payload. Do not query the same resolver directly. |
| VPN 1 session fails | Close host-wide DNS; VPN 2 payload remains governed by its own evidence. |
| VPN 2 payload family fails | Close that payload path; retain healthy DNS and the other independently healthy payload family. |
| Preferred resolver can be reached through VPN 2 | Keep it prohibited; identical provider identity does not authorize a different route. |
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
The independent resolver’s required IPv6 transport becomes unreachable through VPN 1, but an unrestricted direct probe could reach it. That does not qualify a replacement path: host-wide DNS stays denied while strict repair proceeds. Known-address payload through VPN 2 can continue. The worked family-specific payload recovery in the shared health guide illustrates the reverse failure.
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
Test the independent resolver directly and through VPN 2 in both families, VPN 1’s native resolver as a replacement, and selected payload through VPN 1. None is an allowed substitute.
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.