1
0
Fork 0

Debug wireguard

This commit is contained in:
Malte Brandy 2018-07-27 13:28:35 +02:00
parent 32b249c49a
commit da1d8d1d2a
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 4 additions and 3 deletions

View file

@ -14,6 +14,7 @@ with lib;
m-0.hosts = mkOption {
type = types.attrs;
default = let p = config.m-0.prefix; in {
hera-v4 = "213.136.94.190";
hera = "${p}::1";
hera-intern = "${p}::3:1";
git = "${p}::3:2";

View file

@ -19,13 +19,13 @@ networking = {
hostName = "apollo";
wireguard.interfaces = {
wireguard = {
ips = [ "${hosts.apollo}/128" ];
ips = [ "${hosts.apollo}/64" ];
privateKeyFile = "/etc/nixos/hosts/apollo/secret/wireguard-private";
peers = [
{
publicKey = wireguard.pub.hera;
allowedIPs = [ "::/0" ];
endpoint = "hera.m-0.eu:${wireguard.port}";
allowedIPs = [ "${hosts.hera}/64" ];
endpoint = "${hosts.hera-v4}:${builtins.toString wireguard.port}";
presharedKeyFile = "/etc/nixos/common/secret/wireguard-psk";
}
];