I have been using fail2ban for a while on my Ubuntu server. Recently (after upgrading to ubuntu 15.04 I assume) fail2ban has been failing to start.
Initially, this was because the port option had been specified twice somewhere - I fixed that.
Now I am getting the following error:
WARNING 'filter' not defined in 'sshd'. Using default one: ''
ERROR Failed during configuration: Bad value substitution:
section: [sshd]
option : action
key : port
rawval : ", protocol="%(protocol)s", chain="%(chain)s"]
%(mta)s-whois-lines[name=%(__name__)s, dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s", sendername="%(sendername)s"]
Here is a link to a pastebin of my jail.local configuration file: http://pastebin.com/KksbwT1r
I have removed the email addresses for privacy reasons.
/etc/fail2ban/jail.confand/etc/fail2ban/jail.local(jail.localis the file that you should edit andjail.confis the default settings one I think). Would it be possible for you to post your fail2ban config? I would find it helpful to compare your working one against my failing one :) – starbeamrainbowlabs Apr 30 '15 at 18:56jail.conf.dpkg-distin that directory too. I assume it's the newest default config file, so I backed up and deleted the old ones and reconfigured my fail2ban install using the new config file it seems to be working now. Thanks for your help! – starbeamrainbowlabs Apr 30 '15 at 19:16jail.d/defaults-debian.confwwith only 2 lines, so no filter no action – mirkobrankovic Mar 13 '16 at 21:56