Skip to content

Instantly share code, notes, and snippets.

@jasonmorganson
Created April 7, 2013 16:07
Show Gist options
  • Save jasonmorganson/5331091 to your computer and use it in GitHub Desktop.
Save jasonmorganson/5331091 to your computer and use it in GitHub Desktop.
Security
/* http://bramp.github.io/js-sequence-diagrams/ */
title: SSH Login Security
participant Attempt
participant iptables
participant fail2ban
participant denyhosts
participant openssh
Attempt->iptables:
iptables-->Attempt:Blacklisted
Note left of Attempt: Limit to 1 per minute
iptables-->Attempt:Over rate limit
iptables->fail2ban:
iptables->denyhosts:
fail2ban->openssh:
denyhosts->openssh:
iptables->openssh:
openssh->publickey:
publickey-->openssh:No key
publickey->PAM:
PAM->iptables:Too many failures
PAM->Login:Success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment