12 lines
369 B
Plaintext
12 lines
369 B
Plaintext
[options]
|
|
logfile = /var/log/knockd.log
|
|
|
|
[SSH]
|
|
sequence = 7000,8000,9000
|
|
seq_timeout = 5
|
|
# TODO do not limit port 22 to the ip as it don't work with 4G connection
|
|
start_command = ufw insert 1 allow from %IP% to any port 22
|
|
tcpflags = syn
|
|
cmd_timeout = 10
|
|
stop_command = ufw delete allow from %IP% to any port 22
|