Ubuntu 24.04 Reference Host for Advanced VPN Controls

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

Advanced IPv4 · Advanced with IPv6 · Simple policies

Use Ubuntu Server 24.04 LTS (Noble), amd64, as the reference operating system for both advanced guide sets. The reference is a dedicated local-workload host with one routing namespace and separate application/resolver contexts. A clean virtual machine with an independent console is a convenient starting point for the eventual isolated lab. This choice makes the ownership of routes, services and recovery state easier to follow; it does not limit the six routing use cases to virtual machines.

Why this host setup

Choice Reason and boundary
Ubuntu Server 24.04 LTS, amd64 A single distribution and architecture give the instructions a concrete package and service layout. Use maintained Noble packages; the release name alone does not establish capability or acceptance.
Dedicated host or isolated VM; local applications Matches the implemented one-routing-namespace layout. This reference does not turn the host into a LAN gateway or claim coverage for arbitrary forwarded containers. An existing workstation needs an inventory of its additional managers and workloads.
Netplan with the networkd renderer for the physical uplink Keeps uplink configuration separate from the controller’s owned policy routes and VPN instances. NetworkManager does not own these dedicated OpenVPN sessions.
OpenVPN Community from Noble, dedicated systemd units Reuses OpenVPN’s native HOLD, management events and reconnect controls. The controller remains the sole management owner and admits bounded repair attempts.
nftables and iproute2 Retains the approved static no-escape restrictions and independently expiring permissions. No eBPF program is added.
Private libc resolver views for classified workloads Makes the application’s selected DNS provider explicit. A host resolver or VPN DNS helper must not silently choose another provider.
chrony as the sole clock-adjustment owner Retains the approved managed-clock design, including bounded normal synchronization and fenced maintenance for a step or sleep. This is an explicit setup choice, not an assumption about a default 24.04 installation.
Distribution Python 3.12 and a locally built native helper Avoids requiring a second Python installation solely because the offline development machine uses 3.13. The exact interpreter, native build and dependencies still require later acceptance.

Ubuntu documents Python 3.12 as the 24.04 default, and its OpenVPN update policy identifies Noble with the 2.6 series. Use those as reference families, not frozen patch versions or proof that every required option works. Ubuntu 24.04 release notes, Ubuntu OpenVPN update policy.

Ubuntu’s networking instructions describe Netplan, networkd and the system resolver. They explain the ordinary host setup; the protected resolver ownership below is an additional requirement of these guides. Ubuntu network configuration. Ubuntu documents chrony as a default beginning with 25.10, so this reference selects it explicitly for 24.04. Ubuntu chrony instructions.

The same six use cases

Selected application payload uses its designated VPN; ordinary payload remains direct. The table identifies DNS policy, not permission to stop an entire application when only one traffic class fails.

Use case DNS scope and path Selected payload Failure behavior
1 — IPv4 / dual-stack Selected applications use VPN DNS; ordinary applications and host services use a separate normal-DNS context VPN1 Close the failed class only. No DNS escape from the selected context to normal DNS.
2A — IPv4 / dual-stack All applications and host services use DNS through VPN1 VPN1 DNS loss denies that DNS context; healthy known-address payload continues. No DNS fallback.
2B — IPv4 / dual-stack All applications and host services use preferred VPN1 DNS or the explicitly permitted direct DNS provider VPN1 Qualify and verify the permitted fallback before use. A healthy fallback continues during preferred repair, cooldown and final repair lockout.
3 — IPv4 / dual-stack All applications and host services use designated direct DNS VPN1 DNS and VPN payload recover independently. Direct DNS is the required route, not an emergency fallback.
4A — IPv4 / dual-stack All applications and host services use VPN1’s native DNS through VPN1 VPN2 Failure of one VPN closes its dependent traffic; a healthy independent class continues.
4B — IPv4 / dual-stack All applications and host services use independently selected DNS through VPN1 VPN2 Same independent class handling, preserving the independently chosen DNS provider.

Unknown or degraded required service still counts as loss. A shared control, clock or protection failure closes all permissions depending on it. The IPv4 set continues to deny protected IPv6. The dual-stack set protects both families and preserves their approved failure boundaries. Only 2B permits switching to an alternate DNS provider. The simple guides remain software-independent, manual policies; this Ubuntu baseline does not add automatic controls to them.

Network and DNS ownership

The physical uplink provides underlay connectivity, while the controller owns its declared route tables, rules and the inet dhvpn protection layout. Choose actual interfaces, UIDs, sources and route identifiers during host binding. The examples’ documentation addresses and sample identities are not deployment values. Keep forwarding denied in this reference layout.

For protected workloads, provide private resolver mount views and verify the effective name-service lookup order. The reference lookup is libc with files then dns, using the selected private resolv.conf. An NSS resolve entry, a local stub, a proxy, application encrypted DNS or another resolver service must not bypass that selection. Merely replacing resolv.conf or blocking port 53 does not prove containment. This is a deployment requirement; the existing resolver adapter does not configure NSS or enroll every host service automatically.

In case 1, normal DNS has its own approved context and gate. In 2A, 2B, 3, 4A and 4B, host services must join the host-wide DNS policy too. Do not leave systemd-resolved as an uncontrolled second upstream resolver, including via its local socket or bus API. The reference bootstrap must remove or confine such alternate access after the replacement context is prepared behind closed gates. It must inventory existing resolver users before doing so. No service is disabled by this documentation.

DHCP/IPv6 router information must not replace the selected DNS provider or protected policy routes. Uplink configuration and protected DNS ownership are distinct. Netplan supplies DHCP DNS overrides, but those alone do not cover every resolver or IPv6 advertisement path. Netplan configuration reference.

Give OpenVPN only the declared numeric transport endpoints and keep private profiles outside the public package. Use the dedicated datahacker- units; do not also enroll the same profiles in Ubuntu’s generic OpenVPN autostart mechanism. Ubuntu documents separate template/generator behavior, which is why service ownership must be checked explicitly. Ubuntu OpenVPN service instructions.

On the clean reference host, avoid a competing manager for the owned nftables objects. On an existing host, inventory UFW, firewalld, container networking and other rule writers before binding the layout. Do not disable unrelated protection or flush the ruleset. Ubuntu’s nftables service is a separate loading mechanism, not the controller’s permission owner. Ubuntu firewall documentation.

Package and file layout

The following is a dependency and ownership plan, not a command to install or start packages. Package installation itself can activate services; the eventual executor must stage it under the reviewed closed bootstrap.

Purpose Reference selection
Runtime dependencies python3, openvpn, systemd, nftables, iproute2, chrony, ca-certificates; native runtime dependencies resolved from the eventual build
Uplink configuration netplan.io with networkd
Native build inputs, on a separate build host if desired build-essential, cmake, pkg-config, libmnl-dev, libnftnl-dev
Controller interpreter and modules /usr/bin/python3; an owned local distribution package placing vpn_controls in /usr/lib/python3/dist-packages
Native helper and units /usr/lib/datahacker-vpn; vendor units under /usr/lib/systemd/system, with effective administrator overrides inventoried separately
Configuration and authority Root-protected /etc/datahacker-vpn, private profiles kept external to the public bundle, durable /var/lib/datahacker-vpn, transient /run/datahacker-vpn

The Python layout follows the distribution packaging convention. It does not call for sudo pip, an untracked copy into the import path or a ready-made .deb that has already been built. Debian Python packaging policy.

Before any later acceptance, record the exact installed kernel configuration, OpenVPN executable/options, effective systemd units, nftables/libmnl/libnftnl build, Python/SQLite versions and chrony configuration. Preserve security updates; a changed accepted component needs reconciliation, not an indefinite pin to an old package. The existing OpenVPN version/capability check remains mandatory. Ubuntu’s release label, an example CONFIG_HZ, or a package catalog is not measured host evidence.

Clock, recovery and installation boundaries

Keep the approved chrony limits and rate envelope. Confirm there is no competing timesyncd, other time daemon or hypervisor clock-step mechanism. Normal bounded synchronization may continue; a clock step or sleep requires the existing deny/fence/collect/readback sequence. A VM pause, snapshot restoration or host clock adjustment is not proof of a clean reboot or permission to replay old grants.

No recovery values change for Ubuntu: fifteen-minute windows, three attempts per window, 4:30 complete attempts, an eighty-second qualification ceiling, fifteen-minute cooldown and 120-second confirmation outside each window remain as approved. DNS still has two-second operation limits. All other polling, expiry, stop, storage and restart limits retain their canonical values. See repair windows and checks and dual-stack health checks.

The platform choice resolves the reference distribution, interpreter family, service ownership and intended package layout. It does not resolve actual applications/UIDs, VPN/provider profiles, interfaces, controlled probe endpoints, file preimages or measured kernel/clock/storage behavior. Those remain explicit host bindings. The installation and rollback plans stay unarmed and preserve current journals and static protection. A local Ubuntu bootstrap/rollback executor now exists, with offline tests and explicit host-binding requirements. It performs planned maintenance from an independent console, holding the dedicated host’s IP traffic behind a deny-only guard and persistent service masks. This installation hold is separate from ordinary incident recovery; it does not change healthy-fallback behavior in the runtime use cases. The executor stages manifest-tracked owned files at the selected import paths; it does not install prerequisite packages, register a .deb, rewrite global DNS, arm services or release the bootstrap guard. The controlled handoff to the runtime launcher now has local source and offline tests. Follow the Ubuntu implementation walkthrough for configuration, installation, handoff, operation and rollback. Linux compilation, unit verification, packet/race tests and real host acceptance remain deferred.