# 使用 Homebrew 安装 killswitch

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

## 安装

```sh
sudo av install brew:killswitch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install killswitch
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:killswitch
- **软件包管理器:** Homebrew
- **版本:** 0.8.3
- **来源摘要:** VPN kill switch for macOS
- **主页:** <https://killswitch.network>
- **仓库:** <https://github.com/vpn-kill-switch/killswitch>
- **最后更新:** 2026-06-03T23:07:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- killswitch (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

killswitch is a macOS VPN kill-switch CLI that uses the `pf` firewall to block outgoing traffic when the VPN tunnel disappears.

### 项目历史

The GitHub repository was created in 2016, with a 0.7.0 GitHub release published on 2019-03-09. The README explains the core design: write temporary `pf` rules to `/tmp/killswitch.pf.conf`, load them with `pfctl`, and avoid modifying the system default `/etc/pf.conf`.

### 采用历史

killswitch has narrower packaging than the other projects in this batch; the Homebrew formula documents it as a macOS VPN kill switch, and the project README focuses on local builds and root-required enable/disable commands.

### 使用方式

Users run `sudo killswitch -e` to enable firewall rules, `sudo killswitch -d` to disable and restore default rules, or `killswitch --print` to inspect rules before applying them.

### 为什么软件包爱好者会关心

killswitch is notable as a small packageable security utility that exposes macOS `pf` behavior through a single CLI, useful for users who want a provider-independent VPN leak guard rather than an application-specific setting.

### 时间线

- 2016: vpn-kill-switch/killswitch repository created on GitHub.
- 2019: 0.7.0 release published.
- 2020: 0.7.1 and v0.7.2 releases published.
- 2023: v0.7.3 release published.
- 2026: 0.8.x releases published from February through April.

### Related projects

- The README links the design to the Packet Filter firewall documented by FreeBSD and to macOS networking tools such as `pfctl`, `sysctl`, `netstat`, `scutil`, and `ifconfig`.

### 来源

- <https://docs.freebsd.org/en/books/handbook/firewalls/#firewalls-pf>
- <https://formulae.brew.sh/formula/killswitch>
- <https://github.com/vpn-kill-switch/killswitch>
- <https://github.com/vpn-kill-switch/killswitch/releases>
- <https://vpn-kill-switch.com/post/how-it-works>


## 安全说明

narrow executable package without higher-risk signals.

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


## Combined YAML source

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


## 来源

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