blob: 3b6cf2896a082e7b42a6ff2f9e0950b2ee7b0d0d (
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
|
{
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 = [
{ # atlas
publicKey = "uuu0Ajabq6fkSdkw7SWLAt0cSYiXX0KWyj5amqVjqQw=";
allowedIPs = [ "10.100.0.3" ];
}
{ # athena
publicKey = "eweByJZDVxq23kJjGV5e1utRdPKo4erEnwwe13bFrkE=";
allowedIPs = [ "10.100.0.4" ];
}
{ # mobiltelefon
publicKey = "4tG2tdM9h/wbxjeFPF7ccLfZ9UghhrAhc/qoqGeL+Sw=";
allowedIPs = [ "10.100.0.6" ];
}
{ # hephaestus
publicKey = "0nd/5vZaerTCUpS6uXsulCTzI3ZsUT2N2pnh7zTo8wg=";
allowedIPs = [ "10.100.0.7" ];
}
{ # idefix
publicKey = "To6F7vHeC4ujcH6E4RcrjNp4q9hFR36pzRnLTl/qGwo=";
allowedIPs = [ "10.100.0.8" ];
}
];
};
};
}
|