|
|
24f428 |
From 44fc2d750bc0382d5de6ff5f6711f247b6f10847 Mon Sep 17 00:00:00 2001
|
|
|
24f428 |
From: Eric Garver <e@erig.me>
|
|
|
24f428 |
Date: Wed, 5 Dec 2018 19:11:06 -0500
|
|
|
24f428 |
Subject: [PATCH 07/23] nftables: fix ipv6 rich rule forward-ports
|
|
|
24f428 |
|
|
|
24f428 |
The were mistakenly being added to the ipv4 nat tables as well.
|
|
|
24f428 |
|
|
|
24f428 |
Fixes: #422
|
|
|
24f428 |
Fixes: b630abd8e901 ("backend: introduce nftables support")
|
|
|
24f428 |
(cherry picked from commit 628657cdafa7ba3217fb031c748f5a7d32924c90)
|
|
|
24f428 |
---
|
|
|
24f428 |
src/firewall/core/nftables.py | 2 +-
|
|
|
24f428 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
24f428 |
|
|
|
24f428 |
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
|
|
|
24f428 |
index 00a02ad149e5..a1cb2c474737 100644
|
|
|
24f428 |
--- a/src/firewall/core/nftables.py
|
|
|
24f428 |
+++ b/src/firewall/core/nftables.py
|
|
|
24f428 |
@@ -980,7 +980,7 @@ class nftables(object):
|
|
|
24f428 |
or toaddr and check_single_address("ipv6", toaddr)):
|
|
|
24f428 |
rules.extend(self._build_zone_forward_port_nat_rules(enable, zone,
|
|
|
24f428 |
protocol, mark_fragment, toaddr, toport, "ip6"))
|
|
|
24f428 |
- if rich_rule and (rich_rule.family and rich_rule.family == "ipv4"
|
|
|
24f428 |
+ elif rich_rule and (rich_rule.family and rich_rule.family == "ipv4"
|
|
|
24f428 |
or toaddr and check_single_address("ipv4", toaddr)):
|
|
|
24f428 |
rules.extend(self._build_zone_forward_port_nat_rules(enable, zone,
|
|
|
24f428 |
protocol, mark_fragment, toaddr, toport, "ip"))
|
|
|
24f428 |
--
|
|
|
24f428 |
2.20.1
|
|
|
24f428 |
|