On Thu, 15 Jul 2021, Alex wrote:

Date: Fri, 16 Jul 2021 03:06:43
From: Alex <mysqlstud...@gmail.com>
To: fail2ban-users@lists.sourceforge.net
Subject: [Fail2ban-users] fail2ban with iptables and "invalid port/service"

Hi,

I'm trying to use fail2ban with iptables because it's what I'm most
comfortable using and this is on a real server with an extensive list
of rules, not a home desktop.

I have the following in my jail.d/00-firewalld.conf:
banaction = iptables
banaction_allports = iptables[type=allports]

On restarting fail2ban, it produces the following errors:

2021-07-15 22:01:50,070 fail2ban.actions        [2047644]: NOTICE
[postfix] Ban 212.70.149.71
2021-07-15 22:01:50,088 fail2ban.utils          [2047644]: ERROR
7fad2804c3f0 -- exec: iptables -w -N f2b-postfix iptables -w -A
f2b-postfix -j RETURN

[--- snipped ---]

What am I doing wrong? Is fail2ban no longer capable of supporting iptables?


_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users


Hello Alex,

        I notice that the second line of your log cutting seems to have two
 invocations of "iptables" in one command.  Might this be contributing to
 your difficulties?  Should there be ";" or "&&" between "f2b-postfix" and
 "iptables"?

        Yours,
--
Graham
I hate it when people use big words to make themselves look perspicacious.




<a href="http://english-1329209197.spampoison.com";>Get free spam bait here.</a>



_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to