--- loncom/configuration/Firewall.pm 2021/12/21 16:42:15 1.25 +++ loncom/configuration/Firewall.pm 2024/04/24 21:34:44 1.26 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Firewall configuration to allow internal LON-CAPA communication between servers # -# $Id: Firewall.pm,v 1.25 2021/12/21 16:42:15 raeburn Exp $ +# $Id: Firewall.pm,v 1.26 2024/04/24 21:34:44 raeburn Exp $ # # The LearningOnline Network with CAPA # @@ -365,6 +365,18 @@ sub firewall_is_active { } close(PIPE); } + unless ($status) { + if (open(PIPE,'nft list tables |')) { + while() { + chomp(); + if (/filter$/) { + $status = 1; + last; + } + } + close(PIPE); + } + } } unless ($status) { $status = &uses_firewalld();