HomeFreeBSD

MFC r318755: Extend libblacklist support with new action types

Description

MFC r318755: Extend libblacklist support with new action types

The original blacklist library supported two notification types:

  • failed auth attempt, which incremented the failed login count by one for the remote address
  • successful auth attempt, which reset the failed login count to zero for that remote address

When the failed login count reached the limit in the configuration
file, the remote address would be blocked by a packet filter.

This patch implements a new notification type, "abusive behavior",
and accepts, but does not act on an additional type, "bad username".
It is envisioned that a system administrator will configure a small
list of "known bad usernames" that should be blocked immediately.

Sponsored by: The FreeBSD Foundation

Details

Provenance
lidlAuthored on
Parents
rS318949: MFC r318748:
Branches
Unknown
Tags
Unknown