ec486f0
# Dynamic ban lists (http://www.proftpd.org/docs/contrib/mod_ban.html)
ec486f0
<IfModule mod_ban.c>
ec486f0
  BanEngine			on
ec486f0
  BanLog			/var/log/proftpd/ban.log
ec486f0
  BanTable			@RUNDIR@/proftpd/ban.tab
ec486f0
ec486f0
  # If the same client reaches the MaxLoginAttempts limit 2 times
ec486f0
  # within 10 minutes, automatically add a ban for that client that
ec486f0
  # will expire after one hour.
ec486f0
  BanOnEvent			MaxLoginAttempts 2/00:10:00 01:00:00
ec486f0
ec486f0
  # Inform the user that it's not worth persisting
ec486f0
  BanMessage			"Host %a has been banned"
ec486f0
ec486f0
  # Allow the FTP admin to manually add/remove bans
ec486f0
  BanControlsACLs		all allow user ftpadm
ec486f0
</IfModule>