How To

Sentry – Prevents Brute Force Attacks Against SSH, FTP, SMTP and More

Supporting OS (operating system)

  • FreeBSD
  • Mac OS X
  • Linux (CentOS, Debain, Ubuntu)

Download Command:

  • bash || sh
  • export SENTRY_URL=https://raw.githubusercontent.com/msimerson/sentry/master/sentry.pl
  • curl -O $SENTRY_URL || wget $SENTRY_URL || fetch --no-verify-peer $SENTRY_URL
  • perl sentry.pl --update
    Running sentry.pl --update will:

    • create the sentry database (if needed)
    • install the perl script (if needed)
    • prompt you to edit /etc/hosts.allow (if needed)
  • blacklist – deny all future connections
  • whitelist – whitelist all future connections, remove the IP from the blacklists, and make it immune to future connection tests.
  • delist – remove an IP from the white and blacklists. This is useful for testing that sentry is working as expected.
  • connect – register a connection by an IP. The connect method will log the attempt and the time. See CONNECT.
  • update – Installs and update if a newer version is available. This is most reliable when LWP::UserAgent is installed.
To Top

Pin It on Pinterest

Share This