Skip to content

Instantly share code, notes, and snippets.

@atdt
Last active July 26, 2020 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atdt/7c37db972e9ceb40f486c605c5df988e to your computer and use it in GitHub Desktop.
Save atdt/7c37db972e9ceb40f486c605c5df988e to your computer and use it in GitHub Desktop.
knockd.conf
[options]
UseSyslog
[ssh]
sequence = 1000,2000,3000 # change me
seq_timeout = 5
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment