~/talk

Open Sesame Secure your SSH server with Port Knocking

TalkinFrenchat DevFest Toulouse 2025 · on Thursday, 2025-11-13· [security]
slides:none on file

Demonstrates securing an exposed SSH server on Debian 12 by using iptables and the port-knocking daemon Nockd to keep port 22 closed until a specific sequence of ports (3000→4000→5000) is hit within 30s. To prevent replay attacks, the demo derives the knock sequence from a TOTP-like shared secret (generating six numbers ×100 that change each minute). Alternatives covered include single-packet-authorization tools such as fwknop and Ruroco, and the demo shows opening SSH after a correct knock and then reclosing the port.

AI-written summary · about

  1. 0:00SSH security overview
  2. 1:10Port knocking history
  3. 3:36SSH server risks
  4. 5:21Port knocking mechanics
  5. 6:24Demo: knockd and iptables
  6. 9:51Port knocking vulnerabilities
  7. 10:34TOTP dynamic solution
  8. 12:37Port knocking pros and cons
  9. 13:39Single Packet Authorization
  10. 14:42Conclusion & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.