From 3343ecaf9fda44bf3442dfd7c57ddb045d28faef Mon Sep 17 00:00:00 2001 From: Digimer Date: Tue, 19 Jul 2022 21:21:48 -0400 Subject: [PATCH] * Added check to disable/stop firewalld if running when anvil-daemon starts. Signed-off-by: Digimer --- Anvil/Tools/Network.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Anvil/Tools/Network.pm b/Anvil/Tools/Network.pm index 7a01aff4..07dee1f6 100644 --- a/Anvil/Tools/Network.pm +++ b/Anvil/Tools/Network.pm @@ -2969,6 +2969,19 @@ sub manage_firewall zone => $zone }}); + ### TODO: Remove when fixed. + my $firewalld_running = $anvil->System->check_daemon({daemon => $anvil->data->{sys}{daemon}{firewalld}}); + $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { firewalld_running => $firewalld_running }}); + if ($firewalld_running) + { + # Disable and stop. + $anvil->System->disable_daemon({ + now => 1, + daemon => $anvil->data->{sys}{daemon}{firewalld}. + }); + } + + return(0); # Before we do anything, is the firewall even running?