Blame SOURCES/0106-fix-Revert-ebtables-drop-support-for-broute-table.patch

136e2c
From e3cdea87bc0758ede348be31cd32e69428ed1571 Mon Sep 17 00:00:00 2001
d25120
From: Eric Garver <eric@garver.life>
d25120
Date: Fri, 20 Sep 2019 08:39:05 -0400
136e2c
Subject: [PATCH 106/109] fix: Revert "ebtables: drop support for broute table"
d25120
d25120
This reverts commit 0e78dea21ffb03ea2e51df6158471b9cbd6652c9.
d25120
d25120
Apparently there _are_ users of this table. Let's revert this change and
d25120
be a little smarter about not attempting to use the table if it's not
d25120
available (ebtables-nft). We'll still fail if the user has direct rules
d25120
for this table, but at least the default ruleset will work.
d25120
d25120
(cherry picked from commit ca34c9e051807d62371d5e980210f11859cab360)
d25120
(cherry picked from commit b80835f5af8ad5c4c39cc8b78ec5314963926a8f)
d25120
---
d25120
 src/firewall-config.in        | 4 ++++
d25120
 src/firewall/core/ebtables.py | 1 +
d25120
 2 files changed, 5 insertions(+)
d25120
d25120
diff --git a/src/firewall-config.in b/src/firewall-config.in
136e2c
index 0bb7b05abdad..84c573fc1338 100755
d25120
--- a/src/firewall-config.in
d25120
+++ b/src/firewall-config.in
d25120
@@ -7653,6 +7653,8 @@ class FirewallConfig(object):
d25120
             self.directChainDialogTableCombobox.append_text("mangle")
d25120
             self.directChainDialogTableCombobox.append_text("raw")
d25120
             self.directChainDialogTableCombobox.append_text("security")
d25120
+        else:
d25120
+            self.directChainDialogTableCombobox.append_text("broute")
d25120
 
d25120
         combobox_select_text(self.directChainDialogTableCombobox, old_table)
d25120
 
d25120
@@ -7807,6 +7809,8 @@ class FirewallConfig(object):
d25120
             self.directRuleDialogTableCombobox.append_text("mangle")
d25120
             self.directRuleDialogTableCombobox.append_text("raw")
d25120
             self.directRuleDialogTableCombobox.append_text("security")
d25120
+        else:
d25120
+            self.directRuleDialogTableCombobox.append_text("broute")
d25120
 
d25120
         combobox_select_text(self.directRuleDialogTableCombobox, old_table)
d25120
 
d25120
diff --git a/src/firewall/core/ebtables.py b/src/firewall/core/ebtables.py
d25120
index df4c31743cd7..65688571ce31 100644
d25120
--- a/src/firewall/core/ebtables.py
d25120
+++ b/src/firewall/core/ebtables.py
d25120
@@ -31,6 +31,7 @@ from firewall.errors import FirewallError, INVALID_IPV
d25120
 import string
d25120
 
d25120
 BUILT_IN_CHAINS = {
d25120
+    "broute": [ "BROUTING" ],
d25120
     "nat": [ "PREROUTING", "POSTROUTING", "OUTPUT" ],
d25120
     "filter": [ "INPUT", "OUTPUT", "FORWARD" ],
d25120
 }
d25120
-- 
d25120
2.20.1
d25120