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