Single Packet Authorization (SPA) does the knock’s job with one packet instead of a sequence, and that packet is encrypted and signed so it can’t be reused. The tool is fwknop: fwknopd runs on the firewall, fwknop on the client.
1. Rebuild and hide SSH
SSH is now blocked for everyone, as at the start of Phase 2.
2. Make a key pair for SPA
It prints a KEY_BASE64 and an HMAC_KEY_BASE64. Copy both; you’ll put them on the firewall and use them from the client.
3. Give the firewall the keys
Write them into the firewall’s access file. Replace the two placeholders with the keys you just made.
4. Start fwknopd
You should see
- Two base64 keys from
--key-gen. fwknopdlistening on UDP62201.
What it means
The firewall is now waiting for one specific, encrypted packet. Until it arrives, SSH is invisible, exactly as it was behind the knock. The difference is in what that packet is, which the next step shows.