This example uses two knocks. The first will allow the knocker to access port
22 (SSH), and the second will close the port when the knocker is complete.
As you can see, this could be useful if you run a very restrictive (DENY policy)
firewall and would like to access it discreetly.
[options]
LogFile = /var/log/knockd.log
[openSSH]
sequence = 7000,8000,9000
protocol = tcp
timeout = 15
command = /usr/sbin/iptables -A INPUT -s %IP% -j ACCEPT
[closeSSH]
sequence = 9000,8000,7000
protocol = tcp
timeout = 15
command = /usr/sbin/iptables -D INPUT -s %IP% -j ACCEPT