Defguard client for Ubuntu and MacOS, plus WireGuard fixes and docs cleanup - #5
Merged
Merged
Conversation
…and manual modules
…hat need the VPN at the office
…e defguard group Manual, Ubuntu-only module. Installs the Defguard desktop client 2.1.0 from the pinned ubuntu-22-04-lts GitHub release package, verified against its sha256, then makes sure the user is in the defguard group and defguard-service runs. The client reaches the service through a socket restricted to that group. A logout and login is not always enough on Ubuntu, so the installer reads the Groups line of /proc/<pid>/status for the user's systemd manager and the running client, tells whether a reboot is required, and asks before rebooting. Skipped on MacOS (added to MACOS_SKIP_MODULES) and in Docker.
…--all defguard becomes the last module of the Ubuntu --all order, so its reboot warning is the last thing printed. install_all_modules exports DOTFILES_INSTALL_ALL=1: the module then only warns that a reboot is required instead of asking, since --all runs without prompts. The README order list gains defguard.
The Homebrew cask defguard-client is stuck on 1.5.x and deprecated, so the module installs the universal DMG of the pinned release: sha256 checked, code signature verified, signed by the vendor's Apple Developer team and accepted by Gatekeeper, then copied into /Applications with ditto. An App Store install or an equal or newer version is left alone, and the script stops while Defguard is running. defguard joins MACOS_MODULE_ORDER (last) and leaves MACOS_SKIP_MODULES; test-macos.sh checks its syntax and portable test. On MacOS, test.sh checks the application, its signing team and whether the VPN system extension is enabled.
…the no-prompt rule Sixteen modules in the Ubuntu --all order, defguard last; defguard runs its own installer on MacOS as well. Modules must not prompt when DOTFILES_INSTALL_ALL=1. The unmerged claude-code branch takes the same 16th and 10th slots.
Contributor
|
all good |
Sebastien-Meiffren
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main change: Defguard desktop client (
defguard/)New module that installs the Defguard VPN client, the replacement for the WireGuard setup.
Ubuntu (24.04 and 26.04, amd64 and arm64), last module of
./install.sh --all:ubuntu-22-04-ltspackage from the GitHub release, checked against its sha256; apt pulls the dependencies.defguardgroup,defguard-serviceis running and/var/run/defguard.socketexists; warns ifresolvconfis missing.defguardgroup, and a logout and login is not always enough for a new group to reach desktop apps. The installer reads theGroups:line of/proc/<pid>/statusfor the user's systemd manager and the running client, then says whether a reboot is needed, a client restart is enough, or nothing is required. It asks before rebooting, except during--all(DOTFILES_INSTALL_ALL=1), where it only warns.Failed to establish VPN connectionright after a valid MFA code.MacOS (13.5 or later), last module of
MACOS_MODULE_ORDER:/Applications.test.shchecks the package, service, socket and group on Ubuntu, and the app, its signing team and the VPN system extension on MacOS. Skipped in Docker;test-macos.shcovers it in CI.Also in this PR
downbranch only reacts to the WiFi interface, andPersistentKeepalive = 25is added to the client config.fix-vpncommand (infra-tools-kit): always-on WireGuard for laptops that need the VPN at the office.infra-tools-kitandcertsREADMEs, README cleanup (missing files,--allorder, manual modules), Ubuntu 26.04 report and verify script moved out of the root,AGENTS.mdfor coding agents.Testing
test-macos.shpasses.--allon an Ubuntu laptop, and the system extension approval prompt after a DMG install on a Mac.Open questions
ITSF-Wifi, now thatfix-vpnexists?scripts/verify-install.shdoes not checkinfra-tools-kitordefguardyet.kitty-latest-and-claude-codebranch uses the same 16th (--all) and 10th (MacOS) slots asdefguard.