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