4A. VPN 1’s DNS and VPN 2 Payload — With IPv6

3 Total views across this article’s versions; includes the historical baseline where available.

Advanced OpenVPN with IPv6 · Advanced IPv4 · Simple policies

Use VPN 1’s supplied DNS for the host while selected application payload uses VPN 2. Extend each actual role to IPv6 without merging the two VPNs.

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 VPN 1’s supplied DNS 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

  1. Give VPN 1 and VPN 2 distinct dedicated units, management owners and durable role identities. Record shared physical underlay separately.

  2. Inventory the DNS endpoints VPN 1 actually supplies. If it supplies only IPv4 DNS, use that approved transport for A/AAAA queries rather than inventing a VPN 1 IPv6 resolver or selecting VPN 2’s DNS.

  3. Verify VPN 2’s IPv4/IPv6 payload addressing and return paths. Keep host-wide DNS forwarding through VPN 1 independently of VPN 2 payload availability.

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
VPN 1 required DNS path fails Close host-wide DNS; healthy payload through VPN 2 and ordinary direct payload continue.
VPN 2 IPv6 payload fails alone Close selected IPv6 payload; VPN 1 DNS and healthy VPN 2 IPv4 payload continue.
VPN 2 session fails Close both selected payload families; do not stop healthy VPN 1 DNS.
VPN 1 session or a shared dependency fails Close its actual dependents; never substitute VPN 2 DNS or a direct resolver.

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

VPN 2 loses its session over an IPv6 underlay while VPN 1 remains healthy. Both inner payload families on VPN 2 close, because the failed outer session carried both. The host still uses VPN 1’s DNS. Repair VPN 2 once per admitted attempt; IPv4 and IPv6 observers do not double the retry count or restart VPN 1.

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 DNS through VPN 2, direct access to VPN 1’s resolver if reachable, and selected payload through VPN 1 or directly. Role names and endpoint reachability cannot create substitute routes.

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.