Port knocking is a way to secure a server by closing firewall ports—even those you know will be used. Those ports are opened on demand if—and only if—the connection request provides the secret knock.
Source :
How to Use Port Knocking on Linux (and Why You Shouldn’t)