# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt 安装 fwknop

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

## 安装

```sh
sudo av install brew:fwknop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fwknop
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fwknop
```

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

### Linux

- apk (92%):

```sh
sudo apk add fwknop
```

  证据: Alpine Linux edge package indexes: fwknop from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install fwknop
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#fwknop
```

  证据: nixpkgs package indexes: pkgs/by-name/fw/fwknop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S fwknop
```

  证据: Arch Linux sync databases: fwknop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install fwknop
```

  证据: openSUSE Tumbleweed package metadata: fwknop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install fwknop-apparmor-profile
```

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

## 软件包事实

- **软件包键:** brew:fwknop
- **软件包管理器:** Homebrew
- **版本:** 2.6.11
- **来源摘要:** Single Packet Authorization and Port Knocking
- **主页:** <https://www.cipherdyne.org/fwknop/>
- **仓库:** <https://github.com/mrash/fwknop>
- **最后更新:** 2026-06-22T14:03:23-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fwknop (别名)
- fwknopd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

fwknop, the FireWall KNock OPerator, is a security tool for Single Packet Authorization. It conceals services behind a default-drop firewall and temporarily opens access only after a valid encrypted, authenticated, non-replayed packet is observed.

### 项目历史

The official project page says fwknop began in 2004 as a port-knocking implementation and was the first tool to combine traditional encrypted port knocking with passive OS fingerprinting. The project later emphasized Single Packet Authorization as a stronger successor to port knocking.

The current C implementation includes libfko, client and server applications, and support for Linux iptables and firewalld, OpenBSD PF, FreeBSD and macOS ipfw, and custom scripts. The README describes the project state around the 2.5 release in July 2013, when libfko, the client, and fwknopd server formed the core distribution.

The official site continues to publish releases, with the project page listing 2.6.11 as the latest release and the blog showing a 2024 software release post.

### 采用历史

fwknop became known in the security community through port-knocking and SPA discussions. The official project page notes two Slashdot appearances in 2004 and 2005, one about combining port knocking with OS fingerprinting and another about going beyond port knocking with single-packet access.

Package metadata shows fwknop in multiple Unix-like package ecosystems, and upstream documentation covers Linux, BSD, macOS, Windows under Cygwin, Android clients, and graphical clients. Its adoption is strongest among administrators who want SSH or internal services invisible to ordinary scans.

### 使用方式

A typical deployment generates encryption and HMAC keys, stores client settings in `~/.fwknoprc`, places shared authorization material in `/etc/fwknop/access.conf`, starts `fwknopd`, and keeps the protected service blocked by default firewall policy until a valid SPA packet arrives.

The tutorial focuses on SSH concealment, NAT gateway use, cloud environments, replay protection, HMAC authenticated encryption, and the operational tradeoff of needing both a client and a daemon.

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

fwknop is significant because it turns firewall access into a packageable client-server protocol with config files, manpages, libraries, distro packages, and alternate clients. It is not just a security script; it is an ecosystem around SPA packets and firewall rule orchestration.

For maintainers, fwknop is also a reminder that security packages often include sensitive config defaults, key files, init or service integration, firewall backend differences, and compatibility with old protocol modes.

### 时间线

- 2004: Project begins as a port-knocking implementation.
- 2004: Project receives Slashdot attention for encrypted port knocking with OS fingerprinting.
- 2005: Single Packet Authorization direction receives further Slashdot attention.
- 2006: Single Packet Authorization with fwknop paper published in USENIX ;login: Magazine.
- 2011: GitHub repository created.
- 2013: README describes the 2.5 release with libfko, client, and server applications.
- 2016: Comprehensive tutorial updated.
- 2024: Official site announces fwknop 2.6.11.

### Related projects

- fwknop is closely related to port-knocking tools but positions Single Packet Authorization as a stronger design.
- The official README names fwknop-gui and Android Fwknop2 as related clients.
- Other Cipherdyne projects listed near fwknop include psad, fwsnort, gpgdir, and IPTables parsing or chain-management modules.

### 来源

- <https://api.github.com/repos/mrash/fwknop>
- <https://github.com/mrash/fwknop>
- <https://raw.githubusercontent.com/mrash/fwknop/master/README.md>
- <https://www.cipherdyne.org/fwknop>
- <https://www.cipherdyne.org/fwknop/docs/SPA.html>
- <https://www.cipherdyne.org/fwknop/docs/fwknop-tutorial.html>


## 安全说明

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

- Unix: ~/.fwknoprc, /etc/fwknop/fwknopd.conf, /etc/fwknop/access.conf

## Credential files

- Unix: ~/.fwknoprc, /etc/fwknop/access.conf
## 其他软件包管理器记录

- Debian apt - fwknop-apparmor-profile - 2.6.11-2: normalized package name match | Debian stable package indexes: fwknop-apparmor-profile from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FireWall KNock OPerator - Apparmor profile | https://www.cipherdyne.com/fwknop/
- Debian apt - fwknop-client - 2.6.11-2+b1: normalized package name match | Debian stable package indexes: fwknop-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FireWall KNock OPerator client side - C version | https://www.cipherdyne.com/fwknop/
- Debian apt - fwknop-server - 2.6.11-2+b1: normalized package name match | Debian stable package indexes: fwknop-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FireWall KNock OPerator server side - C version | https://www.cipherdyne.com/fwknop/
- Debian apt - libfko-doc - 2.6.11-2: normalized package name match | Debian stable package indexes: libfko-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FireWall KNock OPerator - documentation | https://www.cipherdyne.com/fwknop/
- Debian apt - libfko-perl - 2.6.11-2+b1: normalized package name match | Debian stable package indexes: libfko-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FireWall KNock OPerator - Perl module | https://www.cipherdyne.com/fwknop/
- Debian apt - libfko3-dev - 2.6.11-2+b1: normalized package name match | Debian stable package indexes: libfko3-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FireWall KNock OPerator - development library | https://www.cipherdyne.com/fwknop/
- Debian apt - libfko3t64 - 2.6.11-2+b1: normalized package name match | Debian stable package indexes: libfko3t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FireWall KNock OPerator - shared library | https://www.cipherdyne.com/fwknop/
- Nix - fwknop: normalized package name match | nixpkgs package indexes: pkgs/by-name/fw/fwknop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fwknop-apparmor-profile - 2.6.10-20.2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: fwknop-apparmor-profile from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FireWall KNock OPerator - Apparmor profile | https://www.cipherdyne.com/fwknop/
- Ubuntu apt - fwknop-client - 2.6.10-20.2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: fwknop-client from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FireWall KNock OPerator client side - C version | https://www.cipherdyne.com/fwknop/
- Ubuntu apt - fwknop-server - 2.6.10-20.2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: fwknop-server from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FireWall KNock OPerator server side - C version | https://www.cipherdyne.com/fwknop/
- Ubuntu apt - libfko-doc - 2.6.10-20.2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfko-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FireWall KNock OPerator - documentation | https://www.cipherdyne.com/fwknop/
- Ubuntu apt - libfko-perl - 2.6.10-20.2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfko-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FireWall KNock OPerator - Perl module | https://www.cipherdyne.com/fwknop/
- Ubuntu apt - libfko3-dev - 2.6.10-20.2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfko3-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FireWall KNock OPerator - development library | https://www.cipherdyne.com/fwknop/
- Ubuntu apt - libfko3t64 - 2.6.10-20.2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfko3t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FireWall KNock OPerator - shared library | https://www.cipherdyne.com/fwknop/
- apk - fwknop - 2.6.11-r2: normalized package name match | Alpine Linux edge package indexes: fwknop from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Single Packet Authorization (SPA) implementation | https://cipherdyne.org/fwknop/


## Combined YAML source

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


## 来源

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