Port knocking
In computer networking, port knocking is a method of externally opening ports on a firewall by generating a connection attempt on a set of prespecified closed ports.[1] Once a correct sequence of connection attempts is received, the firewall rules are dynamically modified to allow the host which sent the connection attempts to connect over specific port(s).[src] A variant called single packet authorization (SPA) exists, where only a single "knock" is needed, consisting of an encrypted packet.[2] The primary purpose of port knocking is to prevent an attacker from scanning a system for potentially exploitable services by doing a port scan, because unless the attacker sends the correct knock sequence, the protected ports will appear closed.[1]
In computer networking, port knocking is a method of externally opening ports on a firewall by generating a connection attempt on a set of prespecified closed ports.[1] Once a correct sequence of connection attempts is received, the firewall rules are dynamically modified to allow the host which sent the connection attempts to connect over specific port(s).[src] A variant called single packet authorization (SPA) exists, where only a single "knock" is needed, consisting of an encrypted packet.[2] The primary purpose of port knocking is to prevent an attacker from scanning a system for potentially exploitable services by doing a port scan, because unless the attacker sends the correct knock sequence, the protected ports will appear closed.[1] List of resources about PK and SPA (papers, implementations, presentations...) PortKnocking - A system for stealthy authentication across closed ports.[src] (archived) Linux Journal: Port Knocking (2003) A Critique of Port Knocking (2004) fwknop: An implementation that combines port knocking and passive OS fingerprinting WebKnock: An online Port Knocking and Single Packet Authorization (SPA) client based on fwknop webknocking: Using webpages instead of ports.[1] Port knocking to hide a backdoor Port knocking to hide communication channel for malware, example from the wild Techniques for Lightweight Concealment and Authentication in IP Networks (2002)[1]
11 sentences · 11 cited inline · 6 references stored
References
- Michael Rash (2004) [https://www.usenix.org/publications/login/december-2004-volume-29-number-6/combining-port-knocking-and-passive-os Combining Port Knocking and Passive OS Fingerprinting with fwknop . · retrieved 2026-10-02 · rev 1378135518
Cite this reference
MLA "Michael Rash (2004) [https://www.usenix.org/publications/login/december-2004-volume-29-number-6/combining-port-knocking-and-passive-os Combining Port Knocking and Passive OS Fingerprinting with fwknop ." Michael Rash (2004) [https://www. 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518. Accessed 06 December 2026.
Chicago "Michael Rash (2004) [https://www.usenix.org/publications/login/december-2004-volume-29-number-6/combining-port-knocking-and-passive-os Combining Port Knocking and Passive OS Fingerprinting with fwknop ." Michael Rash (2004) [https://www. 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518.
APA Michael Rash (2004) [https://www. (2026). Michael Rash (2004) [https://www.usenix.org/publications/login/december-2004-volume-29-number-6/combining-port-knocking-and-passive-os Combining Port Knocking and Passive OS Fingerprinting with fwknop . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378135518
- Michael Rash (2006). [http://www.cipherdyne.org/fwknop/docs/SPA.html Single Packet Authorization with Fwknop] . · retrieved 2026-10-02 · rev 1378135518
Cite this reference
MLA "Michael Rash (2006). [http://www.cipherdyne.org/fwknop/docs/SPA.html Single Packet Authorization with Fwknop] ." Michael Rash (2006). 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518. Accessed 06 December 2026.
Chicago "Michael Rash (2006). [http://www.cipherdyne.org/fwknop/docs/SPA.html Single Packet Authorization with Fwknop] ." Michael Rash (2006). 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518.
APA Michael Rash (2006). (2026). Michael Rash (2006). [http://www.cipherdyne.org/fwknop/docs/SPA.html Single Packet Authorization with Fwknop] . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378135518
- Michael Rash (2007). [http://www.linuxjournal.com/article/9621 Protecting SSH Servers with Single Packet Authorization] . · retrieved 2026-10-02 · rev 1378135518
Cite this reference
MLA "Michael Rash (2007). [http://www.linuxjournal.com/article/9621 Protecting SSH Servers with Single Packet Authorization] ." Michael Rash (2007). 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518. Accessed 06 December 2026.
Chicago "Michael Rash (2007). [http://www.linuxjournal.com/article/9621 Protecting SSH Servers with Single Packet Authorization] ." Michael Rash (2007). 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518.
APA Michael Rash (2007). (2026). Michael Rash (2007). [http://www.linuxjournal.com/article/9621 Protecting SSH Servers with Single Packet Authorization] . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378135518
- Moxie Marlinspike (2009). [http://www.thoughtcrime.org/software/knockknock/ Using knockknock for Single Packet Authorization] . · retrieved 2026-10-02 · rev 1378135518
Cite this reference
MLA "Moxie Marlinspike (2009). [http://www.thoughtcrime.org/software/knockknock/ Using knockknock for Single Packet Authorization] ." Moxie Marlinspike (2009). 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518. Accessed 06 December 2026.
Chicago "Moxie Marlinspike (2009). [http://www.thoughtcrime.org/software/knockknock/ Using knockknock for Single Packet Authorization] ." Moxie Marlinspike (2009). 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518.
APA Moxie Marlinspike (2009). (2026). Moxie Marlinspike (2009). [http://www.thoughtcrime.org/software/knockknock/ Using knockknock for Single Packet Authorization] . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378135518
- PortKnocking - Community Help Wiki . help.ubuntu.com . retrieved 2023-07-08 · retrieved 2023-07-07 · rev 1378135518
Cite this reference
MLA "PortKnocking - Community Help Wiki . help.ubuntu.com . retrieved 2023-07-08." PortKnocking - Community Help Wiki. 2023-07-07. https://en.wikipedia.org/w/index.php?oldid=1378135518. Accessed 06 December 2026.
Chicago "PortKnocking - Community Help Wiki . help.ubuntu.com . retrieved 2023-07-08." PortKnocking - Community Help Wiki. 2023-07-07. https://en.wikipedia.org/w/index.php?oldid=1378135518.
APA PortKnocking - Community Help Wiki. (2023). PortKnocking - Community Help Wiki . help.ubuntu.com . retrieved 2023-07-08. Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378135518
- How To Configure Port Knocking Using Only Iptables on . · retrieved 2026-10-02 · rev 1378135518
Cite this reference
MLA "How To Configure Port Knocking Using Only Iptables on ." 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518. Accessed 06 December 2026.
Chicago "How To Configure Port Knocking Using Only Iptables on ." 2026-10-02. https://en.wikipedia.org/w/index.php?oldid=1378135518.
APA encyclopegia.org. (2026). How To Configure Port Knocking Using Only Iptables on . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378135518
Cite this article
MLA
"Port knocking." encyclopegia.org, 2026, https://encyclopegia.org/wiki/port-knocking. Accessed 06 December 2026.
Chicago
"Port knocking." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/port-knocking.
APA
encyclopegia.org. (2026). Port knocking. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/port-knocking
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON