Topic: fail2ban error
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? NO
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I've installed iRedMail 0.9.9 last week and everething went ok. Today I've received netdata email about ram available and I decided to restart the server. After restart, the ram available reverted back to normal, but I've noticed in netdata that fail2ban didn't show up.
I've checked 'sudo systemctl status fail2ban' and this is what I've got:
fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-01-23 12:33:32 GMT; 25min ago
Docs: man:fail2ban(1)
Process: 2569 ExecStop=/usr/bin/fail2ban-client stop (code=exited, status=0/SUCCESS)
Process: 2606 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=0/SUCCESS)
Main PID: 2610 (fail2ban-server)
Tasks: 17 (limit: 4915)
CGroup: /system.slice/fail2ban.service
└─2610 /usr/bin/python3 /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid -x -b
Jan 23 12:33:32 mail.domain.co.uk fail2ban.jail[2610]: INFO Jail 'sogo-iredmail' started
Jan 23 12:33:32 mail.domain.co.uk systemd[1]: Started Fail2Ban Service.
Jan 23 12:33:32 mail.domain.co.uk fail2ban.action[2610]: ERROR iptables -w -N f2b-sshd
iptables -w -A f2b-sshd -j RETURN
iptables -w -I INPUT -p tcp -m multiport --dports -j f2b-sshd -- stdou
t: b''
Jan 23 12:33:32 mail.domain.co.uk fail2ban.action[2610]: ERROR iptables -w -N f2b-sshd
iptables -w -A f2b-sshd -j RETURN
iptables -w -I INPUT -p tcp -m multiport --dports -j f2b-sshd -- stder
r: b"iptables v1.6.0: invalid port/service `-j' specified\nTry `iptables -h' or 'iptables --help' for more information.\n"
Jan 23 12:33:32 mail.domain.co.uk fail2ban.action[2610]: ERROR iptables -w -N f2b-sshd
iptables -w -A f2b-sshd -j RETURN
iptables -w -I INPUT -p tcp -m multiport --dports -j f2b-sshd -- retur
ned 2
I don't have any custom config in jail.local and I have default iptables instaled with iredmail.
Any idea why this errors?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.