What is port knocking and is it a good control?
AdvancedConceptNAT, Firewalls & VPN
Answer
The firewall hides a port until a client sends a secret sequence of connection attempts to other ports. It adds obscurity, not strong security: sequences can be replayed or sniffed.
We prefer real controls: key-based SSH, SSM or a VPN, IP allow lists and short-lived certificates. Treat port knocking as an extra layer, never the only one.
More on NAT, Firewalls & VPN
What is NAT and why is it used?BeginnerWhat is the difference between SNAT, DNAT and PAT?AdvancedHow does an AWS NAT gateway work, and what are its limits?AdvancedWhy is NAT gateway cost a common surprise and how do you reduce it?IntermediateWhat is conntrack and what happens when its table fills up?AdvancedWhat is the difference between a stateful and a stateless firewall?Beginner