Nevermind, it was a filename typo. after reading the correct file, everything worked as expected.
On 18.10.2017 12:54, Stefan Helmerichs wrote: > Hi, > > I recently installed Fail2Ban 0.9.3 on a Ubuntu 16.04 System, > and am trying to create custom action shortcuts to reuse > in my custom jail files. > > The jails themselves work fine, the custom DEFAULTS-file > is being loaded, but when trying to start Fail2Ban, Jails > using my custom action shortcut are not beig started. > > My common data file (jails.d/jails.common) contains the following entries: > ---- > [DEFAULT] > destemail = d...@server.com > sender = sen...@server.com > sendername = Some Fail2Ban Sender > > action_c = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", > port="%(port)s", protocol=tcp, chain=mychain] > > action_cd = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", > port="%(port)s", protocol=tcp, chain=mychain] > %(mta)s-custom[name=%(__name__)s, dest="%(destemail)s", > sender="%(sender)s", chain=mychain] > > ---- > > and my CustomJail.conf contains this > > ---- > > [INCLUDES] > before = jails.common > > [customjail] > port = http,https > action = %(action_cd)s > logpath = /path/to/logfile > enabled = true > maxretry = 1 > bantime = 1 > > ---- > > the low values for maxretry and bantime obviously for testing purposes. > However, starting Fail2Ban with this configuration fails wih this error > message: > > ERROR Failed during configuration: Bad value substitution: option > 'action' in section 'customjail' contains an interpolation key > 'action_cd' which is not a valid option name. Raw value: '%(action_cd)s' > > For architectural reasons, I do not want to rewrite jail.local for this, > as these actions should not be available for all jails. > > I am quite lost and qould appreciate help, as I did not find any hint on > this either in the mailing lists or google or anywhere, really. > > Kind regards, Stefan > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Fail2ban-users mailing list > Fail2ban-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fail2ban-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users