From 31b02ecbee4c045c91999b2a47a6fd82f6a01a1a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 14 Sep 2020 17:25:50 +0100 Subject: [PATCH 1/1] Use correct network prefix for wireguard tunnels --- cookbooks/networking/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 117a1e3f3..1a4dea993 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -226,7 +226,7 @@ if node[:networking][:wireguard][:enabled] next unless gateway[:networking][:wireguard] && gateway[:networking][:wireguard][:enabled] allowed_ips = gateway.interfaces(:role => :internal).map do |interface| - "#{interface[:network]}/#{interface[:metric]}" + "#{interface[:network]}/#{interface[:prefix]}" end node.default[:networking][:wireguard][:peers] << { -- 2.45.2