--- loncom/configuration/Firewall.pm 2021/12/21 13:57:47 1.24 +++ loncom/configuration/Firewall.pm 2021/12/21 16:42:15 1.25 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Firewall configuration to allow internal LON-CAPA communication between servers # -# $Id: Firewall.pm,v 1.24 2021/12/21 13:57:47 raeburn Exp $ +# $Id: Firewall.pm,v 1.25 2021/12/21 16:42:15 raeburn Exp $ # # The LearningOnline Network with CAPA # @@ -689,7 +689,7 @@ sub get_fw_chains { print("Unable to find iptables file containing static definitions.\n"); } } - if ($distro =~ /^(fedora|rhes|centos|scientific|oracle|rocky|alma)(\d+){?:|\-stream)$/) { + if ($distro =~ /^(fedora|rhes|centos|scientific|oracle|rocky|alma)(\d+)(?:|\-stream)$/) { unless ((($1 eq 'fedora') && ($2 > 15)) || (($1 ne 'fedora') && ($2 >= 7))) { push(@fw_chains,'RH-Firewall-1-INPUT'); }