Secure your SSH server with blacklistd and PacketFilter under FreeBSD

LinaSovereign - 8th September 2017 - FreeBSD /Network /Security /

Many of us know and use Fail2ban, a very powerfull log parser able to block everything you want if you create the good rules for your services.
But, when it comes to just secure our SSHd, it can be a little… overkill !
So, a daemon named blacklistd(8) showed up few months ago on the FreeBSD 11 release and is dedicated to blocking specific ports (ssh, smtp, ftp, etc.) on demand to avoid DoS or bruteforce abuse.


In this paper, we’ll see :

  1. How we can configure blacklistd(8) with PacketFilter to block SSHd attackers.
  2. How we can whitelist specific hosts on specific ports.
  3. How we can check and delete the blocked hosts list.
  4. Need help ?

Time to log in and start working !

This content is limited to logged in users.