Operate, Restart and Withdraw Advanced IPv4 Controls

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

Advanced IPv4 controls · Simple VPN and DNS policies

Use these procedures with the selected use case and preparation inventory. Operator action names below describe the interface the implementation must supply. They are not shell commands or an installed utility.

Read status by traffic class

For each DNS or payload class, status must show its application scope, permitted path/provider, selected mode, current tunnel invocation if any, last required results and their deadlines, gate generation/cutoff, incident epoch, attempts consumed, repair window/cooldown, confirmation state and manual latch. Also show common protection/clock/supervisor status. Report missing evidence as unknown, not healthy.

Distinguish “DNS denied; payload healthy” from “application stopped.” A process can remain running while its lookup fails. The interface existing, a successful DNS cache answer or systemd reporting an active process does not establish upstream path health.

Handle a loss

  1. Identify the class and current generation that failed. Record whether the reason is service degradation, session loss, stale observation or protection failure; do not guess the physical cause.
  2. Revoke affected use promptly. Keep static no-escape restrictions. Preserve independently healthy DNS, payload and unrelated application groups.
  3. Start or retain that path’s repair record. A failed unselected candidate only loses eligibility; it does not fail healthy selected fallback.
  4. Use OpenVPN hold/retry controls only for an implicated owned VPN. A resolver-service failure alone does not require restarting a healthy tunnel. Repair only named owned local configuration; a remote provider has no local restart command.
  5. Qualify and release the repaired class independently. In 2B only, a designated alternate can be selected after its own qualification and actual-client verification. No other use case obtains that permission.

If a tunnel actually carries both failed classes, its session failure invalidates both. If the common underlay or safety supervisor fails, all classes depending on it can close. Scope the response from the recorded dependency map, not from broad process names.

Stop deliberately

An operator stop records its exact role/class scope, persists the manual latch and denies that traffic before stopping any owned resource. The latch prevents later success notices, boot recovery or retry timers from reopening it. Stop the whole VPN only when its actual dependents and the requested scope justify that action. A DNS-only stop must not terminate a mixed application’s healthy payload work.

The OpenVPN owner must observe active HOLD or verify stop; setting a hold flag alone is not a stop. A failed stop/readback remains a control fault behind denial. The approved control-stop envelope is fifteen seconds; an application worker’s separate lifecycle allowance cannot extend it. OpenVPN hold semantics.

Restart without losing intent

Use an explicit operator recovery-restart action for a named scope. The implementation must record one durable reset ID, preserve selected DNS mode/provider and manual holds, fence old writers, and replenish eligible repair counters once. A raw component restart, duplicate start callback, ordinary reconnect or cleared service failure flag is not equivalent authorization.

On a host reboot, admit one recovery epoch per boot identity for previously enabled, non-manually-held scopes. Reconstruct intended routes/resolvers behind closed gates. Obtain actual current sessions and fresh class evidence; old monotonic deadlines, grants and cached health results are not reusable. A crash during reset persistence must be reconciled without granting the allowance twice.

Automatic coordinator/guardian crash recovery retains the existing repair allowance and crash-rate limits. Where an independent live guardian maintains trustworthy evidence, avoid unnecessarily restarting healthy tunnels or DNS routes during a coordinator handover. No claim of zero interruption is made for a reboot or common-control failure. If required policy, ownership or manual intent is unreadable, keep the affected scope closed and request reconciliation.

Repeated distinct boots can each grant a new allowance under the approved policy. That is different from an automatic component crash loop; no across-boot quota has been added. Manual maintenance/stop still survives both kinds of restart.

Return from fallback

In 2B, preserve the selected direct mode across restart until current policy and evidence permit a change. Manual-return mode requires an operator return instruction and valid authority; readiness is not permission to switch. Automatic-return mode requires the qualified preferred path and healthy-fallback residence. If preferred repair expired, explicitly rearm/reset that scope before another preferred-path promotion.

Keep current fallback healthy while preferred repair proceeds when the controls can do so independently. A fallback confirmation does not close the preferred incident. If common protection becomes unknown, a working resolver alone is insufficient to continue permission.

Maintain and restore configuration

Before changing a provider, peer address, namespace, route policy or clock profile, record the intended revision and affected scopes. Close those scopes, fence old writers and verify withdrawal before replacing selectors. Preserve unrelated healthy classes. Do not reinterpret an unsafe clock change as ordinary synchronization. A normal clock-source outage alone is not a new loss timer while integrity remains known.

After the change, verify exact ownership, effective configuration and actual client selection before fresh qualification. Record a new configuration generation so late events from the previous revision cannot grant traffic. A configuration reload does not automatically reset repair counters.

Withdraw or roll back

  1. Record a manual maintenance hold for the scope being withdrawn; retain its before-state and exact object ownership list.
  2. Close its class permissions, cancel pending positive work and fence every writer. Read back denial and retirement of temporary grants; do not rely on a command exit alone.
  3. Inhibit/stop the dedicated owned VPN/resolver components that are actually being removed. Verify stop without touching unrelated services or a shared healthy resolver.
  4. While traffic remains held, restore the recorded resolver/route settings or install the replacement policy. Never remove the old no-escape guard before the replacement restrictions are in force.
  5. Remove only the recorded owned objects after the replacement policy has been read back. Do not flush global routes, firewall state or conntrack.
  6. If returning to a simple guide, establish its policy as a separate controlled handover; do not run two owners concurrently. Release only the traffic allowed by that replacement after explicit verification.
  7. If any step cannot be established, leave the affected class held and report the remaining owned objects. Retain history and the manual latch for subsequent reconciliation.

This is a policy withdrawal procedure. It does not authorize broad host cleanup, credential changes or a remote deployment. Use actual implementation-specific commands only after their owner, behavior and acceptance are established.