I'm having issues with fail2ban is not adding the banned IP to iptables.
this is the error;
2022-01-29 15:13:48,499 fail2ban.actions [2608]: NOTICE [man] Restore Ban 212.192.246.26
2022-01-29 15:13:48,513 fail2ban.utils [2608]: ERROR 7f9281692660 -- exec: iptables -w -N f2b-man
iptables -w -A f2b-man -j RETURN
iptables -w -I INPUT -p tcp -m multiport --dports all -j f2b-man
2022-01-29 15:13:48,514 fail2ban.utils [2608]: ERROR 7f9281692660 -- stderr: 'iptables: Chain already exists.'
2022-01-29 15:13:48,514 fail2ban.utils [2608]: ERROR 7f9281692660 -- stderr: "iptables v1.8.4 (legacy): invalid port/service `all' specified"
2022-01-29 15:13:48,514 fail2ban.utils [2608]: ERROR 7f9281692660 -- stderr: "Try `iptables -h' or 'iptables --help' for more information."
2022-01-29 15:13:48,514 fail2ban.utils [2608]: ERROR 7f9281692660 -- returned 2
2022-01-29 15:13:48,514 fail2ban.actions [2608]: ERROR Failed to execute ban jail 'man' action 'iptables-multiport' info 'ActionInfo({'ip': '212.192.246.26', 'family': 'inet4', 'fid': <function Actions.ActionInfo.<lambda> at 0x7f9280d62e50>, 'raw-ticket': <function Actions.ActionInfo.<lambda> at 0x7f9280d63550>})': Error starting action Jail('man')/iptables-multiport: 'Script error'
so iptables don't like;
iptables -w -I INPUT -p tcp -m multiport --dports all -j f2b-man
--dport all is apparently the issue,so my question is Why?
why is fail2ban giving an faulty command, and how to correct it?
edit: running Ubuntu server 20.04.3 without netplan.