From d92abb87c06b83088d7693e025d8ad624e7deaea Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 13 May 2023 23:40:12 +0200 Subject: ... --- hosts/sif/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hosts/sif') diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 3417d53e..a03b79ec 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix @@ -179,7 +179,7 @@ in { }; wireguardPeers = [ { wireguardPeerConfig = { - AllowedIPs = [ "10.200.116.1/32" ] ++ mwnSubnetsPrivate ++ mwnSubnetsPublic; + AllowedIPs = [ "10.200.116.1/32" "10.163.88.40/32" ] ++ mwnSubnetsPrivate ++ mwnSubnetsPublic; PublicKey = "YlRFLc+rD2k2KXl7pIJbOKbcPgdJCl8ZTsv0xlK4VEI="; PersistentKeepalive = 25; Endpoint = "wg.math.lmu.de:51820"; @@ -228,6 +228,12 @@ in { Priority = 200; }; } + { routingPolicyRuleConfig = { + Table = "wgrz"; + To = "10.163.88.40"; + Priority = 200; + }; + } ] ++ map (To: { routingPolicyRuleConfig = { Table = "wgrz"; inherit To; -- cgit v1.2.3