From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 4EA3E1FF0C0 for ; Wed, 04 Nov 2026 15:55:40 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 4B5462161C; Wed, 04 Nov 2026 15:55:25 +0100 (CET) From: Lukas Sichert To: pve-devel@lists.proxmox.com Subject: [PATCH network v5 04/10] sdn: simple: enable force_forwarding for ipv6 forwarding to subnets Date: Wed, 4 Nov 2026 15:55:05 +0100 Message-ID: <20261104145513.21471-5-l.sichert@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261104145513.21471-1-l.sichert@proxmox.com> References: <20261104145513.21471-1-l.sichert@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1793804121753 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.537 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: FEV52TEAKRZ6OUUVMKWNQASM5AQ4U2Y3 X-Message-ID-Hash: FEV52TEAKRZ6OUUVMKWNQASM5AQ4U2Y3 X-MailFrom: l.sichert@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Lukas Sichert X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Simple zones can route ipv6 subnet traffic through a VNet bridge. Until now, this depended on global ipv6 forwarding state, which also changes Router Advertisement handling for the whole host. Enable 'force_forwarding' explicitly on the Subnet bridge using the 'ip6-force-forward' ifupdown2 flag. Signed-off-by: Lukas Sichert --- src/PVE/Network/SDN/Zones/SimplePlugin.pm | 6 +++++- src/test/zones/simple/ipv4v6/expected_sdn_interfaces | 1 + src/test/zones/simple/ipv6snat/expected_sdn_interfaces | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/PVE/Network/SDN/Zones/SimplePlugin.pm b/src/PVE/Network/SDN/Zones/SimplePlugin.pm index 347eee9..db605cc 100644 --- a/src/PVE/Network/SDN/Zones/SimplePlugin.pm +++ b/src/PVE/Network/SDN/Zones/SimplePlugin.pm @@ -149,7 +149,11 @@ sub generate_sdn_config { push @iface_config, "mtu $mtu" if $mtu; push @iface_config, "alias $alias" if $alias; push @iface_config, "ip-forward on" if $enable_forward_v4; - push @iface_config, "ip6-forward on" if $enable_forward_v6; + + if ($enable_forward_v6) { + push @iface_config, "ip6-forward on"; + push @iface_config, 'ip6-force-forward on'; + } push @{ $config->{$vnetid} }, @iface_config; diff --git a/src/test/zones/simple/ipv4v6/expected_sdn_interfaces b/src/test/zones/simple/ipv4v6/expected_sdn_interfaces index 34ed5db..4b02ce3 100644 --- a/src/test/zones/simple/ipv4v6/expected_sdn_interfaces +++ b/src/test/zones/simple/ipv4v6/expected_sdn_interfaces @@ -9,3 +9,4 @@ iface myvnet bridge_fd 0 ip-forward on ip6-forward on + ip6-force-forward on diff --git a/src/test/zones/simple/ipv6snat/expected_sdn_interfaces b/src/test/zones/simple/ipv6snat/expected_sdn_interfaces index 5f6d40b..38393fd 100644 --- a/src/test/zones/simple/ipv6snat/expected_sdn_interfaces +++ b/src/test/zones/simple/ipv6snat/expected_sdn_interfaces @@ -11,3 +11,4 @@ iface myvnet bridge_stp off bridge_fd 0 ip6-forward on + ip6-force-forward on -- 2.47.3