macOS
brew install knocklocal Homebrew formula metadata
sudo port install knockMacPorts ports tree · net/knock/Portfile · source: api.github.com
brew
Port-knock server. Version 0.8 via Homebrew; verified from local package data.
install
brew install knocklocal Homebrew formula metadata
sudo port install knockMacPorts ports tree · net/knock/Portfile · source: api.github.com
sudo apk add knockAlpine Linux edge package indexes · knock · source: dl-cdn.alpinelinux.org
sudo dnf install knockFedora Rawhide package metadata · knock · source: dl.fedoraproject.org
sudo zypper install knockopenSUSE Tumbleweed package metadata · knock · source: download.opensuse.org
sudo apt install knockdDebian stable package indexes · knockd · source: deb.debian.org
sudo pacman -S knockdArch Linux sync databases · knockd · source: geo.mirror.pkgbuild.com
overview
Port-knock server
history
knock is Judd Vinet's port-knocking server and client. It watches network traffic with libpcap for a configured sequence of port hits and runs commands, commonly firewall changes, when the sequence matches.
The README carries a 2004 copyright notice and describes the core design that still defines the package: closed ports can receive a secret sequence because knockd sniffs link-layer traffic rather than listening on those ports. The bundled ChangeLog lists 0.1 as the initial release and shows later work adding TCP flag handling, reload behavior, timeouts, kernel-space BPF filtering, one-time sequences, interface selection, and IPv6 support.
Version 0.8 was published on 2021-04-24 with multiple fixes and IPv6 support. The GitHub repository retained a small C codebase, an example `knockd.conf`, and manpage documentation rather than growing into a larger access-control framework.
knock spread through Unix-like distributions because it solved a specific sysadmin problem with a small daemon and client. Package names vary between `knock`, `knockd`, and distribution-specific formula names, but the underlying model stayed close to the original README example: a knock sequence opens SSH, and another sequence closes it.
A server runs `knockd` with a configuration file such as `/etc/knockd.conf`; a client runs `knock` to send TCP or UDP packets to the configured sequence. Commands usually add or remove firewall rules, so the tool is operationally simple but security-sensitive: the sequence should be treated like a shared secret and firewall commands must be written carefully.
knock is a memorable package because it embodies a whole security pattern in a tiny Unix daemon. It is also a reminder of the early-2000s sysadmin style: libpcap, iptables commands, config files, and a tiny client were enough to make a practical layer around SSH exposure.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
/etc/knockd.confexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
knock | cli | global executable | |
knock_helper_ipt.sh | cli | global executable | |
knockd | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/jvinet/knock
install metadata
| Package key | brew:knock |
|---|---|
| Version | 0.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/knock |
| Homepage | https://github.com/jvinet/knock |
| Repository | https://github.com/jvinet/knock |
| Upstream docs | https://github.com/jvinet/knock#readme |
| License | GPL-2.0-or-later |
| Source archive | https://github.com/jvinet/knock/releases/download/v0.8/knock-0.8.tar.gz |
| Uses from macOS | libpcap |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | knock |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
knock 0.8.2-r2
A simple port-knocking daemon
https://github.com/TDFKAOlli/knock
sudo apk add knockknock-doc 0.8.2-r2
A simple port-knocking daemon (documentation)
https://github.com/TDFKAOlli/knock
sudo apk add knock-docknock-openrc 0.8.2-r2
A simple port-knocking daemon (OpenRC init scripts)
https://github.com/TDFKAOlli/knock
sudo apk add knock-openrcknock 0.8-13.fc44
A port-knocking server/client
http://www.zeroflux.org/projects/knock
sudo dnf install knockknock-server 0.8-13.fc44
A port-knocking server/client
http://www.zeroflux.org/projects/knock
sudo dnf install knock-serverknock 0.8-4.4
A Port-Knocking Client
http://www.zeroflux.org/knock/
sudo zypper install knockknockd 0.8-4.4
A port-knocking server
http://www.zeroflux.org/knock/
sudo zypper install knockdknock
sudo port install knockknockd 0.8-2+b6
small port-knock daemon
http://www.zeroflux.org/projects/knock
sudo apt install knockdknockd 0.8-2build2
small port-knock daemon
http://www.zeroflux.org/projects/knock
sudo apt install knockdknockd 0.8-2
A simple port-knocking daemon
https://github.com/jvinet/knock
sudo pacman -S knockdsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.