Blame SOURCES/0020-fix-rich-source-dest-only-matching-with-mark-action.patch
|
|
40251c |
From b15d3998fc9cbc6fbaa5f54596cf6ae4af80c6b4 Mon Sep 17 00:00:00 2001
|
|
|
40251c |
From: Eric Garver <eric@garver.life>
|
|
|
40251c |
Date: Wed, 15 Jan 2020 10:41:29 -0500
|
|
|
40251c |
Subject: [PATCH 20/37] fix: rich: source/dest only matching with mark action
|
|
|
40251c |
|
|
|
40251c |
We need to make sure the pre-requisite chains exist before generating
|
|
|
40251c |
the rule for the mark action.
|
|
|
40251c |
|
|
|
40251c |
Fixes: #567
|
|
|
40251c |
(cherry picked from commit 4997385a269b2128281f346ba6e049a41767d165)
|
|
|
40251c |
(cherry picked from commit 16c70554005a2a8dc7947c94f0fcc7cc401de3d0)
|
|
|
40251c |
---
|
|
|
40251c |
src/firewall/core/fw_zone.py | 2 ++
|
|
|
40251c |
1 file changed, 2 insertions(+)
|
|
|
40251c |
|
|
|
40251c |
diff --git a/src/firewall/core/fw_zone.py b/src/firewall/core/fw_zone.py
|
|
|
40251c |
index cbb80f09e02f..5cda560a30e1 100644
|
|
|
40251c |
--- a/src/firewall/core/fw_zone.py
|
|
|
40251c |
+++ b/src/firewall/core/fw_zone.py
|
|
|
40251c |
@@ -1720,6 +1720,8 @@ class FirewallZone(object):
|
|
|
40251c |
elif rule.element is None:
|
|
|
40251c |
if enable:
|
|
|
40251c |
transaction.add_chain(zone, "filter", "INPUT")
|
|
|
40251c |
+ if enable and type(rule.action) == Rich_Mark:
|
|
|
40251c |
+ transaction.add_chain(zone, "mangle", "PREROUTING")
|
|
|
40251c |
|
|
|
40251c |
rules = backend.build_zone_rich_source_destination_rules(
|
|
|
40251c |
enable, zone, rule)
|
|
|
40251c |
--
|
|
|
40251c |
2.23.0
|
|
|
40251c |
|