hosts/beryllium: add management tunnel
This commit is contained in:
parent
8e96523837
commit
b3ef4e6bde
@ -20,6 +20,36 @@
|
|||||||
|
|
||||||
networking.hostName = "beryllium";
|
networking.hostName = "beryllium";
|
||||||
|
|
||||||
|
petabyte.policyrouting = {
|
||||||
|
enable = true;
|
||||||
|
rules6 = [
|
||||||
|
{ rule = "from 2a01:4f8:c0c:15f1::8107/128 lookup 200"; prio = 20000; }
|
||||||
|
{ rule = "from 2a01:4f8:c0c:15f1::8107/128 unreachable"; prio = 20001; }
|
||||||
|
];
|
||||||
|
rules4 = [
|
||||||
|
{ rule = "from 10.20.30.107/32 lookup 200"; prio = 20000; }
|
||||||
|
{ rule = "from 10.20.30.107/32 unreachable"; prio = 20001; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
networking.wireguard.enable = true;
|
||||||
|
networking.wireguard.interfaces = {
|
||||||
|
wg-clerie = {
|
||||||
|
ips = [ "2a01:4f8:c0c:15f1::8107/128" "10.20.30.107/32" ];
|
||||||
|
table = "200";
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
endpoint = "vpn.clerie.de:51820";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
allowedIPs = [ "0.0.0.0/0" "::/0" "10.20.30.0/24" "2a01:4f8:c0c:15f1::/113" ];
|
||||||
|
publicKey = "2p1Jqs3bkXbXHFWE6vp1yxHIFoUaZQEARS2nJzbkuBA=";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
privateKeyFile = "/var/src/secrets/wireguard/wg-clerie";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
clerie.monitoring = {
|
clerie.monitoring = {
|
||||||
enable = true;
|
enable = true;
|
||||||
id = "213";
|
id = "213";
|
||||||
|
@ -88,6 +88,11 @@
|
|||||||
allowedIPs = [ "2a01:4f8:c0c:15f1::8106/128" "10.20.30.106/32" ];
|
allowedIPs = [ "2a01:4f8:c0c:15f1::8106/128" "10.20.30.106/32" ];
|
||||||
publicKey = "kuUeStBuU6d8PGFHFhP5pEvy0nuZ0TmScI8w7MOt0is=";
|
publicKey = "kuUeStBuU6d8PGFHFhP5pEvy0nuZ0TmScI8w7MOt0is=";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
# beryllium
|
||||||
|
allowedIPs = [ "2a01:4f8:c0c:15f1::8107/128" "10.20.30.107/32" ];
|
||||||
|
publicKey = "SReFUcvw/4fLSkFGjkhDRyY9wyMCcjJ4Yiczt9X64Eo=";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
allowedIPsAsRoutes = false;
|
allowedIPsAsRoutes = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user