# 使用 Homebrew 安装 killswitch

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install killswitch
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:killswitch
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/killswitch>
- **版本:** 0.8.3
- **来源摘要:** VPN kill switch for macOS
- **主页:** <https://killswitch.network>
- **仓库:** <https://github.com/vpn-kill-switch/killswitch>
- **上游文档:** <https://killswitch.network>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/vpn-kill-switch/killswitch/archive/refs/tags/0.8.3.tar.gz>
- **最后更新:** 2026-06-03T23:07:00Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- killswitch (cli)
- killswitch (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.3
- 管理器更新时间: 2026-06-03
- 本地数据: OK
- 上游仓库: https://github.com/vpn-kill-switch/killswitch
- 检测到的最新版本: 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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** killswitch
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [strongswan](https://pkg.so/zh-hans/brew/strongswan/) - Shares pkgdb curated category or tags: cli, network-security, security, vpn.
- [openssh](https://pkg.so/zh-hans/brew/openssh/) - Shares pkgdb curated category or tags: cli, network-security, security.
- [pinentry-mac](https://pkg.so/zh-hans/brew/pinentry-mac/) - Shares pkgdb curated category or tags: cli, macos, security.
- [ipsw](https://pkg.so/zh-hans/brew/ipsw/) - Shares pkgdb curated category or tags: cli, macos, security.
- [bettercap](https://pkg.so/zh-hans/brew/bettercap/) - Shares pkgdb curated category or tags: cli, network-security, security.
- [easy-rsa](https://pkg.so/zh-hans/brew/easy-rsa/) - Shares pkgdb curated category or tags: cli, security, vpn.
- [zeek](https://pkg.so/zh-hans/brew/zeek/) - Shares pkgdb curated category or tags: cli, network-security, security.
- [snort](https://pkg.so/zh-hans/brew/snort/) - Shares pkgdb curated category or tags: cli, network-security, security.
- [ettercap](https://pkg.so/zh-hans/brew/ettercap/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, network, network-security, security.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
