blob: 3b483159741f46ec1ac0ba554fcebb05ffad5954 (
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
|
{
networking.firewall = {
allowedUDPPorts = [ 54321 ];
};
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/32" ];
}
{ # majestix
publicKey = "Tkoaewh9HB5rIuJVrFgClRF4x7prOtIlSJjiTYCpxis=";
allowedIPs = [ "10.100.0.3/32" ];
}
];
};
};
}
|