# Install strongswan with Homebrew, apk, apt, dnf, Nix, pacman, zypper

VPN based on IPsec. Version 6.0.7 via Homebrew; verified 2026-06-08.

## Install

```sh
sudo av install brew:strongswan
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install strongswan
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add py3-vici
```

  Evidence: Alpine Linux edge package indexes: py3-vici from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install charon-cmd
```

  Evidence: Debian stable package indexes: charon-cmd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install perl-vici
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#strongswan
```

  Evidence: nixpkgs package indexes: pkgs/by-name/st/strongswan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S strongswan
```

  Evidence: Arch Linux sync databases: strongswan from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install strongswan
```

  Evidence: openSUSE Tumbleweed package metadata: strongswan from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:strongswan
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/strongswan>
- **Version:** 6.0.7
- **Source summary:** VPN based on IPsec
- **Homepage:** <https://www.strongswan.org>
- **Repository:** <https://github.com/strongswan/strongswan>
- **Upstream docs:** <https://docs.strongswan.org/>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://download.strongswan.org/strongswan-6.0.7.tar.bz2>
- **Last updated:** 2026-06-08T08:40:44Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- charon-cmd (cli)
- ipsec (cli)
- pki (cli)
- swanctl (cli)
- charon-cmd (alias)
- ipsec (alias)
- pki (alias)
- swanctl (alias)

## Dependencies

- openssl@3

## Uses from macOS

- curl

## Install behavior

- Post-install hook: not defined
- Caveats: You will have to run both "ipsec" and "charon-cmd" with "sudo".
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 6.0.7
- Package-manager updated: 2026-06-08
- Local data: ok
- Upstream repository: https://www.strongswan.org
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

strongSwan is a long-running open source IPsec and IKE implementation used to build policy- and route-based VPNs. In package-manager culture it is a substantial security package: a suite of daemons, plugins, and command-line tools such as `ipsec`, `swanctl`, `pki`, and `charon-cmd` rather than a single small executable.

### Project history

The official strongSwan history says the project launched in 2005 as a fork of the discontinued FreeS/WAN project, integrating the X.509 patch its authors had contributed since 2000. The project later replaced inherited FreeS/WAN code with a new modular IKE daemon written in a modern object-oriented C style.

strongSwan initially used the new daemon for IKEv2 while IKEv1 remained handled by an extended FreeS/WAN pluto daemon. Because IKEv2 adoption by other vendors was slower than expected, strongSwan added IKEv1 support to the new daemon in strongSwan 5.0 in 2012 and removed pluto and other legacy components.

### Adoption history

The project documents more than 400,000 lines of code, more than 400 automated tests, and more than 110 contributors on its official about page. The input package facts show broad packaging across Homebrew, Debian and Ubuntu components, Fedora, Nix, pacman, APK, and zypper, reflecting its role as infrastructure software rather than a niche CLI.

### How it is used

Administrators use strongSwan to configure, control, and monitor IPsec/IKE VPNs. Official documentation describes `swanctl` as the command-line utility for configuring, controlling, and monitoring the IKE charon daemon through the vici interface, while the broader documentation covers configuration files, certificates, kernel integration, and platform-specific builds.

### Why package nerds care

Package nerds care about strongSwan because it sits at the intersection of kernel networking, cryptography, service management, plugin selection, and distro policy. Packaging it correctly means handling default configuration paths, private-key directories, optional plugins, service startup, and compatibility across Linux, macOS, FreeBSD, Android, and other supported environments.

### Timeline

- 2000: strongSwan authors were contributing an X.509 patch to FreeS/WAN.
- 2005: strongSwan launched as a fork of the discontinued FreeS/WAN project.
- 2012: strongSwan 5.0 added IKEv1 support to the new daemon and removed pluto and other legacy components.
- 2022: secunet Security Networks AG acquired intellectual property rights to the strongSwan project.

### Related projects

- FreeS/WAN is the direct ancestor named by the official project history. The official documentation also positions `swanctl`, `charon`, `pki`, and the vici interface as core parts of the modern strongSwan toolchain.

### Sources

- <https://docs.strongswan.org/docs/latest/devs/devs.html>
- <https://docs.strongswan.org/docs/latest/swanctl/swanctl.html>
- <https://strongswan.org/about.html>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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

- Unix: /etc/strongswan.conf, /etc/strongswan.d/, /etc/swanctl/swanctl.conf, /etc/swanctl/conf.d/*.conf

## Credential files

- Unix: /etc/swanctl/private/, /etc/swanctl/rsa/, /etc/swanctl/ecdsa/, /etc/swanctl/pkcs8/, /etc/swanctl/pkcs12/, /etc/swanctl/swanctl.conf
## Source Database Details

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

## Other Package-Manager Records

- Debian apt - charon-cmd - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: charon-cmd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | standalone IPsec client | http://www.strongswan.org
- Debian apt - charon-systemd - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: charon-systemd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan IPsec client, systemd support | http://www.strongswan.org
- Debian apt - libcharon-extauth-plugins - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: libcharon-extauth-plugins from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan charon library (extended authentication plugins) | http://www.strongswan.org
- Debian apt - libcharon-extra-plugins - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: libcharon-extra-plugins from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan charon library (extra plugins) | http://www.strongswan.org
- Debian apt - libstrongswan - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: libstrongswan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan utility and crypto library | http://www.strongswan.org
- Debian apt - libstrongswan-extra-plugins - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: libstrongswan-extra-plugins from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan utility and crypto library (extra plugins) | http://www.strongswan.org
- Debian apt - libstrongswan-standard-plugins - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: libstrongswan-standard-plugins from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan utility and crypto library (standard plugins) | http://www.strongswan.org
- Debian apt - strongswan - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: strongswan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | IPsec VPN solution metapackage | http://www.strongswan.org
- Debian apt - strongswan-charon - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: strongswan-charon from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan Internet Key Exchange daemon | http://www.strongswan.org
- Debian apt - strongswan-libcharon - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: strongswan-libcharon from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan charon library | http://www.strongswan.org
- Debian apt - strongswan-nm - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: strongswan-nm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan plugin to interact with NetworkManager | http://www.strongswan.org
- Debian apt - strongswan-pki - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: strongswan-pki from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan IPsec client, pki command | http://www.strongswan.org
- Debian apt - strongswan-starter - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: strongswan-starter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan daemon starter and configuration file parser | http://www.strongswan.org
- Debian apt - strongswan-swanctl - 6.0.1-6+deb13u5: normalized package name match | Debian stable package indexes: strongswan-swanctl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strongSwan IPsec client, swanctl command | http://www.strongswan.org
- Nix - strongswan: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/strongswan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - charon-cmd - 5.9.13-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: charon-cmd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | standalone IPsec client | http://www.strongswan.org


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [ike-scan](https://www.automicvault.com/pkg/brew/ike-scan/) - Shares av.db curated category or tags: cli, ike, security, vpn.
- [killswitch](https://www.automicvault.com/pkg/brew/killswitch/) - Shares av.db curated category or tags: cli, network-security, security, vpn.
- [arpoison](https://www.automicvault.com/pkg/brew/arpoison/) - Shares av.db curated category or tags: cli, network-security, security.
- [bettercap](https://www.automicvault.com/pkg/brew/bettercap/) - Shares av.db curated category or tags: cli, network-security, security.
- [easy-rsa](https://www.automicvault.com/pkg/brew/easy-rsa/) - Shares av.db curated category or tags: cli, security, vpn.
- [ettercap](https://www.automicvault.com/pkg/brew/ettercap/) - Shares av.db curated category or tags: cli, network-security, security.
- [fragroute](https://www.automicvault.com/pkg/brew/fragroute/) - Shares av.db curated category or tags: cli, network-security, security.
- [openssh](https://www.automicvault.com/pkg/brew/openssh/) - Shares av.db curated category or tags: cli, network-security, security.
- [openiked](https://www.automicvault.com/pkg/brew/openiked/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, ipsec, network, network-security, openssl.
- [zeek](https://www.automicvault.com/pkg/brew/zeek/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cmd, network, network-security, openssl.

## Combined YAML source

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


## Sources

- 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
