macOS
brew install knocklocal Homebrew formula metadata
sudo port install knockMacPorts ports tree · net/knock/Portfile · 来源: api.github.com
安装
brew install knocklocal Homebrew formula metadata
sudo port install knockMacPorts ports tree · net/knock/Portfile · 来源: api.github.com
sudo apk add knockAlpine Linux edge package indexes · knock · 来源: dl-cdn.alpinelinux.org
sudo dnf install knockFedora Rawhide package metadata · knock · 来源: dl.fedoraproject.org
sudo zypper install knockopenSUSE Tumbleweed package metadata · knock · 来源: download.opensuse.org
sudo apt install knockdDebian stable package indexes · knockd · 来源: deb.debian.org
sudo pacman -S knockdArch Linux sync databases · knockd · 来源: geo.mirror.pkgbuild.com
概览
Port-knock server
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
knock | cli | 全局可执行文件 | |
knock_helper_ipt.sh | cli | 全局可执行文件 | |
knockd | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/jvinet/knock
安装元数据
| 软件包键 | brew:knock |
|---|---|
| 版本 | 0.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/knock |
| 主页 | https://github.com/jvinet/knock |
| 仓库 | https://github.com/jvinet/knock |
| 上游文档 | https://github.com/jvinet/knock#readme |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://github.com/jvinet/knock/releases/download/v0.8/knock-0.8.tar.gz |
| macOS 提供的库 | libpcap |
| Bottle | 可用 (于 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 | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 knockd来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.