summaryrefslogtreecommitdiff
path: root/firewall/patches
diff options
context:
space:
mode:
Diffstat (limited to 'firewall/patches')
-rw-r--r--firewall/patches/0003-Allow-NAT-for-IPv6.patch34
1 files changed, 17 insertions, 17 deletions
diff --git a/firewall/patches/0003-Allow-NAT-for-IPv6.patch b/firewall/patches/0003-Allow-NAT-for-IPv6.patch
index 71f50c8..826a8a2 100644
--- a/firewall/patches/0003-Allow-NAT-for-IPv6.patch
+++ b/firewall/patches/0003-Allow-NAT-for-IPv6.patch
@@ -1,4 +1,4 @@
-From c0d53458a7d06e116b6ef8c95b5c0c7a0826a0dc Mon Sep 17 00:00:00 2001
+From 531831dffa2d1a87b8157d76a46f1fb407e3c77e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <cynerd@email.cz>
Date: Sat, 15 May 2021 13:15:32 +0200
Subject: [PATCH] Allow NAT for IPv6
@@ -9,7 +9,7 @@ Subject: [PATCH] Allow NAT for IPv6
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/defaults.c b/defaults.c
-index 7ad4fba..b0b4698 100644
+index f03765c..435227f 100644
--- a/defaults.c
+++ b/defaults.c
@@ -29,8 +29,8 @@ static const struct fw3_chain_spec default_chains[] = {
@@ -24,28 +24,28 @@ index 7ad4fba..b0b4698 100644
{ }
};
diff --git a/zones.c b/zones.c
-index 51a8fdf..545ced4 100644
+index 3d54a76..64c75b1 100644
--- a/zones.c
+++ b/zones.c
@@ -37,8 +37,8 @@ static const struct fw3_chain_spec zone_chains[] = {
- C(ANY, FILTER, REJECT, "zone_?_dest_REJECT"),
- C(ANY, FILTER, DROP, "zone_?_dest_DROP"),
+ C(ANY, FILTER, REJECT, "zone_%s_dest_REJECT"),
+ C(ANY, FILTER, DROP, "zone_%s_dest_DROP"),
-- C(V4, NAT, SNAT, "zone_?_postrouting"),
-- C(V4, NAT, DNAT, "zone_?_prerouting"),
-+ C(ANY, NAT, SNAT, "zone_?_postrouting"),
-+ C(ANY, NAT, DNAT, "zone_?_prerouting"),
+- C(V4, NAT, SNAT, "zone_%s_postrouting"),
+- C(V4, NAT, DNAT, "zone_%s_prerouting"),
++ C(ANY, NAT, SNAT, "zone_%s_postrouting"),
++ C(ANY, NAT, DNAT, "zone_%s_prerouting"),
- C(ANY, RAW, HELPER, "zone_?_helper"),
- C(ANY, RAW, NOTRACK, "zone_?_notrack"),
+ C(ANY, RAW, HELPER, "zone_%s_helper"),
+ C(ANY, RAW, NOTRACK, "zone_%s_notrack"),
@@ -47,8 +47,8 @@ static const struct fw3_chain_spec zone_chains[] = {
- C(ANY, FILTER, CUSTOM_CHAINS, "output_?_rule"),
- C(ANY, FILTER, CUSTOM_CHAINS, "forwarding_?_rule"),
+ C(ANY, FILTER, CUSTOM_CHAINS, "output_%s_rule"),
+ C(ANY, FILTER, CUSTOM_CHAINS, "forwarding_%s_rule"),
-- C(V4, NAT, CUSTOM_CHAINS, "prerouting_?_rule"),
-- C(V4, NAT, CUSTOM_CHAINS, "postrouting_?_rule"),
-+ C(ANY, NAT, CUSTOM_CHAINS, "prerouting_?_rule"),
-+ C(ANY, NAT, CUSTOM_CHAINS, "postrouting_?_rule"),
+- C(V4, NAT, CUSTOM_CHAINS, "prerouting_%s_rule"),
+- C(V4, NAT, CUSTOM_CHAINS, "postrouting_%s_rule"),
++ C(ANY, NAT, CUSTOM_CHAINS, "prerouting_%s_rule"),
++ C(ANY, NAT, CUSTOM_CHAINS, "postrouting_%s_rule"),
{ }
};