Skip to content

Instantly share code, notes, and snippets.

@atdt
Last active July 26, 2020 16:34
Show Gist options
  • 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