Within a Red Hat Enterprise Linux Server release 7.6 (Maipo) I would like to use the module mod_ban in order to set a ClientConnectRate event. The service is started as: systemctl start proftpd

Service is configured as below:

[root@lclftpcrb001blq ~]# cat /usr/lib/systemd/system/proftpd.service
Description = ProFTPD FTP Server
After = network.target nss-lookup.target local-fs.target remote-fs.target

Type = forking
PIDFile = /run/proftpd/proftpd.pid
Environment = PROFTPD_OPTIONS=
EnvironmentFile = -/etc/sysconfig/proftpd
ExecStart = /usr/sbin/proftpd $PROFTPD_OPTIONS
ExecReload = /bin/kill -HUP $MAINPID

WantedBy = multi-user.target

So, other than configuring this code in /etc/proftpd.conf:

  BanEngine     on
  BanLog        /var/log/proftpd/ban.log
  BanTable      /var/run/proftpd/ban.tab
  BanOnEvent  ClientConnectRate   10/00:10:00 00:15:00 "Stop connecting frequently"
  BanMessage                    "Host %a has been banned"
  BanControlsACLs               all allow user ftpadm

I also have /etc/sysconfig/proftpd:


Despite the configurations, when I start the service the debug tells me:

proftpd[29035]: <IfDefine>: skipping 'DYNAMIC_BAN_LISTS' section at line 85

From my understanding, the IfDefine block is loaded if DYNAMIC_BAN_LISTS is present in /etc/sysconfig/proftpd. So the only thing I can think is that for some reason it's not retrieving the option from /etc/sysconfig/proftpd ...

How can I check this point?


  • Which OS do you use? How do you start the servce, using service proftpd start? – Tommiie Jan 7 at 15:18
  • Edited the question, thanks for spotting out – EBAH Jan 7 at 15:21

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.