macOS
brew install macosvpnlocal Homebrew formula metadata
brew
Create Mac OS VPNs programmatically. Version 2.0.0 via Homebrew; verified from local package data.
install
brew install macosvpnlocal Homebrew formula metadata
overview
Create Mac OS VPNs programmatically
history
macosvpn is a Swift command-line tool for creating and deleting macOS VPN network services programmatically. The README documents support for L2TP over IPSec and Cisco IPSec configurations.
The official repository was created in July 2014. The README's own history section says the implementation began from research into Apple's networking discussions and practical examples for manipulating VPN configuration, shared secrets, traffic routing, and System Keychain entries.
The project packages that undocumented macOS VPN configuration knowledge into a CLI with create and delete commands. Its README emphasizes that administrator privileges are required because VPN passwords are stored in the System Keychain, and it explicitly chooses sudo over a separate HelperTool.
macosvpn is distributed through Homebrew according to both the README and the batch input, and the README also points users to compiled GitHub release binaries. Repository metadata captured during this run showed several hundred GitHub stars and dozens of forks, indicating durable adoption among Mac administrators and automation users.
Typical usage is `sudo macosvpn create --l2tp <name> --endpoint <host> --username <user> --password <password> --sharedsecret <secret>` or the Cisco IPSec variant. The README also documents flags such as `--force`, `--split`, disconnect behavior options, repeated arguments for creating multiple VPNs, and `macosvpn delete` for removing one or more services.
macosvpn is significant because VPN profiles are often part of fleet setup, CI test machines, and repeatable laptop provisioning, but macOS historically made this hard to automate with plain shell tools. A Homebrew-installable CLI gives package nerds a way to put VPN setup next to the rest of a bootstrap script.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/Library/Preferences/SystemConfiguration/preferences.plistCredential-bearing paths to review before unattended agent runs.
/Library/Keychains/System.keychainexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
macosvpn | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/halo/macosvpn
install metadata
| Package key | brew:macosvpn |
|---|---|
| Version | 2.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/macosvpn |
| Homepage | https://github.com/halo/macosvpn |
| Repository | https://github.com/halo/macosvpn |
| Upstream docs | https://github.com/halo/macosvpn#readme |
| License | MIT |
| Source archive | https://github.com/halo/macosvpn/archive/refs/tags/2.0.0.tar.gz |
| Bottle | available (on arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | macosvpn |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.