2021-01-26 17:36:13 +01:00
|
|
|
From b1145d3efc58220f58a4e67189c4ff4a8bd789ce Mon Sep 17 00:00:00 2001
|
|
|
|
From: Michal Rostecki <mrostecki@opensuse.org>
|
|
|
|
Date: Mon, 25 Jan 2021 12:58:00 +0100
|
|
|
|
Subject: [PATCH] Disable FlushAllOnReload option
|
|
|
|
|
|
|
|
Disabling the FlushAllOnReload option restores the old behavior where
|
|
|
|
--reload does not retain interface to zone assignmnets and direct rules.
|
|
|
|
We want to keep that behavior in openSUSE and SLE
|
|
|
|
|
|
|
|
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
|
|
|
|
---
|
|
|
|
config/firewalld.conf | 4 ++--
|
|
|
|
doc/xml/firewalld.conf.xml | 2 +-
|
|
|
|
src/firewall/config/__init__.py.in | 2 +-
|
|
|
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
2023-06-24 17:10:37 +02:00
|
|
|
diff --git a/config/firewalld.conf b/config/firewalld.conf
|
|
|
|
index 7c9305e..43663b3 100644
|
|
|
|
--- a/config/firewalld.conf
|
|
|
|
+++ b/config/firewalld.conf
|
2022-11-04 20:21:10 +01:00
|
|
|
@@ -63,8 +63,8 @@ FirewallBackend=nftables
|
2021-01-26 17:36:13 +01:00
|
|
|
# configuration was retained during a reload, namely; interface to zone
|
|
|
|
# assignment, and direct rules. This was confusing to users. To get the old
|
|
|
|
# behavior set this to "no".
|
|
|
|
-# Default: yes
|
|
|
|
-FlushAllOnReload=yes
|
|
|
|
+# Default: no
|
|
|
|
+FlushAllOnReload=no
|
|
|
|
|
|
|
|
# RFC3964_IPv4
|
|
|
|
# As per RFC 3964, filter IPv6 traffic with 6to4 destination addresses that
|
2023-06-24 17:10:37 +02:00
|
|
|
diff --git a/doc/xml/firewalld.conf.xml b/doc/xml/firewalld.conf.xml
|
|
|
|
index 1b74f70..a45c8df 100644
|
|
|
|
--- a/doc/xml/firewalld.conf.xml
|
|
|
|
+++ b/doc/xml/firewalld.conf.xml
|
2022-11-04 20:21:10 +01:00
|
|
|
@@ -190,7 +190,7 @@
|
2021-01-26 17:36:13 +01:00
|
|
|
runtime configuration was retained during a reload, namely;
|
|
|
|
interface to zone assignment, and direct rules. This was
|
|
|
|
confusing to users. To get the old behavior set this to "no".
|
|
|
|
- Defaults to "yes".
|
|
|
|
+ Defaults to "no".
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2023-06-24 17:10:37 +02:00
|
|
|
diff --git a/src/firewall/config/__init__.py.in b/src/firewall/config/__init__.py.in
|
|
|
|
index 468daf5..5ec116c 100644
|
|
|
|
--- a/src/firewall/config/__init__.py.in
|
|
|
|
+++ b/src/firewall/config/__init__.py.in
|
|
|
|
@@ -132,7 +132,7 @@ FALLBACK_INDIVIDUAL_CALLS = False
|
2021-01-26 17:36:13 +01:00
|
|
|
FALLBACK_LOG_DENIED = "off"
|
|
|
|
FALLBACK_AUTOMATIC_HELPERS = "no"
|
|
|
|
FALLBACK_FIREWALL_BACKEND = "nftables"
|
|
|
|
-FALLBACK_FLUSH_ALL_ON_RELOAD = True
|
|
|
|
+FALLBACK_FLUSH_ALL_ON_RELOAD = False
|
|
|
|
FALLBACK_RFC3964_IPV4 = True
|
|
|
|
FALLBACK_ALLOW_ZONE_DRIFTING = False
|
2023-06-24 17:10:37 +02:00
|
|
|
FALLBACK_NFTABLES_FLOWTABLE = "off"
|