Debian 9
IMSCP 1.5.3
I'm using dovecot for the first time on a new system,
now I have setup fail2ban:
https://wiki.i-mscp.net/doku.php?id=start:howto:fail2ban
but something does not work:
Code
- iptables -w -A f2b-dovecot -j RETURN
- iptables -w -I INPUT -p tcp -m multiport --dports smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s -j f2b-dovecot -- stdout: b''
- 2018-05-20 14:30:41,327 fail2ban.action [28925]: ERROR iptables -w -N f2b-dovecot
- iptables -w -A f2b-dovecot -j RETURN
- iptables -w -I INPUT -p tcp -m multiport --dports smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s -j f2b-dovecot -- stderr: b"iptables v1.6.0: invalid port/service `imap3' specified\nTry `iptables -h' or 'iptables --help' for more information.\n"
- 2018-05-20 14:30:41,329 fail2ban.action [28925]: ERROR iptables -w -N f2b-dovecot
- iptables -w -A f2b-dovecot -j RETURN
- iptables -w -I INPUT -p tcp -m multiport --dports smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s -j f2b-dovecot -- returned 2
- 2018-05-20 14:30:41,330 fail2ban.actions [28925]: ERROR Failed to start jail 'dovecot' action 'iptables-multiport': Error starting action
### edit ###
solved:
removed imap3 port from fail2ban jail.local