mirror of
https://salsa.debian.org/debian/knockd
synced 2026-01-05 02:53:55 +00:00
16 lines
355 B
Plaintext
16 lines
355 B
Plaintext
[options]
|
|
logfile = /var/log/knockd.log
|
|
|
|
[openSSH]
|
|
sequence = 7000,8000,9000
|
|
seq_timeout = 5
|
|
command = /usr/sbin/iptables -A INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
|
|
tcpflags = syn
|
|
|
|
[closeSSH]
|
|
sequence = 9000,8000,7000
|
|
seq_timeout = 5
|
|
command = /usr/sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
|
|
tcpflags = syn
|
|
|