blob: 8104cb0565195da2cdbc7c54095af1d7dd3c7cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
networking.firewall = {
allowedUDPPorts = [ 54321 ];
};
networking.nat.enable = true;
networking.wireguard.interfaces = {
wg0 = {
ips = [ "10.100.0.1/24" ];
listenPort = 54321;
privateKeyFile = "/etc/wireguard/private";
peers = [
{ # obelix
publicKey = "RrsNZKZ17Ol1WHxZesLnenGKnqxiQlE0T8xFP6/5mBE=";
allowedIPs = [ "10.100.0.2" ];
}
{ # majestix
publicKey = "SM8UGi+7MuS4aKBi5tPqykdHswlEJvLnYSLMjWg5eCQ=";
allowedIPs = [ "10.100.0.3" ];
}
{ # athena
publicKey = "byk4tOSFypOOcIQ0Za1UNilm6Bigm+dQVPxilB7NB0k=";
allowedIPs = [ "10.100.0.4" ];
}
{ # schreibfix
publicKey = "WBvUFZ4mgTi6O8BB6L4snRKMWHcy5QiROdEFCwYbbUo=";
allowedIPs = [ "10.100.0.5" ];
}
{ # mobiltelefon
publicKey = "jUtbAF3TZDEFXlL+YTV3g26wP0IWGbpiCFGXjxo5TXE=";
allowedIPs = [ "10.100.0.6" ];
}
{ # hephaestus
publicKey = "0nd/5vZaerTCUpS6uXsulCTzI3ZsUT2N2pnh7zTo8wg=";
allowedIPs = [ "10.100.0.7" ];
}
];
};
};
}
|