From 36e2a817ae95db5dbcf621db946790ab4894ad38 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 22 Jun 2023 23:17:28 +0800 Subject: [PATCH] hosts/plover: fix Wireguard firewall settings --- hosts/plover/modules/services/wireguard.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/plover/modules/services/wireguard.nix b/hosts/plover/modules/services/wireguard.nix index 634445e3..36fabeda 100644 --- a/hosts/plover/modules/services/wireguard.nix +++ b/hosts/plover/modules/services/wireguard.nix @@ -36,7 +36,7 @@ in chain postrouting { type nat hook postrouting priority srcnat; policy accept; - iifname ${wireguardIFName} snat to ip ${interfaces.lan.IPv4.address} comment "Make packets from Wireguard interface appear as coming from the LAN interface" + iifname ${wireguardIFName} snat to ${interfaces.lan.IPv4.address} comment "Make packets from Wireguard interface appear as coming from the LAN interface" } } '';