# 使用 Homebrew 安装 macosvpn

查看 macosvpn 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:macosvpn
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install macosvpn
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:macosvpn
- **软件包管理器:** Homebrew
- **版本:** 2.0.0
- **来源摘要:** Create Mac OS VPNs programmatically
- **主页:** <https://github.com/halo/macosvpn>
- **仓库:** <https://github.com/halo/macosvpn>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- macosvpn (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.0
## 项目历史与用法

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.

### 时间线

- 2014: Official GitHub repository created.
- 2017: 0.3.x releases covered macOS High Sierra.
- 2019: 1.0.0 release published for macOS Catalina.
- 2022: 2.0.0 Ventura release published.

### Related projects

- The README mentions Apple's SystemConfiguration preferences, the System Keychain, sudo, Xcode builds, and related helper libraries Moderator and PrettyColors.

### 来源

- <https://api.github.com/repos/halo/macosvpn>
- <https://api.github.com/repos/halo/macosvpn/releases>
- <https://github.com/halo/macosvpn>
- <https://github.com/halo/macosvpn#readme>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

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.


## Configuration files

- macOS: /Library/Preferences/SystemConfiguration/preferences.plist

## Credential files

- macOS: /Library/Keychains/System.keychain

## Combined YAML source

View the package source record on GitHub. [combined/macosvpn.yml](https://github.com/mxcl/pkgdb/blob/main/combined/macosvpn.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
