Description
fwknop, short for FireWall KNock OPerator, implements Single Packet Authorization (SPA), a more secure form of port knocking. The project says SPA needs only one encrypted packet to convey the desired access through a firewall policy, or a complete command to run on the target system. The firewall keeps a default-drop stance, and fwknop is mainly used to protect services such as OpenSSH, so the service does not show up to a port scan, which makes exploiting it harder. The authorization server passively sniffs SPA packets with libpcap, so there is no server that clients connect to in the traditional sense. Access is granted only after a properly decrypted, non-replayed packet is seen. fwknop works with iptables and firewalld on Linux, ipfw on FreeBSD and macOS, and PF on OpenBSD. The site provides a tutorial, documentation, a feature list, the source code on GitHub, a code coverage report and a mailing list. The author's blog post on the design, titled Single Packet Authorization: The fwknop Approach, explains the reasoning behind it.…
Highlights
- Single Packet Authorization instead of open ports
- Default-drop firewall protection for services such as SSH
- Passive sniffing with libpcap, with replay protection
- Works with iptables, firewalld, ipfw and PF
- Tutorial, documentation and source on GitHub
Ratings & Reviews
No ratings yet
Be the first to rate Fwknop.
People also visit

Knock Knock
Knock-Knock: A Live, Multi-Protocol Honeypot Dashboard of Internet Break-in
Fwknop FAQ
What is fwknop?
A Single Packet Authorization tool that keeps services hidden behind a default-drop firewall and opens access only after an authenticated packet arrives.
How is it different from port knocking?
The project says SPA uses a single encrypted packet, which keeps the benefits of port knocking while adding protections such as encryption and replay checks.
Which firewalls does it support?
iptables and firewalld on Linux, ipfw on FreeBSD and macOS, and PF on OpenBSD.
Where can I learn to use it?
The site has a tutorial and documentation, and a mailing list for questions.
Where is the source?
On GitHub at mrash/fwknop, which you can clone with git.
What are the best Fwknop alternatives?
Popular alternatives to Fwknop include Ghostport, PortKnock and SafeLine. See all Fwknop alternatives



