# 使用 Homebrew, apt, dnf, MacPorts 安装 openiked

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

## 安装

```sh
sudo av install brew:openiked
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install openiked
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install openiked
```

  证据: MacPorts ports tree: net/openiked/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install openiked
```

  证据: Debian stable package indexes: openiked from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install openiked
```

  证据: Fedora Rawhide package metadata: openiked from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

## 软件包事实

- **软件包键:** brew:openiked
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/openiked>
- **版本:** 7.4
- **来源摘要:** IKEv2 daemon - portable version of OpenBSD iked
- **主页:** <https://openiked.org>
- **仓库:** <https://github.com/openiked/openiked-portable>
- **上游文档:** <https://github.com/openiked/openiked-portable#readme>
- **许可证:** ISC
- **源码归档:** <https://cdn.openbsd.org/pub/OpenBSD/OpenIKED/openiked-7.4.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- ikectl (cli)
- iked (cli)
- ikectl (别名)
- iked (别名)

## 依赖

- libevent
- openssl@3

## 构建依赖

- cmake

## macOS 提供的库

- bison

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: config file can be found here: $HOMEBREW_PREFIX/etc/iked.conf necessary files for configuration can be found here: $HOMEBREW_PREFIX/etc/iked/
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 7.4
- 本地数据: OK
- 上游仓库: https://openiked.org
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

OpenIKED is the OpenBSD project's free implementation of the IKEv2 protocol for establishing and maintaining IPsec VPN security associations. The Homebrew package ships the portable version of OpenBSD's iked daemon and ikectl control utility for non-OpenBSD Unix-like systems.

### 项目历史

The iked program first appeared in OpenBSD 4.8 and was written by Reyk Floeter. The official OpenIKED site describes it as a lean, clean, secure, configurable, and interoperable IKEv2 implementation focused on standards and important IKEv2 features rather than IKEv1 compatibility.

A 2013 OpenBSD presentation describes OpenIKED as an IKEv2 implementation based on RFC 5996, with portable work adding compatibility for non-OpenBSD systems. The openiked-portable repository later packaged that port for Linux, macOS, FreeBSD, and NetBSD.

### 采用历史

OpenIKED is a niche but important package because IPsec/IKEv2 is usually operating-system infrastructure, not a developer library. Its portable packaging through Homebrew, Debian/Ubuntu, Fedora, MacPorts, and FreeBSD gives operators access to OpenBSD's iked outside OpenBSD itself.

### 使用方式

Administrators configure IKEv2 policies in iked.conf, then run iked to perform mutual authentication and establish IPsec flows and security associations. The OpenBSD manual describes iked.conf sections for macros, global settings, and automatic keying policies, with ikectl used for control and PKI-related workflows.

OpenIKED is used for site-to-site and client VPN scenarios where standard IKEv2 interoperability matters, including certificate-based deployments and clients that use native IKEv2 support.

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

OpenIKED is package-nerd significant because it is a portable slice of OpenBSD network-security infrastructure. It brings the OpenBSD style of small, audited daemons and ISC licensing into package managers on systems that do not ship iked in base.

### 时间线

- OpenBSD 4.8: iked first appeared in OpenBSD.
- 2013: OpenIKED was presented as a portable IKEv2 VPN implementation.
- January 2021: the openiked-portable GitHub repository was created.
- April 2021: OpenIKED 6.9.0 was published in the portable repository releases.
- April 2025: OpenIKED 7.4 was published in the portable repository releases.

### Related projects

- OpenIKED is related to OpenBSD's isakmpd for older IKEv1 support, IPsec ESP/AH, strongSwan, native Windows and mobile IKEv2 clients, OpenSSL/LibreSSL, libevent, and OpenBSD's broader family of portable daemons.

### 来源

- <https://api.github.com/repos/openiked/openiked-portable>
- <https://formulae.brew.sh/formula/openiked>
- <https://github.com/openiked/openiked-portable>
- <https://github.com/openiked/openiked-portable/releases>
- <https://man.openbsd.org/iked.8>
- <https://man.openbsd.org/iked.conf.5>
- <https://manpages.debian.org/testing/openiked/iked.8.en.html>
- <https://www.openbsd.org/papers/openiked-asiabsdcon2013.pdf>
- <https://www.openiked.org/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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

- Unix: /etc/iked.conf, /etc/examples/iked.conf

## Credential files

- Unix: /etc/iked/private/local.key, /etc/iked/private/, /etc/iked/ca/, /etc/iked/certs/, /etc/iked/crls/, /etc/iked/pubkeys/
## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - openiked - 7.4-1: normalized package name match | Debian stable package indexes: openiked from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Internet Key Exchange (IKEv2) daemon | https://www.openiked.org/
- Ubuntu apt - openiked - 7.3-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: openiked from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Internet Key Exchange (IKEv2) daemon | https://www.openiked.org/
- dnf - openiked - 7.4-4.fc44: normalized package name match | Fedora Rawhide package metadata: openiked from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A free Internet Key Exchange (IKEv2) implementation | https://github.com/openiked/openiked-portable
- MacPorts - openiked: normalized package name match | MacPorts ports tree: net/openiked/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [libevent](https://www.automicvault.com/zh-hans/pkg/brew/libevent/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [fastd](https://www.automicvault.com/zh-hans/pkg/brew/fastd/) - Shares av.db curated category or tags: cli, daemon, networking, vpn.
- [openvpn](https://www.automicvault.com/zh-hans/pkg/brew/openvpn/) - Shares av.db curated category or tags: cli, network-security, networking, vpn.
- [wireguard-tools](https://www.automicvault.com/zh-hans/pkg/brew/wireguard-tools/) - Shares av.db curated category or tags: cli, network-security, networking, vpn.
- [boringtun](https://www.automicvault.com/zh-hans/pkg/brew/boringtun/) - Shares av.db curated category or tags: cli, networking, vpn.
- [dsvpn](https://www.automicvault.com/zh-hans/pkg/brew/dsvpn/) - Shares av.db curated category or tags: cli, networking, vpn.
- [edgevpn](https://www.automicvault.com/zh-hans/pkg/brew/edgevpn/) - Shares av.db curated category or tags: cli, networking, vpn.
- [headscale-cli](https://www.automicvault.com/zh-hans/pkg/brew/headscale-cli/) - Shares av.db curated category or tags: cli, networking, vpn.
- [macosvpn](https://www.automicvault.com/zh-hans/pkg/brew/macosvpn/) - Shares av.db curated category or tags: cli, networking, vpn.
- [rpki-client](https://www.automicvault.com/zh-hans/pkg/brew/rpki-client/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, networking, openbsd, openssl, openssl-3.

## Combined YAML source

View the package source record on GitHub. [combined/openiked.yml](https://github.com/automic-vault/db/blob/main/combined/openiked.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
