knockd.conf 361 B

1234567891011
  1. [options]
  2. logfile = /var/log/knockd.log
  3. [SSH]
  4. sequence = 7000,8000,9000
  5. seq_timeout = 5
  6. # TODO do not limit port 22 to the ip as it don't work with 4G connection
  7. start_command = ufw allow from %IP% to any port 22
  8. tcpflags = syn
  9. cmd_timeout = 10
  10. stop_command = ufw delete allow from %IP% to any port 22