From 5f7bd2d63dfb9edf2adfa66cb0358b65b8a6a4f8 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Wed, 24 Jun 2020 10:22:41 -0500 Subject: [PATCH] In Fedora 32 and EL 8 nftables is the default firewall and does not accept : for port ranges, fixes RHBZ#1850164. --- fail2ban.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fail2ban.spec b/fail2ban.spec index 22f73c2..a3af58a 100644 --- a/fail2ban.spec +++ b/fail2ban.spec @@ -185,6 +185,12 @@ find -type f -exec sed -i -e '1s,^#!/usr/bin/python *,#!/usr/bin/python%{python3 # SELinux sources cp -p %SOURCE1 %SOURCE2 %SOURCE3 . +# In Fedora 32 and EL 8 nftables is the default firewall and does not accept ":" for port ranges. +# https://bugzilla.redhat.com/show_bug.cgi?id=1850164 +%if 0%{?fedora} >= 32 || 0%{?rhel} >= 8 +sed -i "s/port = 0:65535/port = 0-65535/" config/jail.conf +%endif + %build %py3_build